dev@jax-ws.java.net

Packet.soapAction default value

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Tue, 30 May 2006 10:37:43 -0700

Somewhere in the runtime default value of soapAction is set to empty
string - "". This default value is for SOAP 1.1 only. In soap 1.2 there
is no such default value. In SOAP 1.2 if SOAPAction is not present then
the 'action' parameter is not serialized in the Content-Type HTTP header.

So currently, while writing soap 1.2 soap action, a check has to be made -

if(packet.soapAction != null && !packet.soapAction.equals("\"\"")){
    //write soap action
}

can Packet.soapAction be left without setting default value hard coded
to SOAP 1.1 and logic of writing soap action is left to encoders -
since they know which soap version they are working on?

-vivek.

-- 
Vivek Pandey
Web Services Technologies and Standards
Sun Microsystems Inc.