hello,

the would be a solution, but i read in the jaxb tutorial, that it is possible to make customize the binding for jaxb2 in external files. jaxb2 provided by the architecture for customize binding. i prefer solutions where to use the inbuild features.
may be, i have to read the complete jaxb2 guide to understand the binding.

Glen Mazza schrieb:
You should be able to do that with XSLT. Take your WSDL and convert it
to a WSDL with the change below that you want.  XSLT has a substring
function that can help you, but really, XSLT is beyond the scope of this
list--I would check with Mulberry[1] if you have any questions.

Regards,
Glen

[1] http://www.mulberrytech.com/xsl/xsl-list/

Am Donnerstag, den 08.11.2007, 18:43 +0100 schrieb Sven Rega:
thanks for your fast answer.
exist there any possibility for create an external cusomize binding file, where i can map/bind ALL types which begins with ArrayOf... are mapped/binded to real java arrays??

regards, sven

Glen Mazza schrieb:
Am Mittwoch, den 07.11.2007, 18:53 +0100 schrieb Sven:

this class 'PlaceBetsReq' takes an array of PlaceBets but wsdl2java generates a class 'ArrayOfPlaceBets' but i need PlaceBets[].
i axis 1.4 is see it works, but not at me with xfire.

I have not done this before, but I think I have an answer for you.
(BTW, this answer is for *CXF*, not XFire, I don't know how similar
XFire would be here.)

Your problem seems to be described in Mark Hansen's SOA Using Java Web
Services book, pp. 201-202 and 206-207.  Anyway, if you want to switch
>from a list to an array property, the WSDL jaxb:property annotation can
help you (you'll need to modify the WSDL you keep locally for this
though).

Something like this:

<sequence>
   <annotation>
       <appinfo>
          <jaxb:property collectionType="indexed"/>
       </appinfo>
   </annotation>
<xsd:element form="qualified" maxOccurs="unbounded" name="PlaceBets" nillable="true" type="types:PlaceBets"/>
</sequence>

We use the same JAXB as GlassFish Metro, so you can query their
JAXB/Metro forum[1] as well if it might help.

Regards,
Glen

[1] http://forums.java.net/jive/forum.jspa?forumID=46


may be someone can give my some tips or better a solution.

sven



Reply via email to