Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-01-16
4
Medium Priority
?
404 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

610 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