cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jan.minarovi...@external.t-mobile.at
Subject Antwort: JAXB 2.0 schema validation [Virus checked]
Date Wed, 11 Jun 2008 15:04:56 GMT
Hard to help without any sample data and xsd




Adrian C <adrian.corcoran@gmail.com> 
06/11/2008 16:59
Bitte antworten an
users@cxf.apache.org


An
users@cxf.apache.org
Kopie

Thema
JAXB 2.0 schema validation  [Virus checked]







Hi,

I have a consumer of a web service which is created using
org.apache.cxf.jaxws.JaxWsProxyFactoryBean via spring. I seem to be having
an issue where the validation things that optional elements are mandatory!

Am getting:
org.apache.cxf.interceptor.Fault: Marshalling Error: 
cvc-complex-type.2.4.b:
The content of element 'KKK' is not complete. One of
'{"http://www.sample.com/ws/de":YYY, "http://www.sample.com/ws/de":XXX}' 
is
expected.
                 at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:207)
                 at 
org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:63)
                 at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:84)
                 at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
                 at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
                 at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
                 at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
                 at 
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
                 at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:170)
                 at $Proxy44.createIdentity(Unknown Source)

Does anyone have any ideas what is going on!? This seems to be only on the
client side!

Am using cxf 2.0.5 and it's jaxb jars (jaxb 2.0.x)

Thanks

-- 
View this message in context: 
http://www.nabble.com/JAXB-2.0-schema-validation-tp17779938p17779938.html
Sent from the cxf-user mailing list archive at Nabble.com.





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message