jaxb2-annotate-plugin icon indicating copy to clipboard operation
jaxb2-annotate-plugin copied to clipboard

Annotate JAX-WS Interface

Open andreas-wolf opened this issue 7 years ago • 1 comments

How can I annotate a JAX-WS Interface? I've seen the test case https://github.com/highsource/jaxb2-annotate-plugin/tree/master/tests/jaxws

Actually I want an annotation on the interface. In the wsdl that is

<wsdl:portType name="RequestResponsePortType" >

resulting in code like

@Webservice....
@MY_ANNOTATION_HERE
public interface RequestResponsePortType {

I use a bindings file and I have no idea what to put in the binding. I've tried

<jaxb:bindings node="wsdl:portType[@name='RequestResponsePortType']">
    <annox:annotate>my.namespace.to.MY_ANNOTATION_HERE</annox:annotate>
</jaxb:bindings>

which did not work.

What do I do wrong?

andreas-wolf avatar Jul 28 '17 17:07 andreas-wolf

Duplicate of https://github.com/highsource/jaxb-tools/issues/471 extensionBindingPrefixes is not taken into account in jaxws:bindings so annox is not read by plugin

laurentschoelens avatar Jan 09 '24 21:01 laurentschoelens