What you're suggesting is technically possible but more
often than not,
for a variety of reasons (performance being the main one),
the code for
consuming web services is generated through a compilation
process
rather than being generated "on the fly" from
the information in the
WSDL.
However check out, by way of example, our online WSDL
test/validation
site (www.mgateway.com/wsdlClient.htm) which, by its very
nature, has
to be able to interpret the WSDL dynamically, so you can use
it to test
any changes you make to a WSDL immediately. It doesn't
generate any
proxy classes behind the scenes.
So what you're asking for is definitely possible, but
unfortunately it
isn't that common, nor, I can tell you, is it easy to
implement !
Osmosis311 wrote:
> Could someone help me understand some basics of web
services?
>
> I understand how to write and consume web services, but
I dont
> understand why there isnt a way to consume a web
service
> programmatically. My reason for wanting this, is lets
say I have a web
> service that I sometimes make code changes to.
According to my
> understanding, after I change the code of the web
service, I will have
> to re-run WSDL, and then re-copy the resulting proxy
class to all of my
> application directories. However, if in my code, I
could simply
> specify the URL of a web service and then access it, I
could change the
> web service code, and the code of my application,
without having to
> recompile with WSDL and re-copy the proxy file.
>
> Am I missing something here? Any advice?
>
> Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---
|