axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: Apache Axis 2: how to get header? Options
Date Sun, 22 Apr 2007 23:40:08 GMT
I didnt see any ability to run any of the axis operations on the server asychronously.. I assume
you're speaking on the client side???

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  ----- Original Message ----- 
  From: Shaoguang Cong 
  Sent: Sunday, April 22, 2007 7:20 PM
  Subject: Re: Apache Axis 2: how to get header? Options

  I observed the same thing: MessageContext.getCurrentMessageContext() returns null. 
  I don't know what's the designer's intention with "CurrentMessageContex", maybe that's for
asynchronical calls. 

  To get headers from the response, try MessageContext.getSoapEnvelope().getHeader(). I only
do blocked call and it works for me.


  craig wickesser <> wrote:
    yea so far I am not finding how to get headers from the response, am I missing something

    On 4/20/07, craig wickesser <> wrote: 
      Here is what it says at that link:

      You might sometimes want to send your own custom HTTP headers. You can set an ArrayList
filled with 
org.apache.commons.httpclient.Headerobjects using the above property. You must not try to
override the Headers the Axis2 engine is setting to the outgoing message

      It seems to me this in regards to settings headers, I need to somehow get the headers
from the response.  Also, in my earlier post I mentioned that when I call MessageContext.getCurrentMessageContext()
it returns null. 

      What do you think?

      On 4/20/07, robert lazarski < > wrote: 
        You'll need to work with MessageContext. Here's the reference for the properties you're
looking for: 


        On 4/20/07, craig wickesser < > wrote: 
          client side 

          On 4/20/07, robert lazarski < > wrote: 
            Client or server side ? 

            On 4/20/07, craig wickesser < > wrote: 
              any ideas?

  Ahhh...imagining that irresistible "new car" smell?
  Check out new cars at Yahoo! Autos. 
View raw message