dev@jax-ws.java.net

SOAPAction not getting set in SOAP 1.2 messages?

From: Satadru Roy <satadru.roy_at_shaw.ca>
Date: Thu, 20 Nov 2008 09:23:02 -0800

Environment - GFV2U2.

I'm trying to set a SOAPAction header in the JAX-WS client code:

portType=...
BindingProvider bp = (BindingProvider)portType;
bp.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY,
Boolean.TRUE);
bp.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY,
"offeringID=4181:OperationName=LabPut");

But the outgoing SOAP message doesn't have the SOAPAction header:

--[HTTP request]---
Accept: application/soap+xml, multipart/related, text/html, image/gif,
image/jpeg, *; q=.2, */*; q=.2
Content-Type: multipart/related; type="application/soap+xml";
boundary="uuid:6c81b14d-ea67-4422-86f3-2437fc47acc7"
--uuid:6c81b14d-ea67-4422-86f3-2437fc47acc7
Content-Type: application/soap+xml
 
....
 
What am I missing?

Thanks,
Satadru