[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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 [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]http://schemas.xmlsoap.org/soap/envelope/"'
+' xmlns:tns="[2]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]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. 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:
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
-----------------------------------------------------------------------