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

RE: Need Help for Currency Exchange Rate Web service



   Hi Mike,



   Please find below debug log.



    ************Beginning of data**************
   HTTPAPI Ver 1.24 released 2012-01-23
   OS/400 Ver V7R1M0

   http_url_post(): entered
   http_persist_open(): entered
   http_long_ParseURL(): entered
   DNS resolver retrans: 2
   DNS resolver retry  : 2
   DNS resolver options: x'00000136'
   DNS default domain: IPC.US.AEXP.COM
   DNS server found: 148.173.250.201
   DNS server found: 148.173.250.28
   SetError() #2: Host name look up failed.
   SetError() #66: XML parse failed at line 1, col 0: no element found
    ************End of Data********************

   Thanks,

   Mohit Mangal
   Tata Consultancy Services
   Ph:- 9810115610
   Mailto: [1]m.mangal@xxxxxxx
   Website: [2]http://www.tcs.com
   ____________________________________________
   Experience certainty. IT Services
      Business Solutions
      Outsourcing


   -----ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx wrote: -----

     To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
     From: Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
     Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     Date: 10/30/2012 07:43PM
     Subject: RE: Need Help for Currency Exchange Rate Web service
     Debug log will show better what is going on.
     Dspf '/tmp/httpapi_debug.txt'
     If you would like to confirm your understanding, download or
     copy/paste the whole file into a message and we will help you figure
     out what is happening.
     -----Original Message-----
     From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     [[3]mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of M
     Mangal
     Sent: Tuesday, October 30, 2012 3:51 AM
     To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
     Subject: Need Help for Currency Exchange Rate Web service
        Hi,
        I am trying to Consume "Currency Exchange Rate Web service
     provided by
        WebserviceX.net" using RPGLE (Example16)
        But here rc is coming as -1..could you pls let me know if
     additional
        setup is required on my AS400 machine to consume this service
        AS400 Version - V7R1M0
        SOAP =
         '<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>'
        +'<SOAP:Envelope'
        +'
     xmlns:SOAP="[1][4]http://schemas.xmlsoap.org/soap/envelope/";'
        +'    xmlns:tns="[2][5]http://www.webserviceX.NET/";>'
        +'<SOAP:Body>'
        +'  <tns:ConversionRate>'
        +'      <tns:FromCurrency>'+ %trim(Country1)
     +'</tns:FromCurrency>'
        +'      <tns:ToCurrency>'+ %trim(Country2) + '</tns:ToCurrency>'
        +'  </tns:ConversionRate>'
        +'</SOAP:Body>'
        +'</SOAP:Envelope>';
        http_debug(*ON);
        rc = http_url_post_xml(
                   'http://www.webservicex.net/CurrencyConvertor.asmx'
                          : %addr(SOAP) + 2
                          : %len(SOAP)
                          : *NULL
                          : %paddr(Incoming)
                          : %addr(rate)
                          : HTTP_TIMEOUT
                          : HTTP_USERAGENT
                          : 'text/xml'
                          : 'http://www.webserviceX.NET/ConversionRate');
        Thanks,
        Mohit Mangal
        Tata Consultancy Services
        Ph:- 9810115610
        Mailto: [3]m.mangal@xxxxxxx
        Website: [4][6]http://www.tcs.com
        ____________________________________________
        Experience certainty. IT Services
           Business Solutions
           Outsourcing
        =====-----=====-----=====
        Notice: The information contained in this e-mail
        message and/or attachments to it may contain
        confidential or privileged information. If you are
        not the intended recipient, any dissemination, use,
        review, distribution, printing or copying of the
        information contained in this e-mail message
        and/or attachments to it are strictly prohibited. If
        you have received this communication in error,
        please notify us by reply e-mail or telephone and
        immediately and permanently delete the message
        and any attachments. Thank you
     References
        1. [7]http://schemas.xmlsoap.org/soap/envelope/";'
        2. [8]http://www.webserviceX.NET/";>'
        3. [9]mailto:m.mangal@xxxxxxx
        4. [10]http://www.tcs.com/
     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [11]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---
     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [12]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---

References

   1. mailto:m.mangal@xxxxxxx
   2. http://www.tcs.com/
   3. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   4. http://schemas.xmlsoap.org/soap/envelope/
   5. http://www.webservicex.net/
   6. http://www.tcs.com/
   7. http://schemas.xmlsoap.org/soap/envelope/
   8. http://www.webservicex.net/
   9. mailto:m.mangal@xxxxxxx
  10. http://www.tcs.com/
  11. http://www.scottklement.com/mailman/listinfo/ftpapi
  12. 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
-----------------------------------------------------------------------