Re: Handlers and Dynamic Header info

2006-03-22 Thread Michael Rasmussen
Thanks for the responses,  I found a solution herehttp://ws.apache.org/axis/faq.html#faq18I got rid of the handler and just cast the Soap object to a Stub where I had access to the header.
MichaelOn 3/22/06, Michael Rasmussen <[EMAIL PROTECTED]> wrote:
Hmm...maybe caller is not the best term.  I'm not talking about the caller of the service and reading it on the server side.  I am talking about the caller of the SOAP method (the one generated by axis) passing the value to the handler (Still on the client side) so that it can be inserted into the request header.  I could do all this by modifying the wsdl2java generated code, but that would be a suboptimal solution in my mind.
MichaelOn 3/22/06, 
Soactive Inc <[EMAIL PROTECTED]> wrote:

Have the caller enter this data into the SOAP header when they make the service call and then read it from the message header in your server-side handler to use/process it. By design, standard (Axis/RPC) handlers are thread-safe.
On 3/22/06, Michael Rasmussen <

[EMAIL PROTECTED]> wrote:
Hi,  I have just written a handler to
insert an element into my header.  This works fine.  Now I need to be
able to insert a value into the header on a per call basis ( I need a
different value determined by the caller).  I should note here that I don't know why this isn't a
parameter in the method, but then again I didn't write the service, so
I don't have any control over it.  Basically what I need is a
way for the caller to either insert into the MessageContext or
something similar.  As expected whatever solution I use has to be
threadsafe.  One thing I considered was to create a hash map that is
the value with the thread id as the hash.  Does anyone know how to
accomplish what I am talking about?
Thanks in advance,Michael Rasmussen








Re: Handlers and Dynamic Header info

2006-03-22 Thread Michael Rasmussen
Hmm...maybe caller is not the best term.  I'm not talking about the caller of the service and reading it on the server side.  I am talking about the caller of the SOAP method (the one generated by axis) passing the value to the handler (Still on the client side) so that it can be inserted into the request header.  I could do all this by modifying the wsdl2java generated code, but that would be a suboptimal solution in my mind.
MichaelOn 3/22/06, Soactive Inc <[EMAIL PROTECTED]> wrote:
Have the caller enter this data into the SOAP header when they make the service call and then read it from the message header in your server-side handler to use/process it. By design, standard (Axis/RPC) handlers are thread-safe.
On 3/22/06, Michael Rasmussen <
[EMAIL PROTECTED]> wrote:
Hi,  I have just written a handler to
insert an element into my header.  This works fine.  Now I need to be
able to insert a value into the header on a per call basis ( I need a
different value determined by the caller).  I should note here that I don't know why this isn't a
parameter in the method, but then again I didn't write the service, so
I don't have any control over it.  Basically what I need is a
way for the caller to either insert into the MessageContext or
something similar.  As expected whatever solution I use has to be
threadsafe.  One thing I considered was to create a hash map that is
the value with the thread id as the hash.  Does anyone know how to
accomplish what I am talking about?
Thanks in advance,Michael Rasmussen






Re: Handlers and Dynamic Header info

2006-03-22 Thread Soactive Inc
Have the caller enter this data into the SOAP header when they make the service call and then read it from the message header in your server-side handler to use/process it. By design, standard (Axis/RPC) handlers are thread-safe.
On 3/22/06, Michael Rasmussen <[EMAIL PROTECTED]> wrote:
Hi,  I have just written a handler to
insert an element into my header.  This works fine.  Now I need to be
able to insert a value into the header on a per call basis ( I need a
different value determined by the caller).  I should note here that I don't know why this isn't a
parameter in the method, but then again I didn't write the service, so
I don't have any control over it.  Basically what I need is a
way for the caller to either insert into the MessageContext or
something similar.  As expected whatever solution I use has to be
threadsafe.  One thing I considered was to create a hash map that is
the value with the thread id as the hash.  Does anyone know how to
accomplish what I am talking about?
Thanks in advance,Michael Rasmussen




Handlers and Dynamic Header info

2006-03-22 Thread Michael Rasmussen
Hi,  I have just written a handler to
insert an element into my header.  This works fine.  Now I need to be
able to insert a value into the header on a per call basis ( I need a
different value determined by the caller).  I should note here that I don't know why this isn't a
parameter in the method, but then again I didn't write the service, so
I don't have any control over it.  Basically what I need is a
way for the caller to either insert into the MessageContext or
something similar.  As expected whatever solution I use has to be
threadsafe.  One thing I considered was to create a hash map that is
the value with the thread id as the hash.  Does anyone know how to
accomplish what I am talking about?
Thanks in advance,Michael Rasmussen