Re: AW: How to access the SOAPHeader

2006-07-19 Thread Michele Mazzucco
Eran, maybe I'm wrong, but I think there's a small problem with the Service interface. The method defined there does not throw any Exception, while the "common" implementation (this.inMsgCtx = opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE)) does (of course you can add a try-catch bl

RE: AW: How to access the SOAPHeader

2006-07-14 Thread Derek
can check at edit time to warn me if I am doing something wrong. Derek > -Original Message- > From: Davanum Srinivas [mailto:[EMAIL PROTECTED] > Sent: Friday, July 14, 2006 5:21 AM > To: axis-user@ws.apache.org > Subject: Re: AW: How to access the SOAPHeader > >

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Eran Chinthaka
Ok guys. its implemented and committed to the code base. You may try it now. You need to implement org.apache.axis2.Service interface. -- Chinthaka Davanum Srinivas wrote: > +1 from me. > > On 7/14/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: >> so lets go for that , AFAIK we only need to c

RE: AW: How to access the SOAPHeader

2006-07-14 Thread Tony Dean
ailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 8:06 AM To: axis-user@ws.apache.org Subject: Re: AW: How to access the SOAPHeader Rodrigo Ruiz wrote: > Mmm, yes of course. But I guess you are talking about a mandatory > interface, like Remote. I am talking about an optional one, like >

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Davanum Srinivas
+1 from me. On 7/14/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: so lets go for that , AFAIK we only need to change DependencyManager to support that. Eran Chinthaka wrote: >Rodrigo Ruiz wrote: > > >>Mmm, yes of course. But I guess you are talking about a mandatory >>interface, like Remote

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Deepal Jayasinghe
so lets go for that , AFAIK we only need to change DependencyManager to support that. Eran Chinthaka wrote: >Rodrigo Ruiz wrote: > > >>Mmm, yes of course. But I guess you are talking about a mandatory >>interface, like Remote. I am talking about an optional one, like >>LifeCycle. For example: >

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Eran Chinthaka
Rodrigo Ruiz wrote: > Mmm, yes of course. But I guess you are talking about a mandatory > interface, like Remote. I am talking about an optional one, like > LifeCycle. For example: > > public interface ContextAware { > void setOperationContext(OperationContext ctx); > } > > In this case, only t

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Rodrigo Ruiz
Mmm, yes of course. But I guess you are talking about a mandatory interface, like Remote. I am talking about an optional one, like LifeCycle. For example: public interface ContextAware { void setOperationContext(OperationContext ctx); } In this case, only those services interested in having thi

AW: AW: How to access the SOAPHeader

2006-07-14 Thread Haug, Thomas
Von: Eran Chinthaka [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. Juli 2006 13:47 An: axis-user@ws.apache.org Betreff: Re: AW: How to access the SOAPHeader Hi Rodrigu, Rodrigo Ruiz wrote: > > Eran Chinthaka wrote: >> We didn't want to put any restriction on a user who wanna w

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Eran Chinthaka
Hi Rodrigu, Rodrigo Ruiz wrote: > > Eran Chinthaka wrote: >> We didn't want to put any restriction on a user who wanna write a simple >> java class and expose that as a web service. Thats been the case so far. >> I hope you can understand that it will make the most common and simple >> case simpl

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Rodrigo Ruiz
Eran Chinthaka wrote: > We didn't want to put any restriction on a user who wanna write a simple > java class and expose that as a web service. Thats been the case so far. > I hope you can understand that it will make the most common and simple > case simple. > And I don't see a single reason beh

Re: AW: How to access the SOAPHeader

2006-07-14 Thread Eran Chinthaka
Hi Thomas, Haug, Thomas wrote: > Hi Chinthaka, > > Thank you for the quick answer. > So if I got it right: the Axis2 framework inspects the service class (via > reflection?), if the service class provides a > setOperationContext(OperationContext opContext) method. Are there any other > operat

AW: How to access the SOAPHeader

2006-07-14 Thread Haug, Thomas
le to get the SOAPHeader. Cheers, Thomas -Ursprüngliche Nachricht- Von: Eran Chinthaka [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. Juli 2006 11:53 An: axis-user@ws.apache.org Betreff: Re: How to access the SOAPHeader First get access to the message context within the service implementation cla

Re: How to access the SOAPHeader

2006-07-14 Thread Eran Chinthaka
First get access to the message context within the service implementation class following this (http://www.wso2.net/kb/106). Then from the message context you can get access to the soap envelope using msgCtxt.getEnvelope() -- Chinthaka Haug, Thomas wrote: > > > Hi, > > I want to access the SO

How to access the SOAPHeader

2006-07-14 Thread Haug, Thomas
Title: How to access the SOAPHeader Hi, I want to access the SOAPHeader in my service implementation class. In Axis 1 I have done soemthing like    SOAPHeader header = null;    //extract the Header from the current SOAP Request    try { header = (SOAPHeader