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

Re: http_persist vs http_url



   thanks for answering, THIS IS THE PROGRAM
   *************** Beginning of data
   *************************************�   �* �This is an example of calling a SOAP Web service w/HTTPAPI. � �   � ��   �* � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � � �   h DFTACTGRP(*NO) BNDDIR('HTTPAPI':'QC2LE') � � � � � � � � �   � � � � � �   �* � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � � �   �/copy httpapi_h � � � � � � � � � � � � � � � � � �   � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � ��   d response_t � � �DS � � � � � � � � �qualified
   based(pDummy) � � � � ��   d spError � � � � � � � � � � �150a � � � � � � � �   � � � � � � � � � ��   d spStatus � � � � � � � � � � � 1a � � � � � � � �   � � � � � � � � � ��   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � ��   d Incoming � � � �PR � � � � � � � � � � � � � � �   � � � � � � � � � � �   d � userdata � � � � � � � � � � �* � value � � � � �   � � � � � � � � ��   d � depth � � � � � � � � � � � 10I 0 value � � � � �   � � � � � � � � ��   d � namD � � � � � � � � � � �1024A � varying const � �   � � � � � � � ��   d � path � � � � � � � � � � 24576A � varying const � �   � � � � � � � ��   d � value � � � � � � � � � �65535A � varying const � �   � � � � � � � ��   d � attrs � � � � � � � � � � � � * � dim(32767) � � �   � � � � � � � � �   d � � � � � � � � � � � � � � � � � � const
   options(*varsize) � � � � ��   �* � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � � �   d response � � � �DS � � � � � � � � �likeds(response_t)
   � � � � � � � �   d � � � � � � � � � � � � � � � � � �   �based(userdata) � � � � � � � � �   �* � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � � �   d SOAP � � � � � �s � � � � �32767A � varying � � � �   � � � � � � � � ��   d rc � � � � � � �s � � � � � � 10I 0 � � � � � � �   � � � � � � � � � ��   d Result � � � � �s � � � � � � 12P 2 � � � � � � �   � � � � � � � � � ��   d ERRNUM � � � � �s � � � � � � 12P 2 � � � � � � �   � � � � � � � � � ��   d msg � � � � � � s � � � � � � 40a � � � � � � � �   � � � � � � � � � ��   d spError � � � � s � � � � � �150a � � � � � � � �   � � � � � � � � � ��   d spStatus � � � �s � � � � � � �1a � � � � � � � �   � � � � � � � � � ��   d soapx � � � � � s � � � � � � 10i 0 � � � � � � �   � � � � � � � � � ��   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � ��   �/free � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � ��   � // Note: �http_debug(*ON/*OFF) can be used to turn debugging � �   � � �   � // � � � �on and off.� When debugging is turned on, diagnostic
   � � � �   � // � � � �info is written to an IFS file named � � � � � �   � � � � � �   � // � � � �/tmp/httpapi_debug.txt � � � � � � � � � �   � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � ��   � http_debug(*ON); � � � � � � � � � � � � � � � � �   � � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � ��   � // Note: �http_XmlStripCRLF(*ON/*OFF) controls whether or not � �   � ��   �// � � � �the XML parser removes CR and LF characters from the �   � � �   �// � � � �Xml data that's passed to your 'Incoming' procedure. �   � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � �   �http_XmlStripCRLF(*ON); � � � � � � � � � � � � � � �   � � � � � � � ��   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � � �   �SOAP = � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � � �   � '<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>' � �   � �   �+'<SOAP:Envelope' � � � � � � � � � � � � � � � � �   � � � � � � � � ��   �+' xmlns:SOAP="[1]http://schemas.xmlsoap.org/wsdl/soap/";' � � � �   � � � �   �+' xmlns:tns="[2]http://tempuri.org/";' � � � � � � � � � �   � � � � � � ��   �+' <SOAP:Body>' � � � � � � � � � � � � � � � � � �   � � � � � � � � ��   �+' <tns:SendPago>' � � � � � � � � � � � � � � � � �   � � � � � � � � �   �+' <tns:Sistema> MAN ' � � � � � � � � � � � � � � �   � � � � � � � � �   �+' </tns:Sistema>' � � � � � � � � � � � � � � � � �   � � � � � � � � �   �+' <tns:Id> 16071314231 ' � � � � � � � � � � � � � �   � � � � � � � ��   �+' </tns:Id>' � � � � � � � � � � � � � � � � � �   � � � � � � � � � ��   �+' <tns:Usuario> ICDEL ' � � � � � � � � � � � � � � �   � � � � � � � �   �+' </tns:Usuario>' � � � � � � � � � � � � � � � � �   � � � � � � � � �   �+' <tns:Institucion> 631 ' � � � � � � � � � � � � � �   � � � � � � � �   �+' </tns:Institucion>' � � � � � � � � � � � � � � �   � � � � � � � � �   �+' <tns:TipoPago> 1 ' � � � � � � � � � � � � � � � �   � � � � � � � ��   �+' </tns:TipoPago>' � � � � � � � � � � � � � � � �   � � � � � �   �+' <tns:Topologia> T ' � � � � � � � � � � � � � � �   � � � � ��   �+' </tns:Topologia>' � � � � � � � � � � � � � � � �   � � � � ��   �+' <tns:TipoOperacion> 1 ' � � � � � � � � � � � � � �   � � � ��   �+' </tns:TipoOperacion>' � � � � � � � � � � � � � � �   � � � ��   �+' <tns:NomOrd> Alejandro Chapa ' � � � � � � � � � � � �   � � �   �+' </tns:NomOrd>' � � � � � � � � � � � � � � � � �   � � � � � �   �+' <tns:TipoCuentaOrd> 40 ' � � � � � � � � � � � � � �   � � � �   �+' </tns:TipoCuentaOrd>' � � � � � � � � � � � � � � �   � � � ��   �+' <tns:CuentaOrd> 00131000000000014334 ' � � � � � � � � �   � �   �+' </tns:CuentaOrd>' � � � � � � � � � � � � � � � �   � � � � ��   �+' <tns:RfcOrd> CARA830925 ' � � � � � � � � � � � � �   � � � ��   �+' </tns:RfcOrd>' � � � � � � � � � � � � � � � � �   � � � � � �   �+' <tns:NomBen> Alejandro Chapa ' � � � � � � � � � � � �   � � �   �+' </tns:NomBen>' � � � � � � � � � � � � � � � � �   � � � � � �   �+' <tns:TipoCuentaBen> 3 ' � � � � � � � � � � � � � �   � � � ��   �+' </tns:TipoCuentaBen>' � � � � � � � � � � � � � � �   � � � ��   �+' <tns:CuentaBen> 00002320011033904073 ' � � � � � � � � �   � �   �+' </tns:CuentaBen>' � � � � � � � � � � � � � � � �   � � � � ��   �+' <tns:RfcBen> LOCK800321 ' � � � � � � � � � � � � �   � � � ��   �+' </tns:RfcBen>' � � � � � � � � � � � � � � � � �   � � � � � �   � +' <tns:NomBen2> �' � � � � � � � � � � � � � � � �   � � � �   � +' </tns:NomBen2>' � � � � � � � � � � � � � � � �   � � � ��   � +' <tns:TipoCuentaBen2> 0 ' � � � � � � � � � � � � �   � � �   � +' </tns:TipoCuentaBen2>' � � � � � � � � � � � � � �   � � �   � +' <tns:CuentaBen2> ' � � � � � � � � � � � � � � �   � � � �   � +' </tns:CuentaBen2>' � � � � � � � � � � � � � � �   � � � �   � +' <tns:RfcBen2> �' � � � � � � � � � � � � � � � �   � � � �   � +' </tns:RfcBen2>' � � � � � � � � � � � � � � � �   � � � ��   � +' <tns:ClavePago> ' � � � � � � � � � � � � � � � �   � � ��   � +' </tns:ClavePago>' � � � � � � � � � � � � � � � �   � � ��   � +' <tns:ConceptoPago> ' � � � � � � � � � � � � � � �   � � �   � +' </tns:ConceptoPago>' � � � � � � � � � � � � � � �   � � �   � +' <tns:ConceptoPago2> PAGO SPEI ' � � � � � � � � � � �   ��   � +' </tns:ConceptoPago2>' � � � � � � � � � � � � � �   � � ��   � +' <tns:Monto> 10100 ' � � � � � � � � � � � � � � �   � � ��   � +' </tns:Monto>' � � � � � � � � � � � � � � � � �   � � � ��   � +' <tns:Iva> �100 ' � � � � � � � � � � � � � � � �   � � � �   � +' </tns:Iva>' � � � � � � � � � � � � � � � � � �   � � � ��   � +' <tns:RefNum> 1234567 ' � � � � � � � � � � � � � �   � � �   � +' </tns:RefNum>' � � � � � � � � � � � � � � � � �   � � � �   � +' <tns:RefCobranza> ' � � � � � � � � � � � � � � �   � � ��   � +' </tns:RefCobranza>' � � � � � � � � � � � � � � �   � ��   � +' <tns:FechaValor> 20160705 ' � � � � � � � � � � � �   ��   � +' </tns:FechaValor>' � � � � � � � � � � � � � � �   � � �   � +' <tns:CausaDev> 0 ' � � � � � � � � � � � � � � �   � � �   � +' </tns:CausaDev>' � � � � � � � � � � � � � � � �   � � �   � +' <tns:Lote> 0 ' � � � � � � � � � � � � � � � � �   � � �   � +' </tns:Lote>' � � � � � � � � � � � � � � � � �   � � � �   � +' </tns:SendPago>' � � � � � � � � � � � � � � � �   � � �   � +' </SOAP:Body>' � � � � � � � � � � � � � � � � �   � � ��   � +' </SOAP:Envelope>'; � � � � � � � � � � � � � � �   � � �   � � � � � � � � �   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � �   � http_debug(*ON); � � � � � � � � � � � � � � � � �   � � ��   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � � �   � rc = http_url_post_xml( � � � � � � � � � � � � � � �   � �   � � � � � � �'[3]http://xxx.xx.xx.xx:1213/PagosService.svc' �   � �//ip comments with xxx for safety
   � � � � � � � � � � : %addr(SOAP) + 2 � � � � � � � �   � � �   � � � � � � � � � � : %len(soapx) � � � � � � � � �   � � � � � � �   � � � � � � � � � � : *NULL � � � � � � � � � � �   � � � � �   � � � � � � � � � � : %paddr(Incoming) � � � � � � �   � � ��   � � � � � � � � � � : %addr(response) � � � � � � � �   � � �   � � � � � � � � : HTTP_TIMEOUT � � � � � � � � � � �   � � �   � � � � � � � � : HTTP_USERAGENT � � � � � � � � � �   � � �   � � � � � � � � : 'text/xml' � � � � � � � � � � �   � � � �   � � � � � : '[4]http://tempuri.org/IPagosService/SendPago');�   � � if (rc <> 1); � � � � � � � � � � � � � � � � �   � � �   � � � � �msg = http_error(); � � � � � � � � � � � �   � ��   � � � � �select; � � � � � � � � � � � � � � � �   � � � ��   � � � � � � � when errnum = HTTP_NOTREG; � � � � � � �   ��   � � � � � � � when errnum = HTTP_NDAUTH; � � � � � � �   ��   � � � � � � other; � � � � � � � � � � � � � � �   � � � ��   � � � � � � � msg = http_error(); � � � � � � � � � �   � �   � � � � �endsl; � � � � � � � � � � � � � � � � �   � � � �   � � � � � �http_comp(%trim(msg)); � � � � � � � � � �   � �   � � endif; � � � � � � � � � � � � � � � � � � �   � � � ��   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � �   � *inlr = *on; � � � � � � � � � � � � � � � � � �   � � ��   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � �   �/end-free � � � � � � � � � � � � � � � � � � � �   � � ��   � � � � � � � � � � � � � � � � � � � � � � � �   � � � � �   p Incoming � � � �B � � � � � � � � � � � � � � � �   � � �   d Incoming � � � �PI � � � � � � � � � � � � � � �   � � � � � � � � ��   d � userdata � � � � � � � � � � �* � value � � � � �   � � � � � � � �   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) � � � �   �/free � � � � � � � � � � � � � � � � � � � � �   � � � � � � � � � ��   � � � � � � select; � � � � � � � � � � � � � � �   � � � � � � � � � �   � � � � � � � � when name = 'Error'; � � � � � � � � �   � � � � � � ��   � � � � � � � � �spError �= value; � � � � � � � � �   � � � � � � � ��   � � � � � � � � when name = 'Status'; � � � � � � � �   � � � � � � � �   � � � � � � � � �spStatus = value; � � � � � � � � �   � � � � � � � ��   � � � � � � � � endsl; � � � � � � � � � � � � �   � � � � � � � � � ��   �/end-free � � � � � � � � � � � � � � � � � � � �   � � � � � � � � ��   p � � � � � � � � E � � � � � � � � � � � � � �   � � � � � � � � � � �   2016-07-14 11:57 GMT-05:00 Scott Klement <[5]sk@xxxxxxxxxxxxxxxx>:

     Tony,

   �
     Sorry, I don't understand what you are asking.� What is the
     difference in your mind between a "http_persist" and "http_url"
     connection?
     -SK
     On 7/14/2016 11:00 AM, Tony Cate wrote:

     � � A service provider sent this request:
     � � It also appears from your debug logs you are using a
     http_perisit
     � � connection would it be possible to test using a http_url
     connection?
     � � Here's my request code:
     � � � rc = http_url_get_xml(uri: %paddr(StartXMLNode)
     :%paddr(EndXMLNode):
     � � *null);
     � � I don't see anything in HTTPAPI_H that helps. Can you explain
     what is
     � � being asked and what I have to do to comply?
     � � Tony
     � � --
     � � Tony Cate� |� Senior Programmer/Analyst� |�
     704.872.2458 x 126
     � � [1]Auction Edge, Inc.
     � � AUCTION� EDGE,� INC.� |� Powering Independent Auctions
     � � STATESVILLE, NC� |� 704.872.2458
     References
     � � 1. [6]http://www.auctionedge.com/
     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list.� To unsubscribe, please go to:
     [7]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---

     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list.� To unsubscribe, please go to:
     [8]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---

   --
   Buenas Tardes.
   Cualquier duda estoy a sus ordenes.
   Saludos
   Luis Alberto Garcia Barboza
   Sistemas Banca Electronica |�Banco�Famsa |�Tel. 1233-3000 |�Ext.
   7554

   El contenido de este correo es información confidencial o reservada y
   su env� es exclusivamente para el destinatario señalado. Queda
   estrictamente prohibida su reproducción, uso, revelación, alteración
   o distribución parcial o total por otra persona. Si usted no es el
   destinatario notifique al remitente y elimine el correo asi como sus
   archivos adjuntos.
   Banco Ahorro Famsa, S.A. Institución de Banca Múltiple� se reserva
   el derecho de ejercer las acciones procedentes entre otras, por daños,
   perjuicios, etc. con motivo del empleo indebido y/o no autorizado de la
   propia información.

   The contents of this email is confidential or proprietary information
   and sending it exclusively to the addressee indicated . Reproduce , use
   , disclosure, alteration or partial or total distribution by another
   person is strictly prohibited. If you are not the intended notify the
   sender and delete the mail as well as their attachments.
   Banco Ahorro Famsa, SA Commercial bank reserves the right to take
   actions from among others, damages, etc. on the occasion of misuse and
   / or unauthorized use of the information itself.

References

   1. http://schemas.xmlsoap.org/wsdl/soap/
   2. http://tempuri.org/
   3. http://xxx.xx.xx.xx:1213/PagosService.svc
   4. http://tempuri.org/IPagosService/SendPago'
   5. mailto:sk@xxxxxxxxxxxxxxxx
   6. http://www.auctionedge.com/
   7. http://www.scottklement.com/mailman/listinfo/ftpapi
   8. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------