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

Need Help for Currency Exchange Rate Web service


   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"?>'
   +'    xmlns:SOAP="[1]http://schemas.xmlsoap.org/soap/envelope/";'
   +'    xmlns:tns="[2]http://www.webserviceX.NET/";>'
   +'  <tns:ConversionRate>'
   +'      <tns:FromCurrency>'+ %trim(Country1) +'</tns:FromCurrency>'
   +'      <tns:ToCurrency>'+ %trim(Country2) + '</tns:ToCurrency>'
   +'  </tns:ConversionRate>'


   rc = http_url_post_xml(

                     : %addr(SOAP) + 2
                     : %len(SOAP)
                     : *NULL
                     : %paddr(Incoming)
                     : %addr(rate)
                     : HTTP_TIMEOUT
                     : HTTP_USERAGENT
                     : 'text/xml'
                     : 'http://www.webserviceX.NET/ConversionRate');


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

   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


   1. http://schemas.xmlsoap.org/soap/envelope/";'
   2. http://www.webserviceX.NET/";>'
   3. mailto:m.mangal@xxxxxxx
   4. http://www.tcs.com/
This is the FTPAPI mailing list.  To unsubscribe, please go to: