Connecting Tech Pros Worldwide Help | Site Map

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

Newbie
 
Join Date: Jan 2008
Location: Los Angeles, CA - Atlanta, GA
Posts: 1
#1: Jan 9 '08
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
Newbie
 
Join Date: Feb 2009
Posts: 1
#2: Feb 10 '09

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


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?"
Newbie
 
Join Date: Apr 2009
Posts: 1
#3: Apr 30 '09

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


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
Reply