A 2.8MB attribute?!?!? Wow. You should strongly consider making that a base64binary element and turning on MTOM. :-)
As Sergey mentioned, setting an endpoint property of: "org.apache.cxf.stax.maxAttributeSize" to something larger should do it. Dan On Jul 19, 2013, at 12:16 AM, baolang00 <[email protected]> wrote: > Hi, > > I called a c# webservice, it could be return a response like this > "<soap:Body><SetPDFResponse > xmlns="http://edi.ucsus.com/WebService/Shipment1.1"><SetPDFResult><UCS > xmlns="http://edi.ucsus.com/"><ReturnValue Description="pass" Code="100" > Value="JVBERi0xLj......". > The Value's length is 2800000. > > but in the eclipse,I got a exception: > > org.apache.cxf.interceptor.Fault: Unmarshalling Error: Maximum attribute > size (65536) exceeded > at [row,col {unknown-source}]: [1,118384] > at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:808) > at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:629) > at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157) > at > org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:103) > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) > at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:800) > at > ...... > > How can I set the Maximum attribute size? > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Unmarshalling-Issue-tp5731140.html > Sent from the cxf-user mailing list archive at Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
