“A required header representing a Message Addressing Property is not present”

If you are writing a web service and come across the following message in a SOAP Fault or a stack trace then don’t go digging around trying to find the code that caused the fault, take heed of the following information:

“A required header representing a Message Addressing Property is not present” is the [reason] string for a WS-Addressing specification defined fault which a compliant WS-Addressing implementation MUST throw if a wsa:Action header is not found and WS-Addressing is in use (e.g. the service WSDL contains a wsaw:UsingAddressing element with wsdl:required=”true” attribute).

So if you see that message it’s a sign that either:

  1. Your client is incorrectly adding WS-Addressing headers
  2. The server is expecting WS-Addressing and the client did not send it

So. Check the documentation for your client and server to properly configure your client and server with regards to WS-Addressing. That will fix the problem in 90% of cases*.

*Number a total guess. Likely that the accurate figure is closer to 100%

[Update 2006-10-07] This fault will also occur if a wsa:Action element is present but does not contain a value.

Advertisement

2 Responses to ““A required header representing a Message Addressing Property is not present””


  1. 1 Self Hypnosis Confidence February 26, 2010 at 10:54 am

    interesting post. I hope you continue writing such informative stuff

  2. 2 Andreas Papadopoulos June 29, 2011 at 11:04 pm

    Hello,

    I know this post is old and thank you very much for sharing this info.
    I recently had the problem you described and I couldn’t find a solution across the web.
    I had a working web service and a working client for it. I made some changes to the web service source code (nothing to do with security – just added a new function) and I was unable to deploy it on glassfish 2.1 and with glassfish 3 it was deployed fine but client was returning the above error.

    The solution was to delete the web.xml file produced by netbeans under Web Pages/WEB-INF. After deleting web.xml deploy and test run smoothly (as should from the beginning).

    Hope this will help others looking ‘desperately’ for a solution to the above error.

    Thank you

    p.s. great blog! you may visit mine too ;-)


Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




About

I’m David Illsley, I’m a Software Engineer, currently working for Morgan Stanley in London. In the past I worked for IBM developing products in the WebSphere family, and before that I studied at Edinburgh University. I'm also a PMC member @TheASF, and outside the realms of technology, enjoy skulking around the dark corners of theatre...

Archives

c

Disclaimer

The postings on this site solely reflect the personal views of the author and do not necessarily represent the views, positions, strategies or opinions of my employer.

Twitter Updates

  • *aaah* Another long weekend. I could get used to this. #fb 3 days ago
  • @ajdaniel what is now crap? Have you played with the new built in dev tools? 6 days ago
  • Frustrating not to make it to either fosdem or monkigras this week... It's like 3 buses at once or something 6 days ago
  • Wow, Danish crematoria are are pretty, uh, matter of fact… #borgen 1 week ago
  • @sd_nicholas it's a hedge against changes as it predates the final spec. Unprefixed version I think is due soon. 2 weeks ago

Follow

Get every new post delivered to your Inbox.