Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2006

Tip: Looking for answers? Try searching our database.

Programmatically call web service from string config

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Snookie - 17 Feb 2006 13:28 GMT
Hi
I'm new to all this web services lark and am struggling to get my head
round how to dynamically call this stuff.

Basically, I'm writing a test harness for our latest product - this
harness allows calls to SQL2000 stored procs (all works well) and to
allow calls to web services.  The idea is to have a config file
containing details of the web service name and method to call and for
the harness app (WinForms) to read this info, dynamically hook in to
the web service, display the methods available and then allow call and
response processing.

Does anyone know how this can be achieved?  I can't get
Type.GetType(servicename) to work, it always returns null!  I thought
getting the Type and then iterating through methods and ultimately
doing an Invoke on the chosen one would work but alas no.

I'm only currently trying with the default webservice template
(HelloWorld method) but am failing miserably :-(

Thanks in advance for any help anyone can provide.

Snookie
Josh Twist - 19 Feb 2006 10:35 GMT
Hi Snookie,

Sounds like you're trying to do something very similar to
WebServiceStudio.
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-
0f7a-41bd-8494-e916ebc4159c


Maybe this will fulfil your requirement. Otherwise, let me introduce
you to another friend, Lutz Roeder's Reflector:
http://www.aisto.com/roeder/dotnet/

Good Luck!

Josh
http://www.thejoyofcode.com/
Snookie - 20 Feb 2006 09:07 GMT
Thanks for this Josh

Have downloaded WebServiceStudio and looks and sounds like it may well
offer me the functionality I'm after.

Thanks again
Snookie

> Hi Snookie,
>
[quoted text clipped - 10 lines]
> Josh
> http://www.thejoyofcode.com/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.