473,396 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with this web service

Hi,
I found this web service
http://www.webservicex.net/CurrencyConvertor.asmx

This is my test code
Dim test As New wsExchangeRate.CurrencyConvertor

Dim testt As New wsExchangeRate.Currency

test.BeginConversionRate(wsExchangeRate.Currency.A ED,
wsExchangeRate.Currency.AFA, callback, _
asyncState)

I am having a problem at callback and asyncState. VS is saying that they are
not declared. What data do I need to put there?

Thanks
Nov 21 '05 #1
4 1376
Are you using a web reference or hand coding? With a web reference, the proxy
stub should be completely built for you. You can then examine the code if you
wish to code a few of your own.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Chris" wrote:
Hi,
I found this web service
http://www.webservicex.net/CurrencyConvertor.asmx

This is my test code
Dim test As New wsExchangeRate.CurrencyConvertor

Dim testt As New wsExchangeRate.Currency

test.BeginConversionRate(wsExchangeRate.Currency.A ED,
wsExchangeRate.Currency.AFA, callback, _
asyncState)

I am having a problem at callback and asyncState. VS is saying that they are
not declared. What data do I need to put there?

Thanks

Nov 21 '05 #2
Though I did not look at the source files, I guess you have to call
test.ConversionRate instead, which should not have the "System.AsyncCallback
callback" and "object asyncState" parameters.

Michael
"Chris" <Ch***@discussions.microsoft.com> schrieb im Newsbeitrag
news:59**********************************@microsof t.com...
Hi,
I am ysing a web reference. All I wish to do is to use the web service. I
want to be able to pass the requested parameters and get the returned data in a text box. The problem is that it's asking for callback and asyncState
parameters and I don't know what values to pass.

Thanks

"Cowboy (Gregory A. Beamer) - MVP" wrote:
Are you using a web reference or hand coding? With a web reference, the proxy stub should be completely built for you. You can then examine the code if you wish to code a few of your own.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Chris" wrote:
Hi,
I found this web service
http://www.webservicex.net/CurrencyConvertor.asmx

This is my test code
Dim test As New wsExchangeRate.CurrencyConvertor

Dim testt As New wsExchangeRate.Currency

test.BeginConversionRate(wsExchangeRate.Currency.A ED,
wsExchangeRate.Currency.AFA, callback, _
asyncState)

I am having a problem at callback and asyncState. VS is saying that they are not declared. What data do I need to put there?

Thanks

Nov 21 '05 #3
Thanks

"Michael Höhne" wrote:
Though I did not look at the source files, I guess you have to call
test.ConversionRate instead, which should not have the "System.AsyncCallback
callback" and "object asyncState" parameters.

Michael
"Chris" <Ch***@discussions.microsoft.com> schrieb im Newsbeitrag
news:59**********************************@microsof t.com...
Hi,
I am ysing a web reference. All I wish to do is to use the web service. I
want to be able to pass the requested parameters and get the returned data

in
a text box. The problem is that it's asking for callback and asyncState
parameters and I don't know what values to pass.

Thanks

"Cowboy (Gregory A. Beamer) - MVP" wrote:
Are you using a web reference or hand coding? With a web reference, the proxy stub should be completely built for you. You can then examine the code if you wish to code a few of your own.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Chris" wrote:

> Hi,
> I found this web service
> http://www.webservicex.net/CurrencyConvertor.asmx
>
> This is my test code
>
>
> Dim test As New wsExchangeRate.CurrencyConvertor
>
> Dim testt As New wsExchangeRate.Currency
>
> test.BeginConversionRate(wsExchangeRate.Currency.A ED,
> wsExchangeRate.Currency.AFA, callback, _
> asyncState)
>
> I am having a problem at callback and asyncState. VS is saying that they are > not declared. What data do I need to put there?
>
> Thanks


Nov 21 '05 #4
Hi,
I am ysing a web reference. All I wish to do is to use the web service. I
want to be able to pass the requested parameters and get the returned data in
a text box. The problem is that it's asking for callback and asyncState
parameters and I don't know what values to pass.

Thanks

"Cowboy (Gregory A. Beamer) - MVP" wrote:
Are you using a web reference or hand coding? With a web reference, the proxy
stub should be completely built for you. You can then examine the code if you
wish to code a few of your own.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Chris" wrote:
Hi,
I found this web service
http://www.webservicex.net/CurrencyConvertor.asmx

This is my test code
Dim test As New wsExchangeRate.CurrencyConvertor

Dim testt As New wsExchangeRate.Currency

test.BeginConversionRate(wsExchangeRate.Currency.A ED,
wsExchangeRate.Currency.AFA, callback, _
asyncState)

I am having a problem at callback and asyncState. VS is saying that they are
not declared. What data do I need to put there?

Thanks

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Fraser | last post by:
Hi We are trying to debug a problem with services created using py2exe. It seems that these problems have arisen after services were installed and removed a few times. OK, first the actual...
0
by: David | last post by:
I've written a small windows service, and I'm having a problem that I'm spending a lot more time on than I'd like. If anyone has experienced this problem and has any hints or solutions; they would...
9
by: Sudesh Sawant | last post by:
Hello, We have an application which communicates using remoting. There is a server which is a Windows Service. The server exposes an object which is a singleton. The client is a Web Application...
2
by: epaetz | last post by:
I'm getting Not associated with a trusted SQL Server connection errors on a .Net windows service I wrote, when it's running on my application server. It's not a problem with mixed mode...
1
by: Mark Thomson | last post by:
Hi, I've got a problem with my webservice and namespaces. I've have the two classes below. Both are fine and appear to serialize correctly, but the problem is when I try to access them from my...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
0
by: Steve DeLong | last post by:
I have a C# Web Service (anonymous access has been disabled) that I would like to connect to with a standard Windows Service, also in C# as part of a scheduled synchronization system. I have...
3
by: adasilva | last post by:
I have create a Windows service that uses a timer to access a Web Service. The service is set to start Automatically and its using the local system account. The service also logs events to the...
2
by: =?Utf-8?B?aGVsZmk=?= | last post by:
Hi all, I have replied with my own questions to an older post entry but after a while I thought it's better to start a new thread based on the previous one. Perhaps with the new thread I will...
4
by: Dave Burns | last post by:
I am self hosting a Web Service in a Windows service. I am trying to start the service using the NT AUTHORITY\NetworkService account. I get a NullReferenceException on ServiceHost.Open() in the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.