The @WebService
annotation is defined by the
javax.jws.WebService
interface and it is placed on an interface or a
class that is intended to be used as a service. @WebService
has the
following properties:
Property |
Description |
---|---|
name |
Specifies the name of the service interface. This property is mapped to
the name attribute of the |
targetNamespace |
Specifies the target namespace under which the service is defined. If this property is not specified, the target namespace is derived from the package name. |
serviceName |
Specifies the name of the published service. This property is mapped to
the |
wsdlLocation |
Specifies the URI at which the service's WSDL contract is stored. The default is the URI at which the service is deployed. |
endpointInterface |
Specifies the full name of the SEI that the implementation class implements. This property is only used when the attribute is used on a service implementation class. Note: Not allowed on the SEI |
portName |
Specifies the name of the endpoint at which the service is published.
This property is mapped to the |
@WebService
annotation's properties. However, it is recommended that you provide as much information as
you can.