By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,747 Members | 2,011 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,747 IT Pros & Developers. It's quick & easy.

web service for getting exchange rate with nusoap php

P: 32
hi guys

i'm trying to get a web service for get the exchange rate fro USD to IDR can anyone help me? thanks in advance
Oct 24 '08 #1
Share this Question
Share on Google+
5 Replies

Expert 5K+
P: 5,058

You are going to have to be a lot more specific than that. (See How to ask a question)

What exactly are you trying to do?
Why and how isn't it working?
Are you getting any error messages?

Can we see your code?
Oct 24 '08 #2

P: 32
im trying to get $1 exchange rate converted to IDR or indonesian rupiah. it is for my ecommerce that i'am building i have this code but i check the wsdl and its not working this is the code:

Expand|Select|Wrap|Line Numbers
  1. <?
  2. require_once('lib/nusoap.php');
  3. $wsdl="";
  4. $client=new soapclient($wsdl, 'wsdl');
  5. $param=array(
  6. 'country1'=>'usa',
  7. 'country2'=>'indonesia'
  8. );
  9. echo $client->call('getRate', $param);
  10. ?>
Oct 25 '08 #3

Expert 5K+
P: 5,058
Simply telling us that it isn't working is useless.
We need to know HOW it isn't working.

What is it supposed to be doing? What output do you expect to get?
What is it actually doing? What output are you getting?

Are there any errors?
Do you have the debug messages turned on?

Be specific please.
We can't help you solve this unless we know what is happening.
Oct 25 '08 #4

P: 32
emm.. i think that the wsdl does not existed. thats why is not working. my point is im trying to find another web service (exchange rate that converts us dollar to indonesian rupiah) that works. do you have any? thanks in advance, im sorry that im not really that clear.
Oct 25 '08 #5

P: 32
im trying to pass a a value example : $50 and the web service will change it to rupiah which is now $1=Rp. 10450 so i will get an output : Rp. 522500 do you undestand what i meant? thanks before :)
Oct 25 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.