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 > > > > > Shape Yahoo! in your own image. Join our Network Research > Panel today! > http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > < http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > hot CTA = Join our Network Research Panel > > > ------------------------------------------------------------------------ > Pinpoint customers > < http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50 >who > are looking for what you sell. > > > > > -- > Keith Chapman > WSO2 Inc. > Oxygen for Web Services Developers. > http://wso2.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
