Hi,

What is the proper way to handle multiple endpoints for a service in the WSDL?. 
Maybe even implement a round-robin load balancer for the client?.

E.g.

<wsdl:service name="SomeService">
   <wsdl:port name="SomeServicePort01">
      <soap:address location="http://server.at.machine1"; />
   </wsdl:port>
   <wsdl:port name="SomeServicePort02">
      <soap:address location="http://server.at.machine2"; />
   </wsdl:port>
</wsdl:service>

I'm using the stub generator, wsdl2java, and it seems it defaults to a 
particular endpoint. If I want to include more than one I have to use the "-ap" 
option, but this generates separate code for both end points. The stub classes 
don't implement a common interface but simply inherit from the Stub superclass, 
making the implementation of, lets say, a round-robin load balancer in the 
client, cumbersome.

Is it there a way to deal with this?

Many thanks in advance,

Igor
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to