Web Service Error (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


khanmdh -> Web Service Error (9/22/2008 11:27:33)

I am getting erroe when I am tryin to invoke webservice: Error is " The download of specified resources has failed"

Here is the code:
Const serviceUrl = "https://apsp8263:39444/cis-odes-svc-ws/hsr"
' Create the HTTP object
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
xmlhttp.open "POST", serviceUrl, False

' Send the request synchronously
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("C:\Test.xml")
Set objReadFile = objFSO.OpenTextFile("C:\Test.xml", 1)
strContents = objReadFile.ReadAll
msgbox strContents
xmlhttp.send strContents
xmlhttp.responseText

Here is the request envelope which placed in c drive :

<?xml version="1.0" encoding="iso-8859-1"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://clinical.uhg.com/cis/odes/ws/message/1" xmlns:ns1="http://clinical.uhg.com/cis/1">
<soapenv:Header/>
<soapenv:Body>
<ns:ReadEntityRequest>
<ns:EntityIdentifier>
<ns1:ID schemeID="CIS">00200000006904</ns1:ID>
</ns:EntityIdentifier>
</ns:ReadEntityRequest>
</soapenv:Body>
</soapenv:Envelope>

Any help is higly appreciated




rdouglass -> RE: Web Service Error (9/22/2008 17:00:03)

Other than about 1000 other things that could be wrong, I sometimes find forcing the response.content type works:

response.ContentType = "text/xml"

That needs to go in your ASP code before the XML get's written to the browser.

That help any?




rdouglass -> RE: Web Service Error (9/22/2008 17:00:46)

quote:

Set objReadFile = objFSO.OpenTextFile("C:\Test.xml", 1)


Also be sure you have appropriate permissions for that file....




khanmdh -> RE: Web Service Error (9/22/2008 19:10:49)

I think it is not the file it self with same request i able to make call to local server which http, the problem lies in the https, so any one knows how to make webservice call to https with vbscripts.

Would appreciate your help




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625