About Question enthuware.ocejws.v6.2.149 :

Moderators: Site Manager, fjwalraven

Post Reply
austinor
Posts: 41
Joined: Mon Oct 27, 2014 11:35 pm
Contact:

About Question enthuware.ocejws.v6.2.149 :

Post by austinor »

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:

Code: Select all

@Addressing
@WebServiceRef( ServiceType.class )  OR  @WebServiceRef( value=ServiceType.class, [type=ProxyType.class] )
ProxyType proxy; 
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:

Code: Select all

@MTOM
@WebServiceRef( [type=ProxyType.class] )
ServiceType service; 
* ServiceType.class and ProxyType.class are the wsimport-generated classes.
(Are there more appropriate terms for them? ServiceType and PortType maybe??)

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

Re: About Question enthuware.ocejws.v6.2.149 :

Post by fjwalraven »

Does it mean @MTOM and @WebServiceRef can be used together when injecting service types too???
No, currently not.

The explanation can be found in this section of the JAX-WS specs:
7.9 javax.xml.ws.WebServiceRef
JAX-WS specification defines three standard features AddressingFeature, MTOMFeature and RespectBindingFeature that can be used while creating proxy instances. However, there are no standard features that can be used while creating service instances in the current specification.
Regards,
Frits

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests