Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E48EE48B7 for ; Thu, 19 May 2011 18:39:03 +0000 (UTC) Received: (qmail 81870 invoked by uid 500); 19 May 2011 18:39:03 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 81741 invoked by uid 500); 19 May 2011 18:39:02 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 81734 invoked by uid 99); 19 May 2011 18:39:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 18:39:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shivendra2u@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-wy0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 18:38:54 +0000 Received: by wyb28 with SMTP id 28so3281756wyb.22 for ; Thu, 19 May 2011 11:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=0OWVa8sOY91XzFbzn3228ScxpI/3lXq+U13PV4rZurQ=; b=a5xzSxX7yKfpT2lZXXYXJSZZIt2iRVn0s8fB3Qwl5DJLIE3Nq6oOiz+iq6XkaqhlsF 7HmRKoLC+H1rdWW/6HTm3Fzy75NfEM+reeIgzQhtcviqN/44tP8/rOcGkHqrgQ1ydI02 YpgJNF/TA1GM10NiNXCMqOYWXYf/UMGBTttEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TocBLkgnL1lL8AdG5y0exuqVqiJDp74qKuPYzm6l+d/WOlyQ1+N1QnsboOGk1uLjHu n6PNlLObZjoWhAMk63Dunl8IZwFO8RwXYiFRcKAstcUI7aXEVya+rrG+eCmX24u0mw6k 4Hjwi2TcWBX5ett78wVpfugNsK6OyXJEIoJ9Y= MIME-Version: 1.0 Received: by 10.216.211.169 with SMTP id w41mr6471782weo.102.1305830314365; Thu, 19 May 2011 11:38:34 -0700 (PDT) Received: by 10.216.168.206 with HTTP; Thu, 19 May 2011 11:38:34 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 May 2011 00:08:34 +0530 Message-ID: Subject: Re: Why addressing module could not be engaged at service level? From: shivendra tripathi To: dev@ws.apache.org Content-Type: multipart/alternative; boundary=0016e6dbea3b0653ba04a3a55050 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6dbea3b0653ba04a3a55050 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Martin! Let me be more specific about the issue I am facing. I am reusing the configuration context at the client side. And once I make axis2 client call with addressing module engaged; subsequent calls to remot= e service is going with addressing header even if addressing is not engaged i= n ServiceClient object created for second call. I don't want addressing headers to appear if not engaged in a particular instance of ServiceClient. And I have to reuse configContext. One option i could think is setting "disableAddressingForOutMessages" flag. What do you guys propose? Thanks, Shiv On Thu, May 19, 2011 at 11:39 PM, Martin Gainty wrote= : > > 1. *Transport Phase* - The handlers are in the phase that processes > transport specific information such as validating incoming messages by > looking at various transport headers, adding data into message context= s, > etc. > 2. *Pre-Dispatch Phase*- The main functionality of the handlers in thi= s > phase is to populate message context to do the dispatching. For exampl= e, > processing of addressing headers of the SOAP message, if any, happens = in > this phase. Addressing handlers extract information and put them in to= the > message context. > 3. *Dispatch Phase* - The Dispatchers run in this phase and try to fin= d > the correct service and operation this particular message is destined = for. > The post condition of the dispatch phase (any phase can contain a post > condition) checks whether a service and an operation were found by the > dispatchers. If not, the execution will halt and return a "service not > found' error. > 4. *User Defined Phases* - Users can engage their custom handlers here= . > 5. *Message Validation Phase* - Once the user level execution has take= n > place, this phase validates whether SOAP Message Processing has taken = place > correctly. > 6. *Message Processing Phase* - The Business logic of the SOAP message > is executed here. A Message Receiver is registered with each Operation= . > This message receiver (associated to the particular operation) will be > executed as the last handler of this phase. > > > addressing is handled at layer2 (pre-dispatch)..addressing handlers extra= ct > addresses and populate the message-context in this layer > the dispatcher on layer 3 will transmit the message (populated by layer2) > to the registered service > after the dispatcher dispatches the request the service-modules associate= d > the registered service and the service itself are executed > Martin Gainty > ______________________________________________ > Jogi =E9s Bizalmass=E1gi kinyilatkoztat=E1s/Verzicht und > Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit=E9 > > Ez az =FCzenet bizalmas. Ha nem =F6n az akinek sz=E1nva volt, akkor k=E9= rj=FCk, hogy > jelentse azt nek=FCnk vissza. Semmif=E9le tov=E1bb=EDt=E1sa vagy m=E1sola= t=E1nak k=E9sz=EDt=E9se > nem megengedett. Ez az =FCzenet csak ismeret cser=E9t szolg=E1l =E9s sem= mif=E9le jogi > alkalmazhat=F3s=E1ga sincs. Mivel az electronikus =FCzenetek k=F6nnyen > megv=E1ltoztathat=F3ak, ez=E9rt minket semmi felel=F6s=E9g nem terhelhet = ezen =FCzenet > tartalma miatt. > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugt= e > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAt= es pas le destinataire pr=E9vu, nous te demandons avec bont=E9 que pour sat= isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e= ou la copie de ceci est interdite. Ce message sert =E0 l'information seule= ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d= onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation, = nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni. > > > > > > > ------------------------------ > Date: Thu, 19 May 2011 23:12:10 +0530 > Subject: Why addressing module could not be engaged at service level? > From: shivendra2u@gmail.com > To: dev@ws.apache.org > > > Hi, > > Just wanted to know, if there is any specific reason behind "addressing > module could only be engaged at global level", while other module e.g. > rampart could be enabled at service level? > > Why similar check is not present in addressing out handler which could be > seen in rampartSender? > > if (!msgContext.isEngaged(WSSHandlerConstants.SECURITY_MODULE_NAME)) { > return InvocationResponse.CONTINUE; > } > > Appreciate any pointer. > > Thanks, > Shiv > --0016e6dbea3b0653ba04a3a55050 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Martin!

