On May 24, 2008, at 9:44 PM, Benson Margulies wrote:

Can you post an entire WSDL? I'm wondering if you have the jaxb
namespace turned on, and a few other things.

I am not 100% confident that CXF will handle jaxb annotations in the
WSDL, as opposed to making a separate JAXB binding file.

Well, I can clarify this one.... CXF can definitely handle this. This is actually how it's done internally. The JAXB binding files are merged into DOM versions of the WSDL/schema before calling off to xjc. Thus, stuff that is in the xsd should be picked up fine.

Dan




On Fri, May 23, 2008 at 7:11 PM, Rahul_Ravikumar <[EMAIL PROTECTED]> wrote:

I am sorry, that there was a typo. The XML fragment actually looks like this:

<xs:complexType name="ArrayOfString">
      <xs:annotation>
              <xs:appinfo>
                      <jaxb:property collectionType="indexed" />
              </xs:appinfo>
              <xs:documentation>An object for holding a String
array.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
<xs:element form="qualified" maxOccurs="unbounded" name="String"
type="xs:string" />
      </xs:sequence>
    </xs:complexType>

"<jaxb:property collectionType="indexed" /> " was not in the documentation.
I read about it at
(http://www.mail-archive.com/[EMAIL PROTECTED]/msg04004.html )



Benson Margulies-4 wrote:

Did you really mean <jaxb roperty collectionType='indexed'/> Where did
you find this documentation?

On Fri, May 23, 2008 at 6:54 PM, Rahul_Ravikumar <[EMAIL PROTECTED] >
wrote:

I am trying to use CXF which is an implementation of JAX-WS and use the
JAXB
framework for binding. I my WDSL i have defined a number of complex types
that are "ArrayOf<Types>". For e.g.

<xs:complexType name="ArrayOfString">
<xs:annotation>
<xs:appinfo>
<jaxb roperty collectionType="indexed"/>
</xs:appinfo>
<xs ocumentation>An object for holding a String array.</xs ocumentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="String"
type="xs:string" />
</xs:sequence>
</xs:complexType>

In Axis 1.4, this "ArrayOfString" type gets mapped to String []. However when i use CXF it generates an ArrayOfString class that consists of a
member
List<String> accessible through getter methods.

I would however like to map ArrayOfTypes to Type [] or List<Type>. I read
some of the documentation and it was suggested that i use the <jaxb
roperty
collectionType="indexed"/> when defining the complex type. But this does
NOT
help. The WSDL2Java still generates a ArrayOfType class.

Can someone please help me out?
--
View this message in context:
http://www.nabble.com/Array-Of-Unbound-Types-tp17442311p17442311.html
Sent from the cxf-user mailing list archive at Nabble.com.





--
View this message in context: 
http://www.nabble.com/Array-Of-Unbound-Types-tp17442311p17442502.html
Sent from the cxf-user mailing list archive at Nabble.com.



---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to