Code Monkey home page Code Monkey logo

Comments (4)

gregturn avatar gregturn commented on May 22, 2024

Luke Hamaty commented

More info:
Apparently my runtime environment was picking up jboss-saaj.jar from JBoss 4.0.4GA. The Sun JWSDP 1.6 saaj.jar does not exhibit this behavior (it apparently strips the encoding= part on its own).
The jboss-saaj.jar also does not set the content type on the created response message, which causes similar problems in org.springframework.ws.transport.http.MessageHandlerAdapter#handle, with no easy fix.

So, this is really a SAAJ implementation compatibility issue, possibly peculiar to the JBoss implementation, and typical of the tiny details that bedevil WS standards!

Sorry for any confusion.

from spring-ws.

gregturn avatar gregturn commented on May 22, 2024

Arjen Poutsma commented

Yeah, SAAJ is part of the J2EE 1.4 spec, so your application server probably uses its own version.

Thanks for the fix! I will include it now.

With regard to the response message, I think I can fix that in the SaajSoapMessageContext#createSoapMessageInternal. Basically, we can just copy the content type from the request message, to make sure that the SOAP version stays the same.

from spring-ws.

gregturn avatar gregturn commented on May 22, 2024

Arjen Poutsma commented

Actually, the getVersion() check can be simplified and less fragile by always returning SoapVersion.SOAP_11, since SAAJ 1.2 is SOAP 1.1 only.

SAAJ 1.3 does require the Content-Header check, though.

from spring-ws.

gregturn avatar gregturn commented on May 22, 2024

Arjen Poutsma commented

The issue reported has been fixed, but unfortunately there are other problems with JBoss's SAAJ implementation.
See http://forum.springframework.org/showthread.php?t=26634 and http://www.jboss.com/index.html?module=bb&op=viewtopic&t=86580

from spring-ws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.