
March 14th, 2003, 01:00 PM
|
|
Registered User
|
|
Join Date: Mar 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
XML on a ASP page with soap
I call an webservice and it returns an Element (org.w3c.dom). The question is how shall I handle this on the ASP page. I know this object has to be of the type XmlElement but I don't really know how to do it.<br>I'm a beginner on ASP so this might be very simple but help is very much needed.<br>This is my code:<br><%<br> var WSDL_URL = "http://localhost/aspclient/UserProvisioning.wsdl"<br> var WSDL_URL2 = "http://localhost/aspclient/country.wsdl"<br><br> var soapclient,soapclient2<br> <br> soapclient = Server.CreateObject("MSSOAP.SoapClient")<br> soapclient.ClientProperty("ServerHTTPRequest") = true<br> soapclient.mssoapinit(WSDL_URL)<br> <br> soapclient2 = Server.CreateObject("MSSOAP.SoapClient")<br> soapclient2.ClientProperty("ServerHTTPRequest") = true<br> soapclient2.mssoapinit(WSDL_URL2)<br><br> var a, b, res, op,res3,res4,res2<br> a = Request.Form("A")<br> b = Request.Form("B") <br><br> res = soapclient.login(a, b)<br> res2 = soapclient2.findCountry(res,"s") // This returns an Element<br> res4 = soapclient.logout(res)<br> <br>%>
|