Jimbo99999
asked on
VB6 - Call WebService
Good Day Experts!
I am challenged today with 1) working in VB6 and 2) running a WebService
I have looked around on the net how to call a WebService but I am not sure what is needed since I have never done this before.
The WebService takes in a start currency and a converted to currency.
http://www.webservicex.net/CurrencyConvertor.asmx?op=ConversionRate
Can you help with references that may help me achieve this and give back the exchange rate?
Thanks,
jimbo99999
I am challenged today with 1) working in VB6 and 2) running a WebService
I have looked around on the net how to call a WebService but I am not sure what is needed since I have never done this before.
The WebService takes in a start currency and a converted to currency.
http://www.webservicex.net/CurrencyConvertor.asmx?op=ConversionRate
Can you help with references that may help me achieve this and give back the exchange rate?
Thanks,
jimbo99999
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good Day!
When I try this, I am gertting an error message "Compile error: User-defined type not defined". It appears to not like the line "Dim obj as MSXXML2.ServerXMLHTTP"
Do I need ot make a proprerty setting or add anything somewhere in the project?
Thanks,
jimbo99999
When I try this, I am gertting an error message "Compile error: User-defined type not defined". It appears to not like the line "Dim obj as MSXXML2.ServerXMLHTTP"
Do I need ot make a proprerty setting or add anything somewhere in the project?
Thanks,
jimbo99999
you have to add the XML in the Project references... not sure any more how it was called, but someing like "MS XML 3.0" or "... 4.0" ...
ASKER
I made a little adjustment and it is working now!
Set obj = CreateObject("MSXML2.Serve rXMLHTTP")
This is great...now just have to parse out the answere from the Response.Text.
Thanks for the help,
jimbo9999
Set obj = CreateObject("MSXML2.Serve
This is great...now just have to parse out the answere from the Response.Text.
Thanks for the help,
jimbo9999
ASKER
Much appreciated,
jimbo99999