yogen,

Couple of notes:
1) Those keys are mostly used for setting SOAPActions when using the 
Dispatch APIs.  

2) Those properties are optional.  A JAXWS implementation is not required 
to support them.   We do support setting the SOAPAction via the 
SOAPACTION_URI_PROPERTY, but we don't support the 
SOAPACTION_USE_PROPERTY.   FYI: the reference implementation from Sun 
does the exact same thing.   It doesn't look at the _USE_ property at 
all either.

Basically, short of writing an interceptor to remove the SOAPAction 
header, there isn't a way to do it.   That said, the question is "why?"   
What you are trying to do results in a message that is against all the 
specifications.   Many SOAP toolkits would reject it.   The WSI Basic 
Profile explicitely forbids it. 

Dan


On Tuesday 29 January 2008, Yadav, Yogendra (IT) wrote:
> Hi Dan,
> Thanx for the reply.
>
> As per JAX-WS spec there is a way to disable this header, default is
> disabled.
> javax.xml.ws.soap.http.soapaction.use Boolean
> Controls whether the SOAPAction HTTP header is used in SOAP/HTTP
> requests. Default value is false.
>
> I tried to disable it like this, has no effect....
>         CalculatorService ss = new CalculatorService(wsdlURL,
> SERVICE_NAME);
>         Calculator port = ss.getCalculatorJettyHTTPPort();
>         BindingProvider provider = (BindingProvider)port;
>         provider.getRequestContext().put(
> BindingProvider.SOAPACTION_USE_PROPERTY, false );
>
> Is it applicable to SOAP 1.2 ?
>
> Thanx
> -yogen
>
> -----Original Message-----
> From: Daniel Kulp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 24, 2008 10:58 AM
> To: [email protected]
> Cc: Yadav, Yogendra (IT)
> Subject: Re: SOAPAction Http header
>
>
> With SOAP 1.1, SOAPAction is REQUIRED and must ALWAYS be sent.  
> That's per SOAP 1.1 spec.
> http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528
>
> So, basically, the answer is no.    Even if it wasn't put in the wsdl,
> we
> would still send an empty SOAPAction.
>
> Dan
>
> On Thursday 24 January 2008, Yadav, Yogendra (IT) wrote:
> > Hi,
> > I used wsdl2java to generate client code from the WSDL. This client
> > adds SOAPAction field to the http header with empty content. Is
> > there a way of turning it off, so that SOAPAction is not added to
> > the http header at all.
> >
> > thanx
> > -yogen
> > --------------------------------------------------------
> >
> > NOTICE: If received in error, please destroy and notify sender.
> > Sender
> >
> > does not intend to waive confidentiality or privilege. Use of this
> > email is prohibited when received in error.
>
> --
> J. Daniel Kulp
> Principal Engineer, IONA
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog
> --------------------------------------------------------
>
> NOTICE: If received in error, please destroy and notify sender. Sender
> does not intend to waive confidentiality or privilege. Use of this
> email is prohibited when received in error.



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to