Re: How do you transparently implement the same web service (WSDL) with java axis and .NET ?

Tech-Archive recommends: Speed Up your PC by fixing your registry



"tomjbr.10216233@xxxxxxxxxxxxx" <tomjbr.10216233@xxxxxxxxxxxxx> wrote in
news:1115759867.862991.157300@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
> The thing I want to do is to be able to invoke multiple web services
> which are supporting the same WSDL interface.

If this is the case - isnt it a matter of just using one webservice client
and changing the URL? Or have I overlooked something?

I have webservices that are published at multiple locations, and I merely
change the URL in the client to point them at the right place.

> And I want to do it with polymorphism, so I can do it dynamically when
> I in runtime find a new URL supporting the same WSDL interface, without
> having to generate a new class each time.

Im not sure where polymorphism fits into this, but if you dont want to
generate, and if they are new interfaces, then you are going to have to
manually parse the WSDL.

> And my point of doing the UDDI comparison was that just if you can not
> even do this stuff with hardcoding some URL strings (which I have
> tried) , then how are you supposed to implement software that are using
> an UDDI server to dynamically find and bind to URL's that support a
> certain WSDL interface that has been registered in an UDDI tModel
> structure.

Because users consume the interface before hand, then when they find it
with UDDI they just change the URL that the webservice client code connects
to.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
.