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

How do I consume a JAVA webservice through ASP client using SOAP

P: 1
Greetings All!

I have a Java Web service that I wrote. I need to use Classic ASP as the client for this web service.

I have the following code in an asp page but I keep getting an error that states "Invalid procedure call or argument: 'doScan'" - doScan is the method in my Java Web service. When browsing to the WSDL file I don't get any errors...

Set oSOAP = Server.CreateObject("MSSOAP.SoapClient")
oSOAP.ClientProperty("ServerHTTPRequest") = True
oSOAP.mssoapinit("http://localhost:8080/ffws/FFWS?WSDL")
//'Create XML document and load XML from Web services method
Set objDOMDoc = Server.CreateObject("Msxml2.DOMDocument.4.0")
objDOMDoc.loadXML(CStr(oSOAP.doScan("carlos bolas")))

How do I reference the doScan method?

TIA
Jan 9 '08 #1
Share this Question
Share on Google+
2 Replies


P: 1
Hi,
I have exactly the same problem.
Did You solve it finally in some way?
TIA

related to:
"I have a Java Web service that I wrote. I need to use Classic ASP as the client for this web service.

I have the following code in an asp page but I keep getting an error that states "Invalid procedure call or argument: 'doScan'" - doScan is the method in my Java Web service. When browsing to the WSDL file I don't get any errors...

Set oSOAP = Server.CreateObject("MSSOAP.SoapClient")
oSOAP.ClientProperty("ServerHTTPRequest") = True
oSOAP.mssoapinit("http://localhost:8080/ffws/FFWS?WSDL")
//'Create XML document and load XML from Web services method
Set objDOMDoc = Server.CreateObject("Msxml2.DOMDocument.4.0")
objDOMDoc.loadXML(CStr(oSOAP.doScan("carlos bolas")))

How do I reference the doScan method?"
Feb 10 '09 #2

P: 1
HI... I get the exact same error.
I've tried: (ASP page)

'-----------------------------------------
'Create an object of Soap Client
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient")
oSOAP.ClientProperty("ServerHTTPRequest") = True
'Initaialize the Web Service
oSOAP.mssoapinit("http://localhost:8888/HelloWebService/HelloWorldWSSoapHttpPort?wsdl")
'Invoke the Web Service
Response.write(oSOAP.getHelloWorld("Test"))
'-----------------------------------------

Error:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'getHelloWorld'

I have no problem calling the Java web service via a browser and using: http://localhost:8888/HelloWebServic...pHttpPort?wsdl, it just can't find the procedure.

Thanks
Apr 30 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.