-
Dec 17th, 2008, 01:32 AM
#1
Facing SAX Parser Exception while converting from SaajSoapMessageFactory to AxiomSo
Hi,
We were using SaajSoapMessageFactory, But it is taking too much time while responding to large messages So we have decided to go for AxiomSoapMessageFactory but we are getting following exception...
org.springframework.oxm.jaxb.JaxbUnmarshallingFail ureException: JAXB unmarshalling exception: null; nested exception is javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'xsd:string' as a QName: the prefix 'xsd' is not declared.]
When we switch back to again SaajSoapMessageFactory everything works well but taking too much time
Here is my SaajSoapMessageFactory configuration
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory">
<property name="soapVersion">
<util:constant static-field="org.springframework.ws.soap.SoapVersion.SOA P_11"/>
</property>
<property name="messageFactory">
<bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAP MessageFactory1_1Impl"/>
</property>
</bean>
<bean id="notificationMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
<property name="contextPath" value="test.sc.test"/>
<property name="schema" value="test.xsd"/>
</bean>
If I change mesage factory to following
<bean id="messageFactory" class="org.springframework.ws.soap.axiom.AxiomSoap MessageFactory">
<property name="payloadCaching" value="true"/>
</bean>
I am getting folowing exception
org.springframework.oxm.jaxb.JaxbUnmarshallingFail ureException: JAXB unmarshalling exception: null; nested exception is javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'xsd:string' as a QName: the prefix 'xsd' is not declared.]
Any Help would be appreaciated.
Thanks in Advance
-
Dec 17th, 2008, 04:16 PM
#2
Facing SAX Parser Exception while converting from SaajSoapMessageFactory to Axiom
I also have same issue please any one help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules