What is SOAP in Java Web Services (The use of SOAP)
SOAP ( Simple Object Access Protocol ) is an XML-based communication protocol. It provides an effective and standard way to transporting XML documents through internet using internet standard protocols like HTTP,SMTP and FTP .
The web services receive requests and return responses using SOAP packets that are encapsulated within an XML document.Most of the programming languages can able to read and access an XML document.Because of that , heterogeneous clients and services become interoperable (can able to exchange and make use of information from one to another).For example, a java client can utilize .NET components with the help of SOAP and vice versa.
SOAP Request Example :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.expert.com/">
From the above example , getSalary is the operation name and <arg0> is the input argument for the requesting service operation.
SOAP Response for the above Request :
6000 is the result from the service to requested client .
|Related Posts :|
|How to Connect to Oracle from Liferay portlet ( Java Liferay and Oracle integration )|
|How to Connect Liferay 7 to PostgreSQL ( Java Liferay portlet and PostgreSQL integration )|
|How to call C# .Net WCF web service in PHP SOAP client|
|How to call C# .Net WCF web service in java SOAP client ( Visual Studio 2013 )|
|How to call PHP RESTful web service in java client|
|How to call java SOAP web service in php ( php web service client )|