473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

soapClient question.

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
1 6017
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: aws.steve | last post by:
I am trying to get my first Soap based website to work on my Windows 2000 server with IIS 5. The code used to create the client is as follows: set SoapClient = CreateObject("MSSOAP.SoapClient")...
3
by: PaulF | last post by:
Is it possible to use a SoapClient derived class to send a message to a Web Service (eg a .asmx file)? It it is, does anyone have any code they could point me at that actually does this ! ...
1
by: Dheepu Kumar1 | last post by:
We are using WSDL in soapclient to access the java web service.The soapclient request is not formed as required by the service. Namespace is not included in one ComplexType element(<GSTBTReq>) in...
0
by: Florian Laws | last post by:
Hello, to work around an interoperability problem with the PHP5 SOAP extension, I'd like to modify the generate XML SOAP request. (as described in...
4
by: brandonkirsch | last post by:
Hey guys, I recently lost hours to the PHP 5.2.1 SoapClient when trying to use a remote webservice. There are two methods I have to use, the first one worked like a charm and the second one has...
11
by: brandonkirsch | last post by:
Hey guys, I've posted a question on here before but I don't think I was very direct about the problem so I'll state it in a new way: How do I send CDATA to a webservice using the PHP SoapClient? ...
1
by: Sergei Riaguzov | last post by:
Hi, How can I catch errors produced by SOAP server with SoapClient? The first thing which comes in mind is eval() but maybe there is a better way? The server is sending some fault information...
0
by: =?Utf-8?B?UHZkYl9CQQ==?= | last post by:
Hi all, I have a problem with accessing a webservice from Access2000 (=VBA). I hope I can place this question in this group. If no, please give me an better place it. So, i'm try to connect...
0
by: Matt White | last post by:
I'm trying to use a Rails web service from PHP and having a hard time understanding how to do it. If the web service is located at http://url.com/service, what exactly do I need to pass to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.