That's correct, just don't link to .93 code ;-) . The OP indicated that he wants to get the header in a handle I think. In that case, the message context is already set. See MessageContext.IN_FLOWand MessageContext.OUT_FLOW to know whether its a request or a response. See org/apache/axis2/handlers/soapmonitor/SOAPMonitorHandler.java for an example of all this. Of course at the handler level this is all independent of the databinding method used.
HTH, Robert On 5/17/07, Glen Mazza <[EMAIL PROTECTED]> wrote:
I think I can partly help you. I'm assuming you used wsdl2java to create your service. At least in my case, this created these two classes (among others): (A) MyServiceMessageReceiverInOut.java and (B) MyServiceSkeleton.java Class (A), in its function invokeBusinessLogic(msgContext, newMegContext), determines the service in Class (B) to call. To get to the SOAPHeader[1], I believe you just need to call: msgContext.getEnvelope().getHeader() within this method. Let us know if this works for you. (For my code above, I used ADB databinding so the code may be different for you.) Glen [1] http://ws.apache.org/axis2/0_93/api/org/apache/axis2/soap/SOAPHeader.html Am Donnerstag, den 17.05.2007, 17:35 -0700 schrieb Jack Sprat: > Can anyone answer this question? I thought this would be fairly > common but I've not seen any tutorials or anything like that. > Any help is appreciated. > > Thanks. > T > > > Jack Sprat <[EMAIL PROTECTED]> wrote: > I am using Axis 1.2 with XML Beans and need to get the user > and password SOAP header elements. I've set up an Axis2 > handler and it is being called properly. > My question is how exactly do I get the to the SOAP header > elements? > > Thanks. > T > > > > > > > > ______________________________________________________________________ > No need to miss a message. Get email on-the-go > with Yahoo! Mail for Mobile. Get started. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
