Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Consuming Web Service
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Consuming Web Service

 Post Reply Post Reply
Author
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post Topic: Consuming Web Service
    Posted: 29 September 2004 at 6:33am

I want to find out if a Webservice can be consumed without referencing or using SOAP.

Is there any other way to call a web service dynamically.

Please if some one can provide a snip of the code I will really appreciate it.

Thanks,

Shrini

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2004 at 9:48am
Well you need to reference a webservice in order to use it, whether you do it via the Web References or not is a different story but a reference must be there. When you say dynamically, is the URL dynamic or the Webservice itself? If it's just the URL, reference the localhost one, have a configuration variable pulled from i.e. app.config and on form load or pre-connect just set myWebService.URL="http://myhost.com/myservice.asmx"
If the Webservice itself is dynamic you will face the problem that you don't necessarily know it's method and what good is a ws if you don't use it's methods?
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2004 at 9:20am
So how does VS scan the methods?
Gone..
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2004 at 9:29am
Reflection
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2004 at 11:16am
nah, its WSDL (Web Service Definition language).

If you visit http://localhost/yourService.asmx?WSDL you will see an xml file that defines your web service showing all methods, properties etc.

thats what VS constructs a class from
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.