soapClient question.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yolande

    soapClient question.

    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

  • Yolande

    #2
    RE: soapClient question.

    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.Repo rtExec(strID, strRequest)
    not
    xmlResult = soapClient.Repo rtExec(strID, strRequest)

    Yolande



    "Yolande" wrote:
    [color=blue]
    > 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
    >[/color]

    Comment

    Working...