blogger templates blogger widgets
This is part of a list of blog posts.
To browse the contents go to

Standalone WS client

WS clients that do not run in any J2EE container are known as unmanaged clients. So a standalone WS client is an example of unmanaged client where as those running on a server are called as managed clients.



System.out.println("Client calling JAX-WS");
CalculatorSOAPProxy proxy = new CalculatorSOAPProxy();
proxy._getDescriptor().setEndpoint(
    "http://localhost:9089/WS2Server/Calculator");
CalcRequestType in = new CalcRequestType();
in.setOperand1(5);
in.setOperand2(10);
in.setOperation(OperationType.ADD);
String result = proxy.calculate(in);
System.out.println(result);

No comments:

Post a Comment