Link to home
Start Free TrialLog in
Avatar of Praveen_Bobbili
Praveen_BobbiliFlag for India

asked on

Error -2147467259 in Visual Basic 6.0 while sending XML to Web Service

Hi,

I am using Web Service for Payment Gateway. I have written below code. It is working in Windows XP Operating System.

But when I am running this application in "Windows Embedded Standard" (Operating System), it is showing as "System Error -2147467259".

I am unable to trace the error. Please help me.

Here is the code:
    Dim vXML
    Set httpReq = CreateObject("Microsoft.XMLHTTP")
    vXML = BuildXML()
    vXML = SoapWrapper(vXML)

    httpReq.open "POST", webServiceUrl, False
    httpReq.setRequestHeader "Content-Type", "text/xml";
    httpReq.setRequestHeader "Connection", "close"
    httpReq.setRequestHeader "SOAPAction", transactionUrl
    httpReq.send vXML
 

Open in new window

I am getting error in line "httpReq.send vXML".

Thanks
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

you may want to specify the value of webServiceUrl and the value of vXML, so we might be able to reproduce the issue.

  however, the "generic" and "undocumented" error code would indicate that the error is likely on the web server side, or that you are not sending the correct XML structure/data indeed.
ASKER CERTIFIED SOLUTION
Avatar of Praveen_Bobbili
Praveen_Bobbili
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Praveen_Bobbili

ASKER

I didn't get the solution from any source. I tried with trail and error process and solved the issue.