Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

soapClient question.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yolande - 30 Dec 2004 16:27 GMT
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 - 30 Dec 2004 16:53 GMT
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

> Hi there,
>
[quoted text clipped - 28 lines]
>
> Yolande

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.