WalterJolon
Programmer
I'm trying to send XML but it doesn't work, someone help me please!
This is the code:
**********************************************************
Create Cursor CurXML(Respuesta M)
** Estructura XML
strXML = "<?xml version='1.0' encoding='utf-8'?><Root><Item>ID1</Item><Item>ID2</Item></Root>"
** Carga Estructura XML
vDoc = CreateObject('Msxml2.DOMDocument')
_Sync = vDoc.async = .F.
_Load = vDoc.loadXML(strXML)
** Envia Estructura XML
TRANS_CERTIFICATE_NAME="0000001266"
vEnv = CreateObject('Msxml2.XMLHTTP')
_Open = vEnv.open('POST','_SetR = vEnv.setRequestHeader("Content-Type", "application/x-_Send = vEnv.send(vDoc)
** Respuesta
Select CurXML
Append Blank
Replace Next 1 Respuesta With vEnv.responseText
****************************************************
This is that I'm getting back:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" xmlns:xsi=" xmlns:xsd=" <soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unable to handle request without a valid action parameter. Please supply a valid soap action.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
Walter Geovanny Jolon Ruiz
Guatemala, C.A.
This is the code:
**********************************************************
Create Cursor CurXML(Respuesta M)
** Estructura XML
strXML = "<?xml version='1.0' encoding='utf-8'?><Root><Item>ID1</Item><Item>ID2</Item></Root>"
** Carga Estructura XML
vDoc = CreateObject('Msxml2.DOMDocument')
_Sync = vDoc.async = .F.
_Load = vDoc.loadXML(strXML)
** Envia Estructura XML
TRANS_CERTIFICATE_NAME="0000001266"
vEnv = CreateObject('Msxml2.XMLHTTP')
_Open = vEnv.open('POST','_SetR = vEnv.setRequestHeader("Content-Type", "application/x-_Send = vEnv.send(vDoc)
** Respuesta
Select CurXML
Append Blank
Replace Next 1 Respuesta With vEnv.responseText
****************************************************
This is that I'm getting back:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" xmlns:xsi=" xmlns:xsd=" <soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unable to handle request without a valid action parameter. Please supply a valid soap action.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
Walter Geovanny Jolon Ruiz
Guatemala, C.A.