Announcement Announcement Module
Collapse
No announcement yet.
Facing SAX Parser Exception while converting from SaajSoapMessageFactory to AxiomSo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Facing SAX Parser Exception while converting from SaajSoapMessageFactory to Axiom

    I also have same issue please any one help

    Comment

    Working...
    X