JAX-WS - It is a specification (API - contain set of interfaces)
It is having some Annotations
NOTE : Recommended approach is create interface and then implementation service class
In interfaces and implementation all three annotations are mandatory
1. @WebService
This is mandatory annotation in I+C
Example
Three optional properties are there
serviceName - default value will be - ServiceClassName (It should be unique)
targetNamespace - default value will be - package name in reverse order (It should be unique)
endpointInterface - default value will be - Fully qualified name of interface
2. @WebMethod (Optional)
If you want to give different name for method in wsdl then you can use it otherwise original method name will appear in wsdl file.
3. @WebParam (Optional)
If you want to give different nave for variables in wsdl then you can use it otherwise original variable name will appear in wsdl file.
CLIENT APPLICATION FOR APACHE CFX
No comments:
Post a Comment