Working Soap client example

To implement simple SOAP clients in Java, you can use the SAAJ framework (it is shipped with JSE 1.6 and above, but removed again in Java 11): SOAP with Attachments API for Java (SAAJ) is mainly used for dealing directly with SOAP Request/Response messages which happens behind the scenes in any Web Service API. It … Read more

How to make a PHP SOAP call using the SoapClient class

This is what you need to do. I tried to recreate the situation… For this example, I created a .NET sample WebService (WS) with a WebMethod called Function1 expecting the following params: Function1(Contact Contact, string description, int amount) Where Contact is just a model that has getters and setters for id and name like in … Read more

SOAP server and client application VCL+indy demo for Delphi XE?

I have posted the complete set of demos for SOAP on CodeCentral as item 28789. These contain every single one of the Delphi 2007 era SOAP demos from the WebServices folder, now updated for Delphi XE and XE2, including converting the old WAD servers into new INDY VCL servers. You’d think that was impressive, except … 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

REST API – why use PUT DELETE POST GET?

The idea of REpresentational State Transfer is not about accessing data in the simplest way possible. You suggested using post requests to access JSON, which is a perfectly valid way to access/manipulate data. REST is a methodology for meaningful access of data. When you see a request in REST, it should immediately be apparant what … Read more

What are WSDL, SOAP and REST?

A WSDL is an XML document that describes a web service. It actually stands for Web Services Description Language. SOAP is an XML-based protocol that lets you exchange info over a particular protocol (can be HTTP or SMTP, for example) between applications. It stands for Simple Object Access Protocol and uses XML for its messaging … Read more

Secure Web Services: REST over HTTPS vs SOAP + WS-Security. Which is better? [closed]

HTTPS secures the transmission of the message over the network and provides some assurance to the client about the identity of the server. This is what’s important to your bank or online stock broker. Their interest in authenticating the client is not in the identity of the computer, but in your identity. So card numbers, … Read more

Client to send SOAP request and receive response

I normally use another way to do the same using System.Xml; using System.Net; using System.IO; public static void CallWebService() { var _url = “http://xxxxxxxxx/Service1.asmx”; var _action = “http://xxxxxxxx/Service1.asmx?op=HelloWorld”; XmlDocument soapEnvelopeXml = CreateSoapEnvelope(); HttpWebRequest webRequest = CreateWebRequest(_url, _action); InsertSoapEnvelopeIntoWebRequest(soapEnvelopeXml, webRequest); // begin async call to web request. IAsyncResult asyncResult = webRequest.BeginGetResponse(null, null); // suspend this thread … Read more