users@glassfish.java.net

WS-Addressing Action header

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Dec 2008 04:36:58 PST

I am trying to make BPEL process that calls an external web service running on WAS 6.1 But it seems that Glassfish and WAS understands WS Addressing spec differently. Glassfish sends following header of a SOAP message:

<SOAP-ENV:Header>
   <To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:1345/OBSWeb/services/OBS</To>
   <Action xmlns="http://www.w3.org/2005/08/addressing">[b]"enableFeature"[/b]</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
    <Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:f386c657-0367-403c-b561-b0f280692065</MessageID>
</SOAP-ENV:Header>

What causes an exception on WAS

<soapenv:Header>
<wsa:FaultDetail xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:ProblemHeaderQName>wsa:Action</wsa:ProblemHeaderQName>
</wsa:FaultDetail>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
<wsa:MessageID>uuid:01FAB940-011E-4000-E000-2018C0A82F34</wsa:MessageID>
<wsa:RelatesTo>uuid:f386c657-0367-403c-b561-b0f280692065</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>wsa:MessageAddressingHeaderRequired</faultcode>
<faultstring><![CDATA[A required header representing a Message Addressing Property is not present]]></faultstring>
</soapenv:Fault>
</soapenv:Body>

When I manually remove all headers from request or just remove quotation marks from Action tag, then WAS is able to parse it. Is there any possibility to disable WS Addressing in Glassfish or to make it fill in headers without quotation marks?
[Message sent by forum member 'vzhilyaev' (vzhilyaev)]

http://forums.java.net/jive/thread.jspa?messageID=320008