Solved

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

Posted on 2013-01-16
4
378 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]
Comment Utility
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
Comment Utility
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
Comment Utility
I didn't get the solution from any source. I tried with trail and error process and solved the issue.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 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

10 Experts available now in Live!

Get 1:1 Help Now