...
For the client there is also the alternative approach that gives you more flexibility:
...
Code Block | ||||
---|---|---|---|---|
| ||||
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); |
...
factory.setServiceClass(HelloWorld.class); factory.setAddress("http://localhost:9000/helloWorld"); HelloWorld client = (HelloWorld) factory.create(); String reply = client.sayHi("HI"); System.out.println("Server said: " + reply); |
...
|