The WebService annotation type elements : Web Services Annotations « Web Services SOA « Java Tutorial






ElementDescription
nameThe name of the web service.
targetNamespaceOn a service endpoint interface, it is used for the namespace for the wsdl:portType element. On a service implementation bean that does not reference a service endpoint interface, it is used for both the wsdl:portType and the wsdl:service elements. Used with a service implementation bean that references a service endpoint interface, it is used for only the wsdl:service element.
serviceNameThe service name of the Web Service.
portNameThe name of the wsdl:port when mapped to WSDL 1.1
wsdlLocationThe location of the WSDL describing the service.
endpointInterfaceThe complete name of the service endpoint interface.










26.3.Web Services Annotations
26.3.1.The WebService annotation type elements
26.3.2.The WebMethod annotation type elements
26.3.3.The WebParam annotation type elements
26.3.4.The WebResult annotation type elements
26.3.5.Annotations Found in the javax.xml.bind.annotation Package
26.3.6.Create a simple Web Service
26.3.7.Developing Web Services Using JAX-WS