Search code examples
javascriptajaxweb-servicessoapwsdl

Calling SOAP webwervice from a javascript


Is there any method of calling a SOAP Service with the URL :

http://localhost:8088/...TestService?wsdl

How can I invoke and get the values from the client using javascript?

Cheers!!

Thanks


Solution

  • You shouldnt call soap service directly from js because soap is not limited to http communication and there is no good support for soap in JavaScript. It is better to use intermediate layer which is more capable in terms of soap communication. For example you can call from JavaScript your asp.net mvc application using ajax and then call soap service from asp.net mvc app using wcf. Instead of asp.net mvc you can use any other server side technology and soap communication library. JavaScript is good for ajax/json communication but not for soap.