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