Saturday, February 15, 2014

WSDL Design Style

WSDL stands for Web Service Description Language. WSDL defines the WSDL defines the Service,
Port and Binding definition. It tells how the webservice is bound to the Message Protocol like SOAP.

WSDL binding can be of two types,
1) RPC
2)Document

RPC style the METHOD NAME of the web service is visible, For Document style the METHOD NAME  is not visible.

Let's see the SOAP message and WSDL for different type of WSDL bindings.

For the following JAX-WS service with RCP style

@WebService
@SOAPBinding(style = Style.RPC)
public interface SimpleHellowService {
@WebMethod String sayHi(String toName);
}

No comments :

Post a Comment