hi...
I'm a newbie to web services.
I've researched and created a simple Java web service (HelloWorld) in JDeveloper. I deployed it locally on my computer and can invoke it using Internet Explorer (I can see the xml via the wsdl too)
Now... we currently have a Classic ASP application that needs to connect to it. I am running a development version of the application locally to. So everything in local right now.
Unfortnately I do not know how to connect to the Java Web Service. Below is the ASP page code trying to connect to the web service but I get an error.
"Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'getHelloWorld'"
If I connect to an external HelloWorld webservice, I don't get the problem.
oSOAP.mssoapinit("'Invoke the Web Service
Response.write(oSOAP.sayHelloTo(Request.Form("helloName")))
Thanks in advance!
ASP PAGE:
-----------------------------------------
<html>
<head>
<title>Local ASP page to Int WS (SOAP)</title>
</head>
<body>
<%
//Only to process a Post Request
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim oSOAP
Dim x
'Create an object of Soap Client
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient")
oSOAP.ClientProperty("ServerHTTPRequest") = True
'Initaialize the Web Service
oSOAP.mssoapinit(" 'Invoke the Web Service
' Response.write(oSOAP.getHelloWorld("Test"))
x=oSOAP.getHelloWorld("Test")
Response.write("result = " + x)
End If
%>
<FORM method=POST name="form1">
Testing a connection to a Java Web Service. INTENAL!<BR>
HELLO WORLD!<br>
Please enter a name:
<INPUT type="text" name="helloName">
<BR><BR>
<INPUT type="submit" value="submit" name="submit">
</form>
</body>
</html>
I'm a newbie to web services.
I've researched and created a simple Java web service (HelloWorld) in JDeveloper. I deployed it locally on my computer and can invoke it using Internet Explorer (I can see the xml via the wsdl too)
Now... we currently have a Classic ASP application that needs to connect to it. I am running a development version of the application locally to. So everything in local right now.
Unfortnately I do not know how to connect to the Java Web Service. Below is the ASP page code trying to connect to the web service but I get an error.
"Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'getHelloWorld'"
If I connect to an external HelloWorld webservice, I don't get the problem.
oSOAP.mssoapinit("'Invoke the Web Service
Response.write(oSOAP.sayHelloTo(Request.Form("helloName")))
Thanks in advance!
ASP PAGE:
-----------------------------------------
<html>
<head>
<title>Local ASP page to Int WS (SOAP)</title>
</head>
<body>
<%
//Only to process a Post Request
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim oSOAP
Dim x
'Create an object of Soap Client
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient")
oSOAP.ClientProperty("ServerHTTPRequest") = True
'Initaialize the Web Service
oSOAP.mssoapinit(" 'Invoke the Web Service
' Response.write(oSOAP.getHelloWorld("Test"))
x=oSOAP.getHelloWorld("Test")
Response.write("result = " + x)
End If
%>
<FORM method=POST name="form1">
Testing a connection to a Java Web Service. INTENAL!<BR>
HELLO WORLD!<br>
Please enter a name:
<INPUT type="text" name="helloName">
<BR><BR>
<INPUT type="submit" value="submit" name="submit">
</form>
</body>
</html>