Forum Discussion
- abhaygunaOccasional Contributor
Generally, Web services are 2 types
1. SOAP Services
2. RESTful Services
You should choose the type of the project based on the type of your web service.
For SOAP services, you should be given with the WSDL, which automatically exports its operations.
For REST services, you might be given with the WADL or you can create a request by using end point URL and request parameters.
In your case,
Endpoint Url is avaiable. You should construct the request in the format of XML or JSON
like
<rootrequest>
<name></name>
<desc></desc>
<job></job>
</rootrequest>
- tong123123New Contributor
I just have been given URL endpoint and a parameter list, so it is impossible to create a SOAP xml request, right?
And everytimes we plan to create a request xml, we must know the server web service API is using SOAP or REST?sorry for my poor web service knowledge.
- abhaygunaOccasional Contributor
Yes, you are correct. In case of SOAP, we need not to create request xml. It will be created automatically on importing WSDL.
In Case of REST, we may need to create request in XML/JSON format. In REST, Some times, we will provide the request parameters in Url itself and also we need to specify the HTTP Methods like GET, POST, PUT and DELETE etc...
Sample SOAP:
http://www.webservicex.com/CurrencyConvertor.asmx?wsdl
Sample REST:
http://www.thomas-bayer.com/sqlrest/CUSTOMER/2