I am receiving errors when using AxiomSoapMessageFactory as my messageFactory along with JAXB. The same code works great when using SAAJ as my factory, but do to other issues AXIOM must be used. The error I am receiving is:
My messageFactory statement is:Code:org.springframework.oxm.jaxb.JaxbUnmarshallingFailureException: JAXB unmarshalling exception: null; nested exception is javax.xml.bind.UnmarshalException - with linked exception: [javax.xml.stream.XMLStreamException] Caused by: javax.xml.bind.UnmarshalException - with linked exception: [javax.xml.stream.XMLStreamException] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:422) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:330) at org.springframework.oxm.jaxb.Jaxb2Marshaller.unmarshalStaxSource(Jaxb2Marshaller.java:322) at org.springframework.oxm.jaxb.Jaxb2Marshaller.unmarshal(Jaxb2Marshaller.java:309) at org.springframework.ws.support.MarshallingUtils.unmarshal(MarshallingUtils.java:54) at org.springframework.ws.client.core.WebServiceTemplate$2.extractData(WebServiceTemplate.java:267) at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:408) at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:256)
My Marshaller/Unmarshaller is org.springframework.oxm.jaxb.Jaxb2MarshallerCode:<bean id="messageFactory" class="org.springframework.ws.soap.axiom.AxiomSoapMessageFactory"> <property name="payloadCaching" value="true"/> </bean>
Any thoughts on this one?
Thanks in advance,
Keith


Reply With Quote