?
Solved

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

Posted on 2013-01-16
4
Medium Priority
?
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 143

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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, …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

762 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