A
Alexander Jagl
Hi!
I'm new to asp and asp.net
What I wan't to achieve:
Calling a soap-method from an asp-page.
I've created a virtual directory and a virual name with a soap method
linked to an SQL Server stored procedure using the IIS Virtual Directory
Management for SQLXML 3.0
I'm able to call this soap method from an Access project with this code:
(using the MS Soap Toolkit)
....
' alex = computername
' myServer = virtual directory
' soap = virtual name
' Test = soap method
' "SomeParameter" = input parameter for the stored procedure
Set soapclient = New soapclient
soapclient.MSSoapInit "http://alex/myServer/soap?wsdl"
soapclient.ConnectorProperty("EndPointURL") = "http://alex/myServer/soap"
soapclient.Test "SomeParameter"
....
Now I wan't to do the same thing with an .asp page.
IIS is running, I placed a test page called testasp.asp in
C:\Inetpub\wwwroot\
I can call this page with http://localhost/testasp.asp
<html>
<body>
<form action="testasp.asp" method="post">
Value: <input type="text" name="fname" size="20">
<input type="submit" value="Submit">
</form>
<%
set soapclient = Server.CreateObject("MSSOAP.SoapClient")
soapclient.MSSoapInit "http://alex/myServer/soap?wsdl"
%>
</body>
</html>
I get the following error:
WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057 -
WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is:
Das angegebene Objekt konnte nicht gefunden werden. HRESULT=0x1
The error occurs in the second line (MSSoapInit).
Can anyone please tell me how to call a soap method from .asp?
Thank you,
Alex
I'm new to asp and asp.net
What I wan't to achieve:
Calling a soap-method from an asp-page.
I've created a virtual directory and a virual name with a soap method
linked to an SQL Server stored procedure using the IIS Virtual Directory
Management for SQLXML 3.0
I'm able to call this soap method from an Access project with this code:
(using the MS Soap Toolkit)
....
' alex = computername
' myServer = virtual directory
' soap = virtual name
' Test = soap method
' "SomeParameter" = input parameter for the stored procedure
Set soapclient = New soapclient
soapclient.MSSoapInit "http://alex/myServer/soap?wsdl"
soapclient.ConnectorProperty("EndPointURL") = "http://alex/myServer/soap"
soapclient.Test "SomeParameter"
....
Now I wan't to do the same thing with an .asp page.
IIS is running, I placed a test page called testasp.asp in
C:\Inetpub\wwwroot\
I can call this page with http://localhost/testasp.asp
<html>
<body>
<form action="testasp.asp" method="post">
Value: <input type="text" name="fname" size="20">
<input type="submit" value="Submit">
</form>
<%
set soapclient = Server.CreateObject("MSSOAP.SoapClient")
soapclient.MSSoapInit "http://alex/myServer/soap?wsdl"
%>
</body>
</html>
I get the following error:
WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057 -
WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is:
Das angegebene Objekt konnte nicht gefunden werden. HRESULT=0x1
The error occurs in the second line (MSSoapInit).
Can anyone please tell me how to call a soap method from .asp?
Thank you,
Alex