Hello Chris,
I am using the JaxWsProxyFactoryBean to do what you described. In the
sample code here I went java first but this should work the same for
wsdl2java.
You simply set the url of the service in setAddress and then initialize
a stub for this service.
Is this what you wanted?
Best regards
Christian
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(HelloWorld.class);
factory.setAddress("http://localhost:9000/helloWorld");
HelloWorld client = (HelloWorld) factory.create();
String reply = client.sayHi("HI");
Chris Dunphy schrieb:
Hello,
Is it possible to generate a java service using the CXF wsdl2java
(JAX-WS front end) in such a way that we can use the service with more
than one host?
Basically, I am working on a project where a centralized console
communicates via web services to a number of agents running on remote
hosts.
On the console side I want to be able to use one set of wsdl generated
stub classes and just tell the ServiceImpl class which host to connect
to.
Is this possible?
Thanks,
Chris Dunphy
Software Developer, Enterprise Software Development
Shaw Cablesystems G.P. 750-7417 [EMAIL PROTECTED]
Suite 800 630 3rd Avenue SW, Calgary, Alberta, T2P 4L4
try {
succeed();
} catch (const failed_error& e) {
try {
try_again();
}
}