|
| |
|
|
khanmdh
Posts: 4 Joined: 9/9/2008 Status: offline
|
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
Posts: 9280 From: Biddeford, ME USA Status: offline
|
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?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
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....
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
khanmdh
Posts: 4 Joined: 9/9/2008 Status: offline
|
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
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|