Because it is required in SOAP 1.1. If you are using the SOAP 1.1 XML protocol (identified by the namespace "http://schemas.xmlsoap.org/soap/envelope/") then you MUST include the SOAPAction header on HTTP messages. If you are using the SOAP 1.2 XML protocol (identified by the namespace "http://www.w3.org/2002/06/soap-envelope" then you MAY include the SOAPAction header on HTTP messages.
Any SOAP 1.1 over HTTP request message that does not include a SOAPAction header is not a valid SOAP message. But Axis could be lenient on this issue and not throw a fault. There is nothing in the specification that requires a SOAP server to respond with a fault. Anne > -----Original Message----- > From: Chris Forbis [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 27, 2002 1:47 PM > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: SOAPAction HTTP header required (again) > > > SO if it is not required for 1.2 and axis is heading towards 1.2, why not > make it an option in the config? Require or not to require?) > > -----Original Message----- > From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 6:38 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: SOAPAction HTTP header required (again) > > In SOAP 1.1, the SOAPAction header is required, although the > contents can be > empty. > In SOAP 1.2, the SOAPAction header is optional. > > Anne > > > -----Original Message----- > > From: Xander van der Merwe [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, November 26, 2002 5:46 PM > > To: [EMAIL PROTECTED] > > Subject: Re: SOAPAction HTTP header required (again) > > > > > > Ok, according to SOAP1.1 it looks like it is required. It would > > not be a bad > > idea to put this into the Axis FAQ since it is one of the > biggest gotchas > > for any Axis newby. It took me a while anyway, to figure out how > > to get the > > MS Soap Client to work with Axis due to this requirement. > > > > Xander > > > > ----- Original Message ----- > > From: "Ken Pelletier" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, November 27, 2002 11:14 AM > > Subject: SOAPAction HTTP header required. > > > > > > > I have a service which I've moved from Apache SOAP to Axis and am now > > > testing. > > > > > > Apart from a couple of things, it's working quite well. > > > > > > I have one instance where a particular client application can > no longer > > > make calls to the service now that it's been placed under Axis, but > > > could when it was under Apache SOAP. > > > > > > The client app, which is not under my control, does not send a > > > SOAPAction HTTP header, so Axis always returns a 'no SOAPAction > > > header!' fault to the client. > > > > > > How can I get my service to consumer messages w/o SOAPAction HTTP > > > headers under Axis? > > > > > > - Ken > > > > > > > > > > >
