Hi guys, 
I have integrated CXF 2.0.3 into one of my projects because i need a
jax-ws runtime. It seems that there are some problems with arrays
marshalling (not present in 2.0.*). For example if the return type is an
int[], the mapping is correct:

<xs:element name="setUserProfileArrayResponse">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="return"
type="xs:int"/>
</xs:sequence>
</xs:complexType>

But at runtime i get a Marshalling Error:
org.apache.cxf.interceptor.Fault: Marshalling Error: [I is not known to
this context
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:173)
        at
org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:169)
        at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:104)
        at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)

This is quite strange, since the int[] as a parameter (and not a return
type) works.
I tested that with 2.1.3 and 2.1.4-SNAPSHOT (same behaviour)

Marco.

Reply via email to