About Question enthuware.ocejws.v6.2.149 :
Posted: Sun Nov 02, 2014 11:40 am
In another question about @Addressing, it was said that @Addressing and @WebServiceRef can only come together if it's a proxy type instance that's being injected and not with a service type (that's what my notes show), like this:
But quoting the explanation on this @MTOM question, it says:
From JAX-WS 2.x: @javax.xml.ws.WebServiceRef:
"... Similarly, a generated service reference can be configured with Web Service features using the corresponding @WebServiceFeatureAnnotation annotations.
Does it mean @MTOM and @WebServiceRef can be used together when injecting service types too???
Like this:
* ServiceType.class and ProxyType.class are the wsimport-generated classes.
(Are there more appropriate terms for them? ServiceType and PortType maybe??)
Code: Select all
@Addressing
@WebServiceRef( ServiceType.class ) OR @WebServiceRef( value=ServiceType.class, [type=ProxyType.class] )
ProxyType proxy;
From JAX-WS 2.x: @javax.xml.ws.WebServiceRef:
"... Similarly, a generated service reference can be configured with Web Service features using the corresponding @WebServiceFeatureAnnotation annotations.
Does it mean @MTOM and @WebServiceRef can be used together when injecting service types too???
Like this:
Code: Select all
@MTOM
@WebServiceRef( [type=ProxyType.class] )
ServiceType service;
(Are there more appropriate terms for them? ServiceType and PortType maybe??)