[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with POST Connection (With CDATA XML)



   I have this issue, trying to make the post without luck, please let me
   know what's wrong
   Thanks
   1.- DEBUG FILE (AS400)
   HTTPAPI Ver 1.13.1 released 2006-01-03
   New tables set, ASCII=QTCPASC. EBCDIC=QTCPEBC
   SetError() ¬69: HTTPAPI was compiled to use tables rather than CCSIDs
   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: Mozilla/5.0 (X11; U; OS400)
   Content-Type: text/xml;charset=iso-8859-1
   SOAPAction: [1]http://tempuri.org/ws_MotorSINGEC/Citas/RecibeXML
   Expect: 100-continue
   Content-Length: 1384
   recvresp(): entered
   HTTP/1.1 100 Continue
   Via: 1.1 MIGRA-ISA
   SetError() ¬13: HTTP/1.1 100 Continue
   senddoc(): entered
   <soap:Envelope xmlns:xsi="[2]http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xsd="[3]http://www.w3.org/2001/XMLSchema";
   xmlns:soap="[4]http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><R
   ecibeXML
   xmlns="[5]http://tempuri.org/ws_MotorSINGEC/Citas";><stringXML><��CDATA
   �?xml version="1.0" encoding="utf-8"?><cita ciudad="2"
   idTransaccion="" tipoCita="1" numTransaccion="" idCita="" fechaCita=""
   horaCita="" confirm="0"
   estatusConfirm=""><ciudadano><numeroIdentidad>0501-1982-01837</numeroId
   entidad><nombreCompleto>Felipe Garcia
   Calero</nombreCompleto><numeroIdentificacion></numeroIdentificacion></c
   iudadano><datosTransaccion><fechaTransaccion>15/01/2014</fechaTransacci
   on><idSucursal>01</idSucursal><duracionPasaporte>2</duracionPasaporte><
   costoPasaporte>0</costoPasaporte><costoCita>0</costoCita><montoCredito>
   0</montoCredito><totalTransaccion>0</totalTransaccion><tipoCambio>0</ti
   poCambio><folioTGR1>0</folioTGR1><transaccionExtranjero><pais></pais><c
   iudad></ciudad><tipoServicio></tipoServicio><numDocPago></numDocPago><c
   omentarioPago></comentarioPago><montoPago></montoPago></transaccionExtr
   anjero></datosTransaccion><pasaporteAnterior><libretaAnterior></libreta
   Anterior><fechaExpedicion></fechaExpedicion><fechaVencimiento></fechaVe
   ncimiento><tiempoVigencia></tiempoVigencia><mesesVigencia></mesesVigenc
   ia></pasaporteAnterior></cita>!!></stringXML></RecibeXML></soap:Body></
   soap:Envelope>
   recvresp(): entered
   HTTP/1.1 500 Internal Server Error.
   Connection: Keep-Alive
   Content-Length: 578
   Date: Mon, 03 Feb 2014 19:44:50 GMT
   Content-Type: text/xml; charset=utf-8
   Server: Microsoft-IIS/6.0
   X-Powered-By: [6]ASP.NET
   X-AspNet-Version: 1.1.4322
   Cache-Control: private
   SetError() ¬13: HTTP/1.1 500 Internal Server Error.
   recvdoc parms: identity 578
   recvdoc(): entered
   SetError() ¬0:
   <?xml version="1.0" encoding="utf-8"?>
   <soap:Envelope
   xmlns:soap="[7]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:xsi="[8]http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xsd="[9]http://www.w3.org/2001/XMLSchema";>
   � <soap:Body>
   � � <soap:Fault>
   � � � <faultcode>soap:Client</faultcode>
   � � � <faultstring>Server was unable to read request. --&gt; There
   is an error in XML document (1, 252). --&gt; The '��' character,
   hexadecimal value 0x9B, cannot be included in a name. Line 1, position
   253.</faultstring>
   � � � <detail />
   � � </soap:Fault>
   � </soap:Body>
   </soap:Envelope>
   SetError() ¬13: HTTP/1.1 500 Internal Server Error.
   http_close(): entered
   2.
   This is the XML our client give me to make the connection, look the
   CDATA I think therés the problem:
   <soap:Envelope
   xmlns:xsi="[10]http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xsd="[11]http://www.w3.org/2001/XMLSchema";
   xmlns:soap="[12]http://schemas.xmlsoap.org/soap/envelope/";>
   � <soap:Body>
   � � <RecibeXML xmlns="[13]http://tempuri.org/ws_MotorSINGEC/Citas";>
   � � � <stringXML><![CDATA[<?xml version="1.0"
   encoding="utf-8"?><cita ciudad="2" idTransaccion="" tipoCita="1"
   numTransaccion="" idCita="" fechaCita="" horaCita="" confirm="0"
   estatusConfirm=""><ciudadano><numeroIdentidad>0501-1982-01837</numeroId
   entidad><nombreCompleto>Felipe Garcia
   Calero</nombreCompleto><numeroIdentificacion></numeroIdentificacion></c
   iudadano><datosTransaccion><fechaTransaccion>01/27/2014</fechaTransacci
   on><idSucursal>01</idSucursal><duracionPasaporte>2</duracionPasaporte><
   costoPasaporte>0</costoPasaporte><costoCita>0</costoCita><montoCredito>
   0</montoCredito><totalTransaccion>0</totalTransaccion><tipoCambio>0</ti
   poCambio><folioTGR1>0</folioTGR1><transaccionExtranjero><pais></pais><c
   iudad></ciudad><tipoServicio></tipoServicio><numDocPago></numDocPago><c
   omentarioPago></comentarioPago><montoPago></montoPago></transaccionExtr
   anjero></datosTransaccion><pasaporteAnterior><libretaAnterior></libreta
   Anterior><fechaExpedicion></fechaExpedicion><fechaVencimiento></fechaVe
   ncimiento><tiempoVigencia></tiempoVigencia><mesesVigencia></mesesVigenc
   ia></pasaporteAnterior></cita>]]></stringXML>
   � � </RecibeXML>
   � </soap:Body>
   </soap:Envelope>
   3.
   This is part of my source code, please let me know why debug file is
   giving me an error code:
   � � � � � setup();
   � � � � � Rc = WebService();
   � � � � � If Rc <> 1;
   � � � � � ErrMsg = http_error();
   � � � � � Rc = -1;
   � � � � � EndIf;
   � � � � � *inlr = *on;
   � � �p Setup � � � � � b
   � � � � �/free
   � � � � � � http_debug(*ON);
   � � � � � � http_setCCSIDs(819:0);
   � � � � � � filename= *blanks;
   � � � � � � filename= '/tmp/' + %trim(USER) + 'debug_migra' +
   '.txt';
   � � � � � � filename= %trim(filename);
   � � � � � � rc = 0;
   � � � � �/end-free
   � � �p Setup � � � � � e
   � � �p WebService � � �b
   � � �d WebService � � �pi � � � � � �10i 0
   � � � � �/free
   � � � � � file2 �= @file;
   � � � � � urlsa �= *blanks;
   � � � � � soap � = *blanks;
   � � � � � @post �= *blanks;
   � � � � � soap � = %trim(@xml);
   � � � � � chain (fun) xmlurl;
   � � � � � if �%found;
   � � � � � urlsa �= *blanks;
   � � � � � @Post = %trim(xmluso);
   � � � � � eval urlsa=%trim(%Subst(xmluso:1:100));
   � � � � � eval soapaction=%trim(%Subst(xmluso:153:100));
   � � � � � pgm01(@post);
   � � � � � pgm01(urlsa);
   � � � � � @post = %trim(@post);
   � � � � � urlsa = %trim(urlsa);
   � � � � � endif;
   � � � � � soap_bk = soap;
   � � � � � tiempo = 35;
   � � � � � soap = soap_bk;
   � � � � � �callp �http_debug(*ON: filename);
   � � � � � �rc = �http_url_post_xml(%trim(urlsa)
   � � � � � � � � � � � � � � : %addr(SOAP) + 2
   � � � � � � � � � � � � � � : %len(SOAP)
   � � � � � � � � � � � � � � : *null
   � � � � � � � � � � � � � � : %paddr(Incoming)
   � � � � � � � � � � � � � � : %addr(ProcessJrn)
   � � � � � � � � � � � � � � : HTTP_TIMEOUT
   � � � � � � � � � � � � � � : HTTP_USERAGENT
   � � � � � � � � � � � � � � : 'text/xml'
   � � � � � � � � � � � � � � : %trim(soapaction));
   � � � � � �return rc;
   � � � � �/End-free
   � � �p WebService � � �e
   � � �p Incoming � � � �b
   � � �d Incoming � � � �pi
   � � �d � ProcessJrn � � � � � � � � 100a
   � � �d � depth � � � � � � � � � � � 10i 0 value
   � � �d � name � � � � � � � � � � �1024a � varying
   const
   � � �d � path � � � � � � � � � � 24576a � varying const
   � � �d � value � � � � � � � � � �65535a � varying const
   � � �d � attrs � � � � � � � � � � � � * � dim(32767)
   � � �d � � � � � � � � � � � � � � � � � � const
   options(*varsize)
   � � �D atof � � � � � �PR � � � � � � 8F �   extproc('atof')
   � � �D � string � � � � � � � � � � � �* � value
   options(*string)
   � � � � �/free
   � � � � � if (name = 'faultstring');
   � � � � � ProcessJrn = value;
   � � � � � endif;
   � � � � �/end-free
   � � �p Incoming � � � �E � � � � � � �   �� � � � � � � � �   �anks for your support!! �References

   1. http://tempuri.org/ws_MotorSINGEC/Citas/RecibeXML
   2. http://www.w3.org/2001/XMLSchema-instance
   3. http://www.w3.org/2001/XMLSchema
   4. http://schemas.xmlsoap.org/soap/envelope/
   5. http://tempuri.org/ws_MotorSINGEC/Citas
   6. http://ASP.NET/
   7. http://schemas.xmlsoap.org/soap/envelope/
   8. http://www.w3.org/2001/XMLSchema-instance
   9. http://www.w3.org/2001/XMLSchema
  10. http://www.w3.org/2001/XMLSchema-instance
  11. http://www.w3.org/2001/XMLSchema
  12. http://schemas.xmlsoap.org/soap/envelope/
  13. http://tempuri.org/ws_MotorSINGEC/Citas
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------