Groups | Blog | Home
all groups > dotnet web services > december 2004 >

dotnet web services : soapClient question.



Yolande
12/30/2004 8:27:03 AM
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
Yolande
12/30/2004 8:53:05 AM
Hi,

Sorry to post this question. I made a stupid mistake. As the method returns
a XMLNode object, I have to use
Set xmlResult = soapClient.ReportExec(strID, strRequest)
not
xmlResult = soapClient.ReportExec(strID, strRequest)

Yolande



[quoted text, click to view]
AddThis Social Bookmark Button