Let me be more specific about the issue I= am facing.

I am reusing the configuration context= at the client side. And once I make axis2 client call with addressing modu= le engaged; subsequent calls to remote service is going with addressing hea= der even if addressing is not engaged in ServiceClient object created for s= econd call.

I don't want addressing headers to appear if not en= gaged in a particular instance of ServiceClient. And I have to reuse config= Context.
One option i could think is setting "disableAddress= ingForOutMessages" flag.

What do you guys propose?

Than= ks,
Shiv

On Thu, May 19,= 2011 at 11:39 PM, Martin Gainty <mgainty@hotmail.com> wrote:
  1. Transport Phase - The handlers are in the phase that processes transport specific information such as validating incoming messages by looking at various transport headers, adding data into message contexts, etc.
  2. Pre-Dispat= ch Phase- The main functionality of the handlers in this phase is to populate message context to do the dispatching. For example, processing of addressing headers of the SOAP message, if any, happens in this phase. Addressing handlers extract information and put them in to the message context.
  3. Dispatch Phase - The Dispatchers run in this phase and try to find the correct service and operation this particular message is destined for.
    The post condition of the dispatch phase (any phase can contain a post condition) checks whether a service and an operation were found by the dispatchers. If not, the execution will halt and return a "service not found' error.
  4. User Defined P= hases - Users can engage their custom handlers here.
  5. Message Validation Phase - O= nce the user level execution has taken place, this phase validates whether SOAP Message Processing has taken place correctly.
  6. Message Proce= ssing Phase - The Business logic of the SOAP message is executed here. A Message Receiver is registered with each Operation. This message receiver (associated to the particular operation) will be executed as the last handler of this phase.

addressing is handled at la= yer2 (pre-dispatch)..addressing handlers extract addresses and populate the= message-context in this layer
the dispatcher on layer 3 will transmit t= he message (populated by layer2) to the registered service
after the dispatcher dispatches the request the service-modules associated = the registered service and the service itself are executed
Martin Gainty=
______________________________________________
Jogi =E9s Bizalmass= =E1gi kinyilatkoztat=E1s/Verzicht und Vertraulichkeitanmerkung/Note de d=E9= ni et de confidentialit=E9
=A0
Ez az =FCzenet bizalmas. =A0Ha nem =F6n az akinek sz=E1nva volt, akkor k=E9rj=FCk= , hogy jelentse azt nek=FCnk vissza. Semmif=E9le tov=E1bb=EDt=E1sa vagy m=E1solat= =E1nak k=E9sz=EDt=E9se nem megengedett. =A0Ez az =FCzenet csak ismeret cser=E9t sz= olg=E1l =E9s semmif=E9le jogi alkalmazhat=F3s=E1ga sincs. =A0Mivel az electronikus =FCze= netek k=F6nnyen megv=E1ltoztathat=F3ak, ez=E9rt minket semmi felel=F6s=E9g nem te= rhelhet ezen =FCzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollt= en Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um ein= e Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist u= nzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen= und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Mani= pulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt ueberne= hmen.
Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vo=
us n'=EAtes pas le destinataire pr=E9vu, nous te demandons avec bont=E9=
 que pour satisfaire informez l'exp=E9diteur. N'importe quelle diff=
usion non autoris=E9e ou la copie de ceci est interdite. Ce message sert =
=E0 l'information seulement et n'aura pas n'importe quel effet =
l=E9galement obligatoire. =C9tant donn=E9 que les email peuvent facilement =
=EAtre sujets =E0 la manipulation, nous ne pouvons accepter aucune responsa=
bilit=E9 pour le contenu fourni.






Date: Thu, 19 May 2011 23:12:10 +0530
Subject: W= hy addressing module could not be engaged at service level?
From: shivendra2u@gmail.com<= /a>
To:
dev@ws.apache.or= g


Hi,

Just = wanted to know, if there is any specific reason behind "addressing mod= ule could only be engaged at global level", while other module e.g. ra= mpart could be enabled at service level?=A0

Why similar check is not present in addressing out hand= ler which could be seen in rampartSender?

if = (!msgContext.isEngaged(WSSHandlerConstants.SECURITY_MODULE_NAME)) {
=A0 =A0 =A0 =A0 =A0 return InvocationResponse.CONTINUE; =A0 =A0 =A0 = =A0
=A0 =A0 =A0 =A0 } =A0 =A0 =A0 =A0

<= div>Appreciate any pointer.

Thanks,
Shiv=

--0016e6dbea3b0653ba04a3a55050--