Keith.

Thanks again for the reply.

Can you be a bit more specific?  Which stub are you referring to?
In this case the invoke method is being called from a handler class.  I don't 
see a fromOM method in any of the classes generated for the elements in the 
SOAP header.

T


keith chapman <[EMAIL PROTECTED]> wrote: Exactly, the stub has a fromOM method 
that populates the xmlBeans classes from the response received.

Thanks,
Keith.

On 5/22/07, Todd Allen < [EMAIL PROTECTED]> wrote:Keith,

Thanks very much for the reply. 

Can you elaborate on your last statement of "drill down to the XMLBeans class?" 
 How would I do that?  I think that's the last piece of my puzzle.
Is this similar to the fromOM method I see in the message receiver class 
generated by WSDL2Java?

Thanks,
Todd


keith chapman wrote:
> Hi jack,
>
> U can use the following once you have the SOAPEnvelop to get the
> header block.
>
> SOAPHeader header =  envelope.getHeader();
>
> Once you get that you can get the specific header you want by using
> header.getHeaderBlocksWithNSURI();
>
> or get all the headers and iterate through them using
 > header.getChildren();
>
> Once you have the header block you can drill down to the xmlBeans class.
>
> Thanks,
> Keith.
>
>
> On 5/21/07, *Jack Sprat* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     OK.  I was able to get the header elements using the
>     getChildElements() method and iterating. 
>
>     But the XMLBenas question remains.  How do I get at the class
>     created by XMLBeans for these 2 header elements?
>
>     Thanks,
>     T
>
>
>     */Jack Sprat < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>/* wrote:
>
>         Deepal,
>
>         Thanks for the reply. 
>         Yes, this is server side.  I can get the SOAPEnvelope but then
>         how do I get the contents of the elements themselves?  In this
>         case it is a user and password element.  The Axis2 JavaDocs 
>         have a return value of |org.apache.axiom.soap.SOAPEnvelope for
>         the getEnvelope() method ||but I don't have any docs for that
>         type.
>         |
>         Also, does the class created by XMLBeans for the user and 
>         password elements come into play at all?  I was expecting to
>         be able to pull in those classes created by XMLBeans for these
>         2 elements.
>
>         Thanks,
>         T 
>
>
>         */Deepal Jayasinghe <[EMAIL PROTECTED]
>         <mailto:[EMAIL PROTECTED]>>/* wrote: 
>
>             Hi Jack ,
>             If this is in the server side , you can get the message
>             context and from
>             that you can get the SOAP envelope and from the soap 
>             envelope you can
>             get the soap headers.
>
>             If it is the in the client side , the the process is ,
>             - First you get the last operation context from the 
>             service client
>             - and then follow the above steps.
>
>             Thanks
>             Deepal
>             > 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 /* 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
>             >
>



 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Reply via email to