Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-510

AxiomSoapMessageFactory throws IllegalArgument when Content-Type is not set

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7
    • Component/s: Core
    • Labels:
      None
    • Environment:
      IBM Wensphere 6.1, MQ (JMS), Oracle

      Description

      Messages recieved must contain the header "Content-Type" when the header does not contain this a IllegalArgument exceptions is thrown, "TransportInputStream contains no Content-Type header".
      Though this is correct is the pure sense, there is no real specification for sending messages by means of MOM.

      When the sender of the message is Spring-WS this does not impose any problems (the header is set) but when others, in our case Oracle BPM, sends a message the header is not send and where not able to process the response.

      Possible solution, assume a default value for the "Content-Type" header is message from the MOM. content-type=text/xml?

        Activity

        pieni Pieter van der Meer created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Original Estimate 0.25d [ 7200 ]
        Fix Version/s 1.5.7 [ 11173 ]
        Remaining Estimate 0.25d [ 7200 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            pieni Pieter van der Meer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: