Hallo!
Ich versuche gerade verzweifelt, einen Webservice aus ASP anzusprechen und
bekomme es einfach nicht hin. Wenn ich den Code f�r asp, so wie in Artikel
http://www.aspheute.com/artikel/20010703.htm aufrufe bekomme ich eine
Fehlermeldung.
Der Code:
<%
Set SoapClient = CreateObject("MSSOAP.SoapClient")
On Error Resume Next
SoapClient.mssoapinit "http://localhost/HelloWorld/Hello.asmx?WSDL"
If err <> 0 Then
Response.Write "Init Failure: " & Err.description
End If
SoapClient.RetString()
If Err <> 0 Then
Response.Write "<br><b>Error:</b> " & Err.description
Response.Write "<br><b>Error Code:</b> " & SoapClient.faultcode
Response.Write "<br><b>Error String:</b> " & SoapClient.faultstring
Response.Write "<br><b>Fault Actor:</b> " & SoapClient.faultactor
Response.Write "<br><b>Detailed Information:</b> " & SoapClient.detail
End If
%>
Der Fehler:
Init Failure: WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057
- WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is:
No data is available for the requested resource. HRESULT=0x1
Error: Object doesn't support this property or method
Error Code:
Error String:
Fault Actor:
Detailed Information:
Das WSDL scheint also leer zu sein, wenn ich
"http://localhost/HelloWorld/Hello.asmx?WSDL" aber im Browser aufrufe,
bekomme ich XML angezeigt.
Seltsamerweise funktioniert das VBScript Beispiel und auch in VB6 habe ich
es schon erfolgreich getestet. Nur in ASP will es nicht.
Was mache ich falsch?
Christoph
| [aspdedotnet] als [email protected] subscribed
| http://www.aspgerman.com/archiv/aspdedotnet/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.aspgerman.com/aspgerman/listen/anmelden/aspdedotnet.asp