Hi there,
I try to use MSSOAPLib.soapC lient to get the XML data produced by our web
services. I have a web method call ReportExec(strI D, 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.soapC lient 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(strI D,
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.soapC lient
Set soapClient = CreateObject("M SSOAP.SoapClien t")
Call
soapClient.msso apinit("http://qa:8080/thqwebservice/service1.asmx?W SDL")
soapClient.Conn ectorProperty(" AuthUser") = "user"
soapClient.Conn ectorProperty(" AuthPassword") = "pwd"
Dim strID As String
Dim strRequest As String
Dim xmlResult
strID = "1234"
strRequest = "ok"
xmlResult = soapClient.Repo rtExec(strID, strRequest)
Yolande
I try to use MSSOAPLib.soapC lient to get the XML data produced by our web
services. I have a web method call ReportExec(strI D, 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.soapC lient 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(strI D,
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.soapC lient
Set soapClient = CreateObject("M SSOAP.SoapClien t")
Call
soapClient.msso apinit("http://qa:8080/thqwebservice/service1.asmx?W SDL")
soapClient.Conn ectorProperty(" AuthUser") = "user"
soapClient.Conn ectorProperty(" AuthPassword") = "pwd"
Dim strID As String
Dim strRequest As String
Dim xmlResult
strID = "1234"
strRequest = "ok"
xmlResult = soapClient.Repo rtExec(strID, strRequest)
Yolande
Comment