将XML发送到Web服务时,Visual Basic 6.0中的错误-2147467259 [英] Error -2147467259 in Visual Basic 6.0 while sending XML to Web Service
本文介绍了将XML发送到Web服务时,Visual Basic 6.0中的错误-2147467259的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用支付网关的Web服务。我写了下面的代码。它适用于Windows XP操作系统。
但是当我在Windows Embedded System(操作系统)中运行此应用程序时,它显示为系统错误 -2147467259\" 。
我无法追踪错误。请帮帮我。
这是代码:
Dim vXML
设置 httpReq = CreateObject( Microsoft.XMLHTTP)
vXML = BuildXML()
vXML = SoapWrapper(vXML)
httpReq.open POST,webServiceUrl, False
httpReq.setRequestHeader Content-Type, < span class =code-string> text / xml
httpReq.setRequestHeader Connection , close
httpReq.setRequestHeader SOAPAction,transactionUrl
httpReq.send vXML
我在httpReq.send vXML中收到错误。
谢谢
解决方案
尝试:
httpReq.send(vXML);
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 System (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
I am getting error in line "httpReq.send vXML".
Thanks
解决方案
Try:
httpReq.send(vXML);
这篇关于将XML发送到Web服务时,Visual Basic 6.0中的错误-2147467259的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文