Hi there,
I try to use MSSOAPLib.soapClient to get the XML data produced by our web
services. I have a web method call ReportExec(strID, strRequest). It takes
two string arguments and returns a Xml.XmlNode object. When I test the web
services using IE, I receive the XML data I want. But when I use
MSSOAPLib.soapClient in MS Access, I got an error of “Wrong number of
arguments or invalid property assignment.” I don't think this was because of
the arguments I passed. It seems that the soapClient cannot process the
XMLNode! The reason that I think that the soapClient cannot process the
XMLNode is that I did the following test: I rebuilt the ReportExec(strID,
strRequest) and let it return a string, I got no problem. If the method
returns a XMLNode or XMLDocument, I always got the error.
Any help is welcome. Thanks.
The following is the code I am using.
Dim soapClient As New MSSOAPLib.soapClient
Set soapClient = CreateObject("MSSOAP.SoapClient")
Call
soapClient.mssoapinit("http://qa:8080/thqwebservice/service1.asmx?WSDL")
soapClient.ConnectorProperty("AuthUser") = "user"
soapClient.ConnectorProperty("AuthPassword") = "pwd"
Dim strID As String
Dim strRequest As String
Dim xmlResult
strID = "1234"
strRequest = "ok"
xmlResult = soapClient.ReportExec(strID, strRequest)
Yolande