tags:

views:

1131

answers:

1

Hi guys! I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge:

Generate getXXX() rather than/additionally to the isXXX() Method.

I need to generate this methods cause when i start the service i get the message:

<WS data binding error>could not find getter for property 'IsXXX' on com.foo.MyClass

Tried a customization:

<jaxb:globalBindings generateIsSetMethod="false" enableJavaNamingConventions="false">

without effect. :(

Any help?

A: 

BooleanGetter XJC plugin for JAXB is available at http://fisheye5.cenqua.com/browse/~raw,r=1.1/jaxb2-commons/www/boolean-getter/index.html

If you are working with JavaSE 6 then it needs to be re-packaged - see http://forums.java.net/jive/message.jspa?messageID=319434

Use in ant build like below:

 <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask" classpathref="development.classpath"/>

 <xjc schema="some.xsd" package="com.acme.jaxb" destdir="gen-src">
  <arg value="-Xcollection-setter-injector"/>  
  <arg value="-Xboolean-getter"/>
 </xjc>

HTH

AlanG