Click to See Complete Forum and Search --> : Call a web service


gusciri
01-08-2007, 11:06 PM
Hello,
I have to write a method that receive Web service properties (Name, methodname, etc.). It calls the web service method and returns the ws answer (an XML document).

How should I call this web service into the method?
Thanks,
GC

mayesranch
01-09-2007, 12:12 AM
how do i get traffic to a new website

scottrickman
01-09-2007, 11:21 AM
I'm assuming that you're using ASP.net and C# (why wouldn't you be?) Do you want to call a method on an existing web service? If so use the wsdl method of the service to generate a stub class that you can use in your project.

scottrickman
01-09-2007, 11:22 AM
Some terminology for you to use with google:
Web Service Provider - the server that hosts the web service
Web Service Consumer - the application that wants to make use of a web service from a Web Service Provider

Breaker
01-13-2007, 03:59 AM
I'll probably start a new thread, but I'm essentially looking to do exactly the same thing (sorry Scott, it's in VB).

I've got a site which allows me to send it a ISBN number for book information, which is then returned to my site in XML. Love the concept, problem is I haven't got a clue how to go about it.

Do you utilise the Request object? Or do you have to build some kind of wrapper object? Is there anyone out there who has any links on the subject (the more practical explanations would be a bonus) or who could walk me through the concept?

And maybe gusciri will get what he wants too....although I think mayesranch is a little too far gone for anybodies help...

scottrickman
01-16-2007, 03:48 AM
Try this article on four guys from rolla http://aspnet.4guysfromrolla.com/articles/062602-1.aspx

Ribeyed
01-16-2007, 12:29 PM
Once you have created your webservice you create a refference to the webservice in your code behind page like so:

Dim wsService As WebService

then you can call the methods like so:

wsService.MethodName()

Hope this helps.