You can call get<ServiceName>HttpPort(String url) on the
<ServiceName>Client stub, instead of just get<ServiceName>HttpPort() and
that will override the default Endpoint.
e.g.
MyServiceClient service = new MyServiceClient();
MyController client =
service.getMyServiceHttpPort("http://custom/endpoint/location/here");
-----Original Message-----
From: Abid Hussain [mailto:[EMAIL PROTECTED]
Sent: Friday, December 22, 2006 9:16 AM
To: [email protected]
Subject: [xfire-user] multiple wsdl but only one schema
Hello everybody,
I want to develop several webservices where each one is located on it's
own server, but they all provide the same data - which means: the only
difference between the corresponding wsdl's is the service location.
My problem is:
I want to access these services from one single application and I don't
want to generate the client-code for each of the services. As I said
before, the only difference between the services is the service
location.
I would be enough to generate code for only one client and just change
the service's location to access the services. Therefore, a working
solution could be to get into the generated code
(<service-name>Client.java) and putting a setEndpoint() method in there.
Does anyone have an idea of a more elegant way to solve this problem?
Best regards (and a merry christmas to everybody),
Abid
--
Abid Hussain
Mail: [EMAIL PROTECTED]
Web: http://www.abid76.de
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email