highsource / jaxb2-annotate-plugin

Add arbitrary annotations to JAXB classes.
Other
73 stars 28 forks source link

Annotate JAX-WS Interface #39

Open andreas-wolf opened 7 years ago

andreas-wolf commented 7 years ago

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

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?

laurentschoelens commented 10 months ago

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