By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,589 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,589 IT Pros & Developers. It's quick & easy.

soapClient question.

P: n/a
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

Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Yolande" wrote:
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

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.