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.