Learn JAX-WS Spec
- WSDL 1.1 to Java mapping
- wsdl:definitions JavaPackage
- wsdl:portType JavaInterface @WebService @SoapBinding
- wsdl:operation JavaMethod @WebMethod @WebResult @WebRequestWrapper @WebResponseWrapper @WebParam @WebFault
- wsdl:Message JavaParameter/Return and JavaClass
- wsdl:part follows JAXB2 spec
- wrapped style/non-wrapper style
- Annotations
public @interface WebService {
String name() default "";
String targetNamespace() default "";
String serviceName() default "";
String wsdlLocation() default "";
String endpointInterface() default "";
};
@Target({METHOD})
public @interface WebMethod {
String operationName() default "";
String action() default "" ;
};
@Target({METHOD})
public @interface Oneway {
};
@Target({PARAMETER})
public @interface WebParam {
public enum Mode { IN, OUT, INOUT };
String name() default "";
String targetNamespace() default "";
Mode mode() default Mode.IN;
boolean header() default false;
};
@Target({METHOD})
public @interface WebResult {
String name() default "return";
String targetNamespace() default "";
};
@Target({TYPE})
public @interface SOAPBinding {
public enum Style { DOCUMENT, RPC }
public enum Use { LITERAL, ENCODED }
public enum ParameterStyle { BARE, WRAPPED }
Style style() default Style.DOCUMENT;
Use use() default Use.LITERAL;
ParameterStyle parameterStyle() default ParameterStyle.WRAPPED;
}
0 Comments:
张贴评论
<< Home