471,354 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Use WebClient to call web service method

Hi,

I have a simple web service that has a method

public string Query(string message)

that at the moment just takes a message and returns it. Is it possible
to call this method using the System.Net.WebClient class.

I am currently using a web reference of the service in my project and
creating an instance of it, then calling the method.

Cheers.

Feb 24 '06 #1
2 6474
Thus wrote ha***********@gmail.com,
Hi,

I have a simple web service that has a method

public string Query(string message)

that at the moment just takes a message and returns it. Is it possible
to call this method using the System.Net.WebClient class.


Yes, it's possible, but it may require a lot of manual labor that Web References
nicely take care of.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Feb 24 '06 #2
Thanks for replying Joerg,
I've been ou tof the office so it's taken a while to respond.
If like you say it's quite a lot of effort and web references work just
as well i will probably just use those.

Thanks again,
H

Mar 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jason | last post: by
3 posts views Thread by Michael Fields | last post: by
3 posts views Thread by Manuel | last post: by
7 posts views Thread by Crirus | last post: by
6 posts views Thread by Giovanni | last post: by
2 posts views Thread by Daniel | last post: by
3 posts views Thread by =?Utf-8?B?dmFzaW1v?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.