Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For the client there is also the alternative approach that gives you more flexibility:

 

...

Code Block
languagejava
titleClient
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);

...