You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nicola Muratori <ni...@cnare.it> on 2003/03/05 17:36:17 UTC

SOAPAction Header

hi

i'm trying the amazon web service kit, but
i can't do any search because the server replies
this to any request:


<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
<faultstring xsi:type="xsd:string">Bad Request</faultstring>
<detail xsi:type="xsd:string">The request is missing the SOAPAction
header.</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


i've tried to set headers in the axis engine but the result is the same with
any string...

can someone give me a hand??


Re: SOAPAction Header

Posted by Nicola Muratori <ni...@cnare.it>.
I supposed... :)

but the question is: HOW can I set an HTTP Header in a SOAP request
using AXIS?

thanx :)

Nicola

----- Original Message -----
From: "Eric Rajkovic" <er...@oracle.com>
To: <ax...@ws.apache.org>
Sent: Wednesday, March 05, 2003 8:09 PM
Subject: Re: SOAPAction Header


> Nicola,
>
> the SOAPAction has to be set in the HTTP header, not the SOAP header.
>
> from Amazon's WSDL:
>   <soap:operation soapAction="urn:PI/DevCentral/SoapService" />
>
> It's the same value for all operation, but it need to be there on the
wire.
>
> eric
>
> Nicola Muratori wrote:
>
> >hi
> >
> >i'm trying the amazon web service kit, but
> >i can't do any search because the server replies
> >this to any request:
> >
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> ><SOAP-ENV:Envelope
> >xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> >SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> >xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> >xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> >xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> ><SOAP-ENV:Body>
> ><SOAP-ENV:Fault>
> ><faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
> ><faultstring xsi:type="xsd:string">Bad Request</faultstring>
> ><detail xsi:type="xsd:string">The request is missing the SOAPAction
> >header.</detail>
> ></SOAP-ENV:Fault>
> ></SOAP-ENV:Body>
> ></SOAP-ENV:Envelope>
> >
> >
> >i've tried to set headers in the axis engine but the result is the same
with
> >any string...
> >
> >can someone give me a hand??
> >
> >
> >
>
>


Re: SOAPAction Header

Posted by Eric Rajkovic <er...@oracle.com>.
Nicola,

the SOAPAction has to be set in the HTTP header, not the SOAP header.

from Amazon's WSDL:
  <soap:operation soapAction="urn:PI/DevCentral/SoapService" />

It's the same value for all operation, but it need to be there on the wire.

eric

Nicola Muratori wrote:

>hi
>
>i'm trying the amazon web service kit, but
>i can't do any search because the server replies
>this to any request:
>
>
><?xml version="1.0" encoding="UTF-8"?>
><SOAP-ENV:Envelope
>xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>xmlns:xsd="http://www.w3.org/1999/XMLSchema">
><SOAP-ENV:Body>
><SOAP-ENV:Fault>
><faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
><faultstring xsi:type="xsd:string">Bad Request</faultstring>
><detail xsi:type="xsd:string">The request is missing the SOAPAction
>header.</detail>
></SOAP-ENV:Fault>
></SOAP-ENV:Body>
></SOAP-ENV:Envelope>
>
>
>i've tried to set headers in the axis engine but the result is the same with
>any string...
>
>can someone give me a hand??
>
>  
>