I'm sort of new myself to SOAP and web services, but from what I've read you 
may want to investigate the differences between SOAP 1.1 and SOAP 1.2 and 
double check the SOAP version that your .NET services expects.  One change 
between 1.1 and 1.2 is how the action header stuff is handled.  Axis 2 is 
probably doing the right thing given the SOAP version you're using.

Mark
 
-----Original Message-----
From: christopher.g...@l-3com.com [mailto:christopher.g...@l-3com.com] 
Sent: Wednesday, April 29, 2009 9:33 AM
To: axis-user@ws.apache.org
Subject: How do I force axis2 to include a SOAPAction http header

I'm using axis2 1.4.1 and adb to call a .Net web service.  I keep
getting a response saying:

System.Web.Services.Protocols.SoapException: Unable to handle request
without a valid action parameter. Please supply a valid soap action.

I enabled the wire.header logs and it is sending action in the
Content-Type header, but it is not sending the SOAPAction header at all,
not even as an empty string "".

I have tried setting options.setAction and       

options.setProperty(
 
org.apache.axis2.Constants.Configuration.DISABLE_SOAP_ACTION,
              org.apache.axis2.Constants.VALUE_FALSE);
 
but that hasn't helped.
 
Any help would be greatly appreciated.
 
Thanks,
 
Chris Gunn
Senior Programmer
L-3 Communications

Reply via email to