Click here to Skip to main content
15,900,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a C# project to call the Currency Converter WebService to convert the user inputted source and destination Currencies.

Web Service URL
http://www.webservicex.net/CurrencyConvertor.asmx?WSDLservice

This is what my current project looks like.
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WindowsFormsApplication21.net.webservicex.www;

namespace WindowsFormsApplication21
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            net.webservicex.www.Currency.AUD.ToString();
            net.webservicex.www.Currency.USD.ToString();
        }
    }
}

Somehow there must be a way of inputting the source currency and converting it to a destination currency but I just can't find the syntax to perform the conversion.

Please provide me a sample of how to add this to my project.

Thank you.
Posted
Updated 23-Jul-13 11:27am
v2

Hello Steve,

As per the service documentation this service is for obtaining the conversion rates between the two currencies. The actual conversion will have to be done. This[^] URL explains the various ways the service can be called.
You can even use HttpWebRequest class to invoke this service using POST method.

Regards,
 
Share this answer
 
I found the answer to my own question. Here's the link
http://stackoverflow.com/questions/9589748/currency-convertor-web-service[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900