Click here to Skip to main content
15,922,007 members
Home / Discussions / COM
   

COM

 
AnswerRe: Passing the COM Interface reference Pin
Roger Stoltz10-Mar-06 1:53
Roger Stoltz10-Mar-06 1:53 
QuestionRPC System Fail in Windows NT 4 & mswinsck.ocx missing Pin
TheKriminal9-Mar-06 0:50
TheKriminal9-Mar-06 0:50 
QuestionHelp Me! Thank you very much! Pin
Best Kiluyar8-Mar-06 20:52
Best Kiluyar8-Mar-06 20:52 
AnswerRe: Help Me! Thank you very much! Pin
Lim Bio Liong9-Mar-06 19:58
Lim Bio Liong9-Mar-06 19:58 
GeneralRe: Help Me! Thank you very much! Pin
Best Kiluyar9-Mar-06 22:18
Best Kiluyar9-Mar-06 22:18 
GeneralRe: Help Me! Thank you very much! Pin
Lim Bio Liong9-Mar-06 22:47
Lim Bio Liong9-Mar-06 22:47 
QuestionHow to Drawing in word Through C# Pin
sam_g18-Mar-06 0:36
sam_g18-Mar-06 0:36 
QuestionSystem.Runtime.InteropServices.COMException (0x800C0008): The download of the specified resource has failed. Pin
imunevar7-Mar-06 15:24
imunevar7-Mar-06 15:24 
I recently developed a .Net 2003 Windows Application that posts xml documents to a URL using XMLHTTP methods (required by vendor). I have not found any reference of XMLHTTP for the Net platform, but did find out that the methods are exposed through the MSXML library, so I added in my project a reference to the Interop msxml2 dll and used the methods. The application runs very well on my Visual Studio 2003 IDE, but when I moved the dll's to the server, it gives me the following exception:

System.Runtime.InteropServices.COMException (0x800C0008): The download of the specified resource has failed. at MSXML2.XMLHTTPClass.send(Object varBody) at ttHTTPWebclient.ttHttpWebClient.SendHttpRequest(String st


I don't know much about COM and have no idea what this error means. Could not find info about it on the net either, so I decided to try this forum.

Here is my code:

Public Function SendHttpRequest(ByVal strServiceURL As String, ByVal xmlMessage As String, Optional ByVal Mode As String = "msg") As String

Dim strResponse As String
Dim xmlhttp As New MSXML2.XMLHTTP
Dim xmlDocRQ As New MSXML2.DOMDocument
Dim xmlDocRS As New MSXML2.DOMDocument
Dim xmlLenght As Integer
Dim root As MSXML2.DOMNodeType

Try
'///////////////////////////////////////////////////////////////////
'// Createthe HHTP Post quote request //
'///////////////////////////////////////////////////////////////////

'Initialize Dom Variables
xmlLenght = xmlMessage.Length
xmlDocRQ.async = False

xmlDocRQ.loadXML(xmlMessage) 'Load xml Msg vendor request into a DOM
xmlhttp.open("post", strServiceURL, False, "ESPTest1", "4zz8ygh7mkka")
xmlhttp.setRequestHeader("Content-type", "text/xml; charset=utf-8")
xmlhttp.setRequestHeader("Content-length", xmlLenght)

'///////////////////////////////////////////////////////////////////
'// Send the Post request and get the response from the vendor //
'///////////////////////////////////////////////////////////////////
xmlhttp.send(xmlDocRQ)
xmlDocRS = xmlhttp.responseXML
strResponse = xmlDocRS.xml

'///////////////////////////////////////////////////////////////////
'// Return response to the calling method //
'///////////////////////////////////////////////////////////////////
Return strResponse

Catch ex As Exception
Dim strex As String
strex = ex.ToString()
Return strex
End Try


Any help will be greatly appreciated. I can not use normal POST messages because the authentication (userid/Password) can not be part of either the URL (query string) or the actual xml message being posted, per vendor requirement (owner of the page I am posting to)Sigh | :sigh: Sigh | :sigh: .

Regards,

Ivan


QuestionAbout Remoting topic Pin
ashishnagar17-Mar-06 2:21
ashishnagar17-Mar-06 2:21 
Questionworking with VB .dll Pin
_kane_7-Mar-06 1:03
_kane_7-Mar-06 1:03 
QuestionHow to connect to the Automation server which is not registered in ROT. Pin
oleg636-Mar-06 5:37
professionaloleg636-Mar-06 5:37 
QuestionHow to trap IE refresh Pin
tenali_gowda5-Mar-06 20:41
tenali_gowda5-Mar-06 20:41 
QuestionPassing user defined object between COM component and client Pin
dario_alvarez5-Mar-06 12:37
dario_alvarez5-Mar-06 12:37 
QuestionBSTR problems in COM Service Pin
RobCraig3-Mar-06 9:12
RobCraig3-Mar-06 9:12 
AnswerRe: BSTR problems in COM Service Pin
Gerald Schwab3-Mar-06 10:02
Gerald Schwab3-Mar-06 10:02 
GeneralRe: BSTR problems in COM Service Pin
RobCraig3-Mar-06 11:58
RobCraig3-Mar-06 11:58 
QuestionHow to detect ActiveX on IE when it begins run using BHO? Pin
Blue-Bird1-Mar-06 21:09
Blue-Bird1-Mar-06 21:09 
QuestionUsing ActiveX in MFC Pin
lroels1-Mar-06 20:36
lroels1-Mar-06 20:36 
Questionout of process activex exe Pin
david_reynolds28-Feb-06 9:16
david_reynolds28-Feb-06 9:16 
AnswerRe: out of process activex exe Pin
Roger Stoltz28-Feb-06 21:23
Roger Stoltz28-Feb-06 21:23 
GeneralRe: out of process activex exe Pin
david_reynolds1-Mar-06 3:11
david_reynolds1-Mar-06 3:11 
QuestionHow to delete a COM object - My Other Code Pin
AmitGG27-Feb-06 22:45
AmitGG27-Feb-06 22:45 
AnswerRe: How to delete a COM object - My Other Code Pin
AmitGG28-Feb-06 22:14
AmitGG28-Feb-06 22:14 
QuestionHow to delete a COM object Pin
AmitGG27-Feb-06 20:30
AmitGG27-Feb-06 20:30 
AnswerRe: How to delete a COM object Pin
mbue27-Feb-06 22:07
mbue27-Feb-06 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.