O'Reilly logo

Java Web Services in a Nutshell by Kim Topley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Service

Synopsis

public interface Service {
// Property Accessor Methods (by property name)
    public abstract javax.xml.rpc.handler.HandlerRegistry getHandlerRegistry(  );
    public abstract Iterator getPorts(  ) throws ServiceException;
    public abstract javax.xml.namespace.QName getServiceName(  ); 
    public abstract javax.xml.rpc.encoding.TypeMappingRegistry getTypeMappingRegistry(  ); 
    public abstract java.net.URL getWSDLDocumentLocation(  ); 
// Public Instance Methods
    public abstract Call createCall(  ) throws ServiceException; 
    public abstract Call createCall(javax.xml.namespace.QName portName) 
       throws ServiceException; 
    public abstract Call createCall(javax.xml.namespace.QName portName, 
        javax.xml.namespace.QName operationName) throws ServiceException;
    public abstract Call createCall(javax.xml.namespace.QName portName, 
    String operationName) throws ServiceException; 
    public abstract Call[ ] getCalls(javax.xml.namespace.QName portName) 
       throws ServiceException; 
    public abstract java.rmi.Remote getPort(Class serviceEndpointInterface) 
         throws ServiceException; 
    public abstract java.rmi.Remote getPort(javax.xml.namespace.QName portName, 
         Class serviceEndpointInterface) throws ServiceException;
}

Service is the core interface of the JAX-RPC client-side API, representing a service element in a WSDL definition of a web service. There are several ways to obtain a Service object, which are discussed in the following list.

  • By using a tool such as wscompile to generate stubs from a WSDL file or an equivalent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required