Connecting Tech Pros Worldwide Forums | Help | Site Map

SOAP/WSDL Connection Problem

Newbie
 
Join Date: Aug 2008
Posts: 1
#1: Aug 27 '08
Expand|Select|Wrap|Line Numbers
  1. Set xmlHTTP = Server.CreateObject("Microsoft.XMLHTTP")
  2. Set xmlDOM = Server.CreateObject("Microsoft.XMLDOM")
  3. xmlDOM.async = False
  4. xmlDOM.loadXML {XML-formatted function-call}
  5.  
  6. xmlHTTP.open "POST", {URL of WSDL-webservice}, False
  7. xmlHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
  8. xmlHTTP.send xmlDOM
  9.  
  10. Response.Write xmlHTTP.responseText
  11.  
Does anyone know why this code results in printing the WSDL-file on screen, instead of connecting to the webservice, and executing the function called?

jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Aug 30 '08

re: SOAP/WSDL Connection Problem


is the URL you listed the URL of the web service or the URL of the method? You label it as the URL of the service, and that should just return an xml-formatted list of the methods. The URL should look like this:
Expand|Select|Wrap|Line Numbers
  1. http://myServer.com/aFolder/service.asmx/webMethod1?
Let me know if this helps.

Jared
Reply