• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MTOM policy in WSDL

 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I define @MTOM annotation on SIB, I get below shown mtom policy in wsdl
<wsp:Policy wsu:Id="CustomMTOMImageWSPortBinding_MTOM_Policy"><ns1:OptimizedMimeSerialization wsp:Optional="true"/></wsp:Policy>

But I define @MTOM on SEI (not on SIB but SIB do refer to SEI through 'endpointInterface') , I do not get above mentioned mtom policy definition in WSDL.
Any specific why we have this behaviour?
Thanks
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2419
95
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the API:

@MTOM
This annotation MUST only be used in conjunction the javax.jws.WebService, WebServiceProvider, WebServiceRef annotations. When used with the javax.jws.WebService annotation this annotation MUST only be used on the service endpoint implementation class. When used with a WebServiceRef annotation, this annotation MUST only be used when a proxy instance is created. The injected SEI proxy, and endpoint MUST honor the values of the MTOM annotation.


In short: it should be on the SIB. On the SEI it will be ignored.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic