Exposing UConn rice web services in KFS

Overview

There are 3 elements to exposing web services

  • Service endpoint interface
  • Implementation class
  • Wiring it together in Spring
Service Endpoint Interface

The code block below is an example of a Java interface using annotations found in javax.jws.

UConnLdapService
@WebService(name = "uconnLdapService", targetNamespace = UConnWsConstants.Namespaces.UCONN_NAMESPACE_2_0)
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
public interface UConnLdapService {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getUConnEntityInfoById")
    public UConnEntityInfo getUConnEntityInfoById(@WebParam(name = "netId") String netId);

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getUConnEntityInfoByName")
    public List<UConnEntityInfo> getUConnEntityInfoByName(@WebParam(name = "firstName") String firstName,
            @WebParam(name = "lastName") String lastName);

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getUConnPersonInfo")
    public List<UConnEntityInfo> getUConnPersonInfo(@WebParam(name = "firstName") String firstName, @WebParam(name = "lastName") String lastName);
    
    
}

 

Implementation Class

 

Wiring in Spring