What is the difference between Document style and RPC style communication?

Can some body explain me the differences between a Document style and RPC style webservices? There are two communication style models that are used to translate a WSDL binding to a SOAP message body. They are: Document & RPC The advantage of using a Document style model is that you can structure the SOAP body … Read more

RESTful Services – WSDL Equivalent

The Web Application Description Language (WADL) is basically the equivalent to WSDL for RESTful services but there’s been an ongoing controversy whether something like this is needed at all. Joe Gregorio has written a nice article about that topic which is worth a read.

How to use a WSDL file to create a WCF service (not make a call)

Using svcutil, you can create interfaces and classes (data contracts) from the WSDL. svcutil your.wsdl (or svcutil your.wsdl /l:vb if you want Visual Basic) This will create a file called “your.cs” in C# (or “your.vb” in VB.NET) which contains all the necessary items. Now, you need to create a class “MyService” which will implement the … Read more

WSDL vs REST Pros and Cons

The two protocols have very different uses in the real world. SOAP(using WSDL) is a heavy-weight XML standard that is centered around document passing. The advantage with this is that your requests and responses can be very well structured, and can even use a DTD. The downside is it is XML, and is very verbose. … Read more

How to do a SOAP wsdl web services call from the command line

It’s a standard, ordinary SOAP web service. SSH has nothing to do here. I just called it with curl (one-liner): $ curl -X POST -H “Content-Type: text/xml” \ -H ‘SOAPAction: “http://api.eyeblaster.com/IAuthenticationService/ClientLogin”‘ \ –data-binary @request.xml \ https://sandbox.mediamind.com/Eyeblaster.MediaMind.API/V2/AuthenticationService.svc Where request.xml file has the following contents: <soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:api=”http://api.eyeblaster.com/”> <soapenv:Header/> <soapenv:Body> <api:ClientLogin> <api:username>user</api:username> <api:password>password</api:password> <api:applicationKey>key</api:applicationKey> </api:ClientLogin> </soapenv:Body> </soapenv:Envelope> … Read more

How to use a WSDL

I would fire up Visual Studio, create a web project (or console app – doesn’t matter). For .Net Standard: I would right-click on the project and pick “Add Service Reference” from the Add context menu. I would click on Advanced, then click on Add Service Reference. I would get the complete file path of the … Read more

JSON, REST, SOAP, WSDL, and SOA: How do they all link together

Imagine you are developing a web-application and you decide to decouple the functionality from the presentation of the application, because it affords greater freedom. You create an API and let others implement their own front-ends over it as well. What you just did here is implement an SOA methodology, i.e. using web-services. Web services make … Read more

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