What is the role of the comment ---- @ WebService @WebService this label is

What is the role of this tag is @WebService

When implementing Web Service, @ WebService annotation marks a Java class; implement interface, the mark service Web Service Endpoint Interface (SEI).

(Statement webservice service)

 

Highlights: 

• Java class that implements the Web Service must specify @WebService or @WebServiceProvider comment. Not offer both comments.

 

This comment applies to client / server or SEI JavaBeans endpoint server endpoint implementation class.

 

• If the annotation references an SEI through endpointInterface property, you must also use @WebService comments to annotate the SEI.

 

Annotation target: Type

 

Attributes:

 

- name

 

wsdl:portType 

 

The name. The default value of the non-Java class or interface name is defined. (String)

 

 

 

- targetNamespace

 

Service generated from the designated Web  the WSDL  XML namespaces and XML elements. The default value is the name of the package that contains the namespace of the Web Service map. (String)

 

- serviceName

 

Web Service to specify the name of the service: wsdl : Service. The default is the simple name of the Java class + Service. (String)

 

- endpointInterface

 

Qualified name of the service endpoint interface abstract Web Service designated for the definition of the service agreement. If this qualified name is specified, it will use the service endpoint interface to determine the abstract WSDL contract. (String)

 

- portName

 

wsdl: portName. The default is WebService.name + Port. (String)

 

- wsdlLocation

 

Specifies define WSDL Web Service of  documents Web addresses. Web address can be a relative path or absolute path . (String)

 

When implementing Web Service, @ WebService annotation marks a Java class; implement interface, the mark service Web Service Endpoint Interface (SEI).

(Statement webservice service)

 

Highlights: 

• Java class that implements the Web Service must specify @WebService or @WebServiceProvider comment. Not offer both comments.

 

This comment applies to client / server or SEI JavaBeans endpoint server endpoint implementation class.

 

• If the annotation references an SEI through endpointInterface property, you must also use @WebService comments to annotate the SEI.

 

Annotation target: Type

 

Attributes:

 

- name

 

wsdl:portType 

 

The name. The default value of the non-Java class or interface name is defined. (String)

 

 

 

- targetNamespace

 

Service generated from the designated Web  the WSDL  XML namespaces and XML elements. The default value is the name of the package that contains the namespace of the Web Service map. (String)

 

- serviceName

 

Web Service to specify the name of the service: wsdl : Service. The default is the simple name of the Java class + Service. (String)

 

- endpointInterface

 

Qualified name of the service endpoint interface abstract Web Service designated for the definition of the service agreement. If this qualified name is specified, it will use the service endpoint interface to determine the abstract WSDL contract. (String)

 

- portName

 

wsdl: portName. The default is WebService.name + Port. (String)

 

- wsdlLocation

 

Specifies define WSDL Web Service of  documents Web addresses. Web address can be a relative path or absolute path . (String)

 

Guess you like

Origin www.cnblogs.com/ncwoniu/p/11525930.html
Recommended