Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: JiBX unmarshalling - DOM error

  1. #11
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by decrypt
    Arjen,

    Is this why I must return a DOMSource in my endpoint's implementation of getResponse() ? Because I get exceptions when I try to return anything but that...i.e. StreamSource/SAXSource.
    No, that's shouldn't be necessary. What Marshaller are you using?
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  2. #12

    Default

    Actually I'm using AbstractSaxPayloadEndpoint

    If I attempt to return anything but a DOMSource in getResponse(), I get exceptions on the server-side.

  3. #13
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Hmm that sounds like a bug. Could you create an issue with the exact configuration and errors you get?

    Thans,
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  4. #14

    Default

    I will try...but I don't ever get to see the actual exception...it start trying to create a soap fault response and then it errors on the fact that there is already a response object created...so there may be two bugs at play here...

  5. #15

    Default

    I replaced WebLogic's XML related jars (Xerces, Xalan, xml-apis) and now i can return a SAXSource or a StreamSource just fine now.

  6. #16
    Join Date
    Jun 2006
    Posts
    23

    Default axiom vs saaj

    One more question about an ealier response to this thread:
    "There a two concrete implementations: SaajSoapMessage, which is based on a DOM tree, and AxiomSoapMessage, which is based on a StAX XMLStreamReader. ..."

    So - on the server-side, in order for Spring WS to use Axiom one would have to set the system property for the SOAP factory to the AxiomSoapFactory, correct? And, once this system property is set Spring WS will use the StAX based streamer only - and therefore, you must use the SOAPActionEndpointMapping dispatcher/mapper so it looks at the SOAPAction header. The PayloadRootQNameEndpointMapping dispatcher/mapper will no longer work on "that" deployment since it relies on the DOM tree (and the system won't be using SAAJ)?

    Is this a correct statement?

    Ron

  7. #17
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by rwilcom
    So - on the server-side, in order for Spring WS to use Axiom one would have to set the system property for the SOAP factory to the AxiomSoapFactory, correct?
    No, you just have to change the SaajSoapMessageContextFactory in the application context to the AxiomSoapMessageContextFactory. That should be enough.

    Quote Originally Posted by rwilcom
    And, once this system property is set Spring WS will use the StAX based streamer only - and therefore, you must use the SOAPActionEndpointMapping dispatcher/mapper so it looks at the SOAPAction header. The PayloadRootQNameEndpointMapping dispatcher/mapper will no longer work on "that" deployment since it relies on the DOM tree (and the system won't be using SAAJ)?
    No, the PayloadRootQNameEndpointMapping will work just fine, and so will the SoapActionEndpointMapping. It's just that the SoapActionEndpointMapping doesn't look in the contents of the message to dispatch it. That's why it's faster.
    [/QUOTE]

    Cheers,
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  8. #18
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by decrypt
    I replaced WebLogic's XML related jars (Xerces, Xalan, xml-apis) and now i can return a SAXSource or a StreamSource just fine now.
    Good news. Perhaps I should place a big warning on how to upgrade the XML libraries in the reference documentation. Seems to affect a lot of people.

    Thanks!
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  9. #19
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    The issue that was the original topic of this thread should now be fixed in subversion. You can get the sources from

    https://svn.sourceforge.net/svnroot/...unk/spring-ws/.

    I will upload a snapshot that will contain this functionality tomorrow.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  10. #20
    Join Date
    Jun 2006
    Posts
    23

    Default

    Arjen,
    Thanks for the fix! Was this an extensive update or a couple of blocks of code? Just curious, which classes and what areas were updated.

    thanks again!
    Ron

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •