[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with a very particular case of HTTPAPI
Hi Magne,
Thanks for the response, but I got the same error, but ´pointing to
another position,take a look to the attache file.
On 3/26/07, [1]magne@xxxxxxxxx <[2]magne@xxxxxxxxx> wrote:
Hi,
*XML string message encapsulated in XML*
Try encapsulating the xml in [CDATA.....
SOAP =
'<?xml version="1.0" encoding="utf-8"?>'+ CRLF
+'<soap:Envelope
xmlns:xsi="[1]http://www.w3.org/2001/XMLSchema-instance" '
+CRLF +'xmlns:xsd="[2]http://www.w3.org/2001/XMLSchema"'+
CRLF
+'xmlns:soap="[3]http://schemas.xmlsoap.org/soap/envelope
/">'+
CRLF
+' <soap:Body>'+ CRLF
+' <RecibeXML
xmlns="[4]http://tempuri.org/ws_MotorSINGEC/Citas">'+ CRLF
+' <stringXML>[CDATA '
+'<cita ciudad="3" tipoCita="" numTransaccion=""
idCita=""
fechaCita=""'
+' horaCita="" confirm="" estatusConfirm=""> '+ CRLF
+' ' +CRLF
+' <ciudadano>'
+'<numeroIdentidad>0101-1978-01018</numeroIdentidad>'
+'<nombreCompleto>AMERICA IVONNE ALEMAN ARGUETA
</nombreCompleto>'
+'<numeroIdentificacion></numeroIdentificacion>'
+' </ciudadano>'
+'<datosTransaccion>'
+'<fechaTransaccion>08/24/04</fechaTransaccion>'
+'<idSucursal>314</idSucursal>'
+'<duracionPasaporte>1</duracionPasaporte>'
+'<costoPasaporte></costoPasaporte>'
+'<costoCita></costoCita>'
+'<montoCredito></montoCredito>'
+'<totalTransaccion></totalTransaccion>'
+'<tipoCambio>18.182</tipoCambio>'
+'<folioTGR1>0</folioTGR1>'
+'<transaccionExtranjero>'
+'<pais></pais>'
+'<ciudad></ciudad>'
+'<tipoServicio></tipoServicio>'
+'<numDocPago></numDocPago>'
+'<comentarioPago></comentarioPago>'
+'<montoPago></montoPago>'
+'</transaccionExtranjero>'
+'</datosTransaccion>'
+'<pasaporteAnterior>'
+'<libretaAnterior>B038626 </libretaAnterior>'
+'<fechaExpedicion>02/04/2004</fechaExpedicion>'
+'<fechaVencimiento>02/04/2009</fechaVencimiento>'
+'<tiempoVigencia></tiempoVigencia>'
+'<mesesVigencia></mesesVigencia>'
+'</pasaporteAnterior>'
//</cita>';
+'</cita>]</stringXML>' + CRLF
+' </RecibeXML>' + CRLF
+' </soap:Body>' + CRLF
+'</soap:Envelope>';
Best regards,
Magne
References
1. [3]http://www.w3.org/2001/XMLSchema-instance
2. [4]http://www.w3.org/2001/XMLSchema "'
3. [5]http://schemas.xmlsoap.org/soap/envelope/">'
4. [6]http://tempuri.org/ws_MotorSINGEC/Citas ">'
-------------------------------------------------------------------
----
This is the FTPAPI mailing list. To unsubscribe, please go to:
[7]http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
--
Consultor Especialista
S390, iSeries & Open Systems
References
1. mailto:magne@xxxxxxxxx
2. mailto:magne@xxxxxxxxx
3. http://www.w3.org/2001/XMLSchema-instance
4. http://www.w3.org/2001/XMLSchema
5. http://schemas.xmlsoap.org/soap/envelope/
6. http://tempuri.org/ws_MotorSINGEC/Citas
7. http://www.scottklement.com/mailman/listinfo/ftpapi
HTTPAPI Ver 1.13.1 released 2006-01-03
New tables set, ASCII=QTCPASC. EBCDIC=QTCPEBC
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /singecmotorcitas/citas.asmx HTTP/1.1
Host: 172.30.7.2
User-Agent: http-api/1.14
Content-Type: text/xml
SOAPAction: http://tempuri.org/ws_MotorSINGEC/Citas/RecibeXML
Expect: 100-continue
Content-Length: 1440
recvresp(): entered
HTTP/1.1 100 Continue
Via: 1.1 P-ISASERVER
SetError() ¬13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RecibeXML xmlns="http://tempuri.org/ws_MotorSINGEC/Citas">
<stringXML>?CDATA <cita ciudad="3" tipoCita="" numTransaccion="" idCita="" fechaCita="" horaCita="" confirm="" estatusConfirm="">
<ciudadano><numeroIdentidad>0101-1978-01018</numeroIdentidad><nombreCompleto>AMERICA IVONNE ALEMAN ARGUETA </nombreCompleto><numeroIdentificacion></numeroIdentificacion> </ciudadano><datosTransaccion><fechaTransaccion>08/24/04</fechaTransaccion><idSucursal>314</idSucursal><duracionPasaporte>1</duracionPasaporte><costoPasaporte></costoPasaporte><costoCita></costoCita><montoCredito></montoCredito><totalTransaccion></totalTransaccion><tipoCambio>18.182</tipoCambio><folioTGR1>0</folioTGR1><transaccionExtranjero><pais></pais><ciudad></ciudad><tipoServicio></tipoServicio><numDocPago></numDocPago><comentarioPago></comentarioPago><montoPago></montoPago></transaccionExtranjero></datosTransaccion><pasaporteAnterior><libretaAnterior>B038626 </libretaAnterior><fechaExpedicion>02/04/2004</fechaExpedicion><fechaVencimiento>02/04/2009</fechaVencimiento><tiempoVigencia></tiempoVigencia><mesesVigencia></mesesVigencia></pasaporteAnterior></cita>Ù</stringXML>
</RecibeXML>
</soap:Body>
</soap:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error.
Connection: Keep-Alive
Content-Length: 537
Date: Mon, 26 Mar 2007 23:15:47 GMT
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
SetError() ¬13: HTTP/1.1 500 Internal Server Error.
recvdoc parms: identity 537
recvdoc(): entered
SetError() ¬0:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Server was unable to read request. --> There is an error in XML document (7, 24). --> 'Element' is an invalid node type. Line 7, position 24.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
SetError() ¬13: HTTP/1.1 500 Internal Server Error.
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------