If I understand you correctly - you just need to access the header on
the service side that the client has set. If that's the case, you need
to use a recent nightly and have the Service implement the interface
org.apache.axis2.Service . Then its something like...

OperationContext _oc;
  public void setOperationContext(OperationContext oc){
      _oc = oc;
  }

What you need to do then is get the SOAPEnvelope from the
MessageContext from the INFLOW. That would roughly be:

_oc.getMessageContext("In").getTo().getAllReferenceParameters().get(qnameOfReferenceParameter);

HTH,
Robert
http://www.braziloutsource.com/

On 8/10/06, Brecht Yperman <[EMAIL PROTECTED]> wrote:
That is indeed possible to send custom headers.
How do I receive them?

Thanks,
Brecht

-----Original Message-----
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: donderdag 10 augustus 2006 15:11
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Custom headers

Maybe I'm missing something ... but why can't you use
ServiceClient.addHeader() ?

HTH,
Robert
http://www.braziloutsource.com/

On 8/10/06, Brecht Yperman <[EMAIL PROTECTED]> wrote:
> Any ideas here?
>
> This project is rather urgent, and my question seems quite trivial to
me
> (although I am unable to do it).
>
> All I want to do is send along custom headers and receive custom
> headers.
>
> Thanks,
> Brecht
>
> ________________________________________
> From: Brecht Yperman [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 8 augustus 2006 14:45
> To: axis-user@ws.apache.org
> Subject: [Axis2] Custom headers
>
> Hi,
>
> I'm using the serviceclient to call webservices.
>
> I would like the user to be able to add custom headers to the
> headerelements. I should also be able to return custom headerelements
> from the response to the user.
>
> I thought about writing a handler, but I have a few problems (how to
get
> the elements from the user to the handler?, ...)
>
> How do I start?
>
> Thanks a lot,
> Brecht
>
> Invenso - The "Integration Software" specialists.
> _____________________________________________
> Brecht Yperman
> Development team
>
> Direct: +32 (0)3 780 30 05
> Email: [EMAIL PROTECTED]
> INVENSO bvba
> Industriepark-West 75
> 9100 Sint-Niklaas
> Belgium - Europe
>
> Phone: +32 (0)3 780 30 02
> Fax: +32 (0)3 780 30 03
> Email: [EMAIL PROTECTED]
> Website: www.invenso.com
> "E-mail disclaimer: This e-mail, and any attachments thereto, is
> intended only for use by the addressee(s) named herein and may contain
> legally privileged and/or confidential information. If you are not the
> intended recipient, please note that any review, dissemination,
> disclosure, alteration, printing, copying or transmission of this
e-mail
> and/or any file transmitted with it, is strictly prohibited and may be
> unlawful. If you have received this e-mail by mistake, please
> immediately notify the sender and permanently delete the original as
> well as any copy of any e-mail and any printout thereof."
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to