Hi,

Well that's what I am saying - i don't want to have a SOAP header (it's not
mandatory) , but I still want to retrieve the SOAP Style , as well as the
"use" -:) I think Axis2 should provide this, and not assume that the SOAP
request contains header(s). Thanks.

Regards,
Angel

On 7/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,
The list is empty because there is no header in your SOAP message.
There should be a SOAP-ENV:header tag in your request.

pierre


 *"Angel Todorov" <[EMAIL PROTECTED]>*

20/07/2007 13:01  Veuillez répondre à
[email protected]

  A
[email protected]  cc

 Objet
Re: [Axis2] Getting the soap style






Hi,

(the following is inside a custom message receiver):

List headers = inMessageContext.getAxisMessage().getSoapHeaders();

The list is empty. This is the SOAP Request:

<SOAP-ENV:Envelope xmlns:SOAP-ENV=" *
http://schemas.xmlsoap.org/soap/envelope/*<http://schemas.xmlsoap.org/soap/envelope/>"
xmlns:SOAP-ENC="*http://schemas.xmlsoap.org/soap/encoding/*<http://schemas.xmlsoap.org/soap/encoding/>"
 xmlns:xsi="
*http://www.w3.org/2001/XMLSchema-instance*<http://www.w3.org/2001/XMLSchema-instance>"
xmlns:xsd="*http://www.w3.org/2001/XMLSchema*<http://www.w3.org/2001/XMLSchema>">
   <SOAP-ENV:Body>
       <m:echo xmlns:m="*http://demo/xsd* <http://demo/xsd>">
           <m:param0>echo test</m:param0>
       </m:echo>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks.

Regards,
Angel



On 7/20/07, *Gabriela Gheorghe* <* [EMAIL PROTECTED]<[EMAIL PROTECTED]>>
wrote:
Hello,

What axis API are we talking about ? I doubt you can practically have a
null SOAP Header for a non-null SOAP Envelope.

All the best!
Gabriela


On 7/20/07, *Angel Todorov* <[EMAIL PROTECTED] <[EMAIL PROTECTED]>>
wrote:
Hi Gabriela,

But getUse() is only defined in the class SOAPHeaderMessage, as far as I
can see - what if my message doesn't contain a SOAP Header? Thanks very much
in advance.

Regards,
Angel


On 7/20/07, *Gabriela Gheorghe* <[EMAIL PROTECTED] *<[EMAIL PROTECTED]>>
wrote:
Hi,

It is the "getUse()" method.

All the best!


On 7/20/07, *Angel Todorov* <* [EMAIL PROTECTED] * <[EMAIL PROTECTED]>>
wrote:
hi guys,

How can one obtain the exact SOAP style from a MessageContext instance? I
am currently doing this:

mc.getAxisOperation().getStyle() ;

but it returns either "rpc" , "msg" , or "doc", as it can be seen from the
code. What about the additional literal / lit wrapped , etc?

Thanks.

Regards,
Angel



--
Kind regards / Freundliche Gruesse,
Gabriela Gheorghe

University of the Federal Armed Forces Munich
Fakultät für Informatik
Werner-Heisenberg-Weg 39
85577 Neubiberg, Germany

Email: [EMAIL PROTECTED] <[EMAIL PROTECTED]> / *
[EMAIL PROTECTED] <[EMAIL PROTECTED]>




--
Kind regards / Freundliche Gruesse,
Gabriela Gheorghe

University of the Federal Armed Forces Munich
Fakultät für Informatik

Email: [EMAIL PROTECTED] <[EMAIL PROTECTED]> / *
[EMAIL PROTECTED] <[EMAIL PROTECTED]>


Reply via email to