Capture an object in ASP
-
I hav a requirement where an classic ASP site has to use an existing WegService which returns an address object. The response from a webMethod is as below: <?xml version="1.0" encoding="utf-8" ?> - <Address xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/"> <Name>Anoop</Name> <HouseNo>6</HouseNo> <Street>Tumkur</Street> <Country>India</Country> </Address> The webMethod is returning an object of Address . How do i capture this response. As you can see that the response XML file returns multiple data. ASP Code: Dim l_obj_SOAP Dim l_strResult Dim l_wsdlPath l_wsdlPath ="C:\Service.wsdl" Set l_obj_SOAP = Server.CreateObject("MSSOAP.SoapClient") l_obj_SOAP.ClientProperty("ServerHTTPRequest") = True l_obj_SOAP.mssoapinit (l_wsdlPath) response.Write("1") response.Write( l_obj_SOAP.GetAddress("32323")) response.Write("2") Error: Response object, ASP 0185 (0x8002000E) A default property was not found for the object. /SOAPclient/client.asp Regards, Anoop :-D