Results 1 to 5 of 5

Thread: WS-Addressing Required Headers

  1. #1
    Join Date
    Dec 2008
    Posts
    19

    Default WS-Addressing Required Headers

    Hi

    I'm using Spring WS 1.5.5 together with the SimpleActionEndpointMapping, but getting wsa:MessageAddressingHeaderRequired errors from the server when I don't expect them.

    As I understand it, the only required WS-Addressing header is wsa:Action, but Spring-WS is complaining if I don't specify either a wsa:To or wsa:MessageID header. According to the WS-Addressing standard(s) it seems like both the latter headers should be optional.

    I had a look at the source code for org.springframework.ws.soap.addressing.MessageAddr essingProperties, and the hasRequiredProperties() method would appear to confirm the observed behaviour; however it only insists on a MessageID if either ReplyTo or FaultTo have been specified. As I'm not sending either of those I wonder if the stack has inserted a default "anonymous endpoint" value into one or both and that is triggering the error.

    Am I missing something, or is the implementation a little too constrained?

    Many thanks

    Alan

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

    Default

    This looks like a bug. Could you please file a JIRA at http://jira.springframework.org/browse/SWS? WE might be able to fix is for 1.5.6, due any day now.

    Thanks!
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Dec 2008
    Posts
    19

    Default

    Hi Arjen

    Bug duly filed:

    http://jira.springframework.org/browse/SWS-465

    Many thanks,

    Alan

  4. #4
    Join Date
    May 2011
    Posts
    2

    Default

    Hi,

    Is it known if the bug fixed by the JIRA incident SWS-465, is also present in "org.springframework.ws.soap.addressing.server.Ann otationActionEndpointMapping"

    I'm suffering 100% similar issue with that endpoint. I'm using soapUI to quickly test my endpoint, and until I don't add a random messageID and a default To header, I'm always getting:

    <faultcode xmlns:wsa="http://www.w3.org/2005/08/addressing">wsa:MessageAddressingHeaderRequired</faultcode>
    <faultstring xml:lang="en">A required header representing a Message Addressing Property is not present</faultstring>

    Thanks

  5. #5
    Join Date
    Jan 2013
    Location
    DMV
    Posts
    1

    Default

    I am also having the same issue as waterazu when using 'AnnotationActionEndpointMapping', The spring web services version is 2.1.2. and issue is present in that version. Is there a work around to accept the request only with wsa:action and not messageId. I am testing with a third party automated tool, so I don't have control over what comes into the request. Please reopen the http://jira.springframework.org/browse/SWS-465

Tags for this Thread

Posting Permissions

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