Onload Questions (Webservice)

H

hmoodangpp

Hi all,
I'm bad in English. I found some problems in SDK.
I try to retrieve xml data from web service when InfoPath is OnLoad.
I coppied the code from infopath SDK but the error happend between

// Initialize the SoapClient30 object using URL to the WSDL
// for the Web Service you want to work with.
soapClass.MSSoapInit(strWSDLURL);

// Pass parameters to Web Service and load XML from response.
strWebServiceResponse=soapClass.MyWebMethod("parameter1","parameter2");

// Instantiate new DOM document object.
objNewDOM=new ActiveXObject("Msxml2.DOMDocument.5.0");
objNewDOM.loadXML(webServiceResponse);

the error show text "Type mismacth" Line: loadxml

How do I do???????
 
Top