Solved

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

Posted on 2013-01-16
4
381 Views
Last Modified: 2013-02-16
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
0
Comment
Question by:Praveen_Bobbili
  • 2
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38800053
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.
0
 
LVL 1

Accepted Solution

by:
Praveen_Bobbili earned 0 total points
ID: 38817713
We got the solution for this error, we need to sepcify https:// in place of http:// in transactionUrl. Now it is working fine.
0
 
LVL 1

Author Closing Comment

by:Praveen_Bobbili
ID: 38896253
I didn't get the solution from any source. I tried with trail and error process and solved the issue.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to read XML file attributes... 17 52
Image decoding from Camera 3 72
How to make an ADE file by code? 11 80
Added a column screws up code 5 50
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now