targetNamespace and namespace in WSDL

The target namespace in the WSDL file will be the name space associated with the SOAP service itself. For example we have a customer service the namespace would be something like http://www.acme.com/Customer/V1/CustomerService. The XSD imports section is where you specify the namespace of the XSD you are about to import. A XSD file will contain … Read more

Angular JS POST request not sending JSON data

If you are serializing your data object, it will not be a proper json object. Take what you have, and just wrap the data object in a JSON.stringify(). $http({ url: ‘/user_to_itsr’, method: “POST”, data: JSON.stringify({application:app, from:d1, to:d2}), headers: {‘Content-Type’: ‘application/json’} }).success(function (data, status, headers, config) { $scope.users = data.users; // assign $scope.persons here as promise … Read more

REST web service WSDL? [duplicate]

With a good RESTful service, it’s not necessary to generate WADL (let alone the much-less-well-fitting WSDL) for it because it will self-describe. By “self-describe” I specifically mean that it will deliver documents describing all the (relevant) resources published by the service, and that using a standard HTTP OPTIONS request on any of these will produce … Read more

Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.`

You need to add a metadata exchange (mex) endpoint to your service: <services> <service name=”MyService.MyService” behaviorConfiguration=”metadataBehavior”> <endpoint address=”http://localhost/MyService.svc” binding=”customBinding” bindingConfiguration=”jsonpBinding” behaviorConfiguration=”MyService.MyService” contract=”MyService.IMyService”/> <endpoint address=”mex” binding=”mexHttpBinding” contract=”IMetadataExchange”/> </service> </services> Now, you should be able to get metadata for your service Update: ok, so you’re just launching this from Visual Studio – in that case, it will … Read more

What are RESTful web services? [duplicate]

REST is a client-server architecture which (among other things) leverages the full capacity of the HTTP protocol. Some relevant points in REST: Each URL on the server represents a resource; either a collection resource or an element resource. A collection resource would be available at a URL like http://restful.ex/items/ which would be a representation of … Read more

Restful web service authentication

One way I’ve seen this done in APIs (and the way am currently implementing it) is to create a RESTful resource called Session which is created via a POST which supplies a username and password. Here is basically how I’ve implemented it: POST /sessions { Username: “User”, Password: “Password” } Create an time limited session … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)