Return-Path: Delivered-To: apmail-axis-c-user-archive@www.apache.org Received: (qmail 58859 invoked from network); 15 Oct 2010 09:38:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 09:38:12 -0000 Received: (qmail 14312 invoked by uid 500); 15 Oct 2010 09:38:12 -0000 Delivered-To: apmail-axis-c-user-archive@axis.apache.org Received: (qmail 14282 invoked by uid 500); 15 Oct 2010 09:38:11 -0000 Mailing-List: contact c-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C User List" Delivered-To: mailing list c-user@axis.apache.org Received: (qmail 14274 invoked by uid 99); 15 Oct 2010 09:38:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 09:38:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rickomuer@gmail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 09:38:06 +0000 Received: by gwj16 with SMTP id 16so219087gwj.32 for ; Fri, 15 Oct 2010 02:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=K+HaFyNvDz3K/7dxm1oeNLWq73R5Adqfb6AnUTlWzSY=; b=JGqsbRTLpLWDhqpjvgTgi21RUAuA9CrHGa+DL6/xIcWnkDpefNJaEZESRy0TtjQp6k sqTcoEkfxRGxuPbbKLDTyki1HNmYxjLRdAMiyMVjjsARbtsqM/awohJmez01U3gL+hrk BxREvzlq9qOA9ud8S8U5cvFoYgdg5CtXx5BYU= 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=VKRzJ6U2+X1K24r1c4M1qLiQjZA2R/6TzP2UcDlD3YbrYWmdfk/Tu1Xu3m7I88GHP7 o6wnOG8g80j9HXs3h43oHhEY3Ljhx5qTh2FmsWhsD+BL6xDbJRlV2TF1PkV4rvll8jvu /Eykw19JliWfuZvuEcPZtONbj2lKaEkOyWTUA= MIME-Version: 1.0 Received: by 10.42.167.200 with SMTP id t8mr283370icy.238.1287135465691; Fri, 15 Oct 2010 02:37:45 -0700 (PDT) Received: by 10.220.191.130 with HTTP; Fri, 15 Oct 2010 02:37:45 -0700 (PDT) In-Reply-To: References: <4CA2907A.1080400@wso2.com> <4CAC72C9.4090903@wso2.com> Date: Fri, 15 Oct 2010 10:37:45 +0100 Message-ID: Subject: Re: Configuring endpoint URL & SOAPAction for WebServices From: Rico M To: Apache AXIS C User List Content-Type: multipart/alternative; boundary=90e6ba6e846a35db4e0492a49428 --90e6ba6e846a35db4e0492a49428 Content-Type: text/plain; charset=ISO-8859-1 Hi Nandika, I am not sure i understand , can you please provide me an example ? Thanks! On Fri, Oct 15, 2010 at 3:24 AM, Nandika Jayawardana wrote: > The message receiver is specified for the operation. Hence it would need > custom modifications to have the message receiver to specified at service > level. > > Regards > Nandika > > On Thu, Oct 14, 2010 at 3:09 PM, Rico M wrote: > >> Sorry to bump this topic again.... >> >> I understand there can be multiple operations at one endpoint. Is there a >> way to seperate the calls to a different library >> >> Services file from Calculator: >> >> >> > locked="xsd:false">Calculator >> >> >> This is a testing service, named 'Calculator' to test dynamic >> client >> >> >> >> >> >> Calculator#add >> >> >> >> >> >> Calculator#sub >> >> >> >> >> >> >> Above example separates out the calls at the invoke function based on an >> element. Can the call be re-directed to a different library by the >> dispatchers themselves ? (i.e. prevent parsing message to find out which >> operation was requested) PS : I am dealing with a Non WS* compliant entity. >> >> What is the significance of messageReceiver ? >> >> Thanks! >> >> >> >> On Wed, Oct 6, 2010 at 5:04 PM, Rico M wrote: >> >>> Oh Boy! How did i miss that :) >>> >>> Thanks damitha :)) >>> >>> >>> On Wed, Oct 6, 2010 at 1:59 PM, Damitha Kumarage wrote: >>> >>>> Hi Rico, >>>> If you look at the following two lines in the log you sent, you will get >>>> the answer. >>>> >>>> >>>> [Wed Oct 6 11:45:52 2010] [debug] soap_body_disp.c(115) Checking for >>>> service using SOAP message body's first child's namespace URI : >>>> http://ws.apache.org/axis2/services/math >>>> [Wed Oct 6 11:45:52 2010] [debug] soap_body_disp.c(138) Service found >>>> using SOAP messagebody's first child's namespace URI >>>> >>>> Damitha >>>> >>>> Rico M wrote: >>>> >>>>> Thanks damitha, >>>>> That does help me get an idea. I was changing the configuration to >>>>> understand how the invocation works. I am working with one of the examples >>>>> packaged with axis2 kit - Math. >>>>> >>>>> I cannot understand the following. axis_install_dir/math/services.xml >>>>> has the following entry : >>>>> >>>>> >>>>> math >>>>> >>>>> This is a testing service, named 'math' to test multiple >>>>> operations in the same service >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I understand that the service is invoked with the following EPR : >>>>> address = "http://localhost:9090/axis2/services/math"; >>>>> >>>>> Now if i change the following to anything... in my client..... >>>>> math_client.c >>>>> >>>>> "http://localhost:9090/axis2/services/ccccccccHTNGmathia"; >>>>> >>>>> The invocation is still successful ! I am not sure about this , am i >>>>> missing something ?? >>>>> >>>>> [Wed Oct 6 11:45:52 2010] [debug] apache2_worker.c(241) >>>>> http://localhost:9090/axis2/services/ccccccccHTNGmathia >>>>> [Wed Oct 6 11:45:52 2010] [debug] apache2_worker.c(299) Client HTTP >>>>> version HTTP/1.1 >>>>> [Wed Oct 6 11:45:52 2010] [debug] soap_builder.c(894) identified soap >>>>> version is soap12 >>>>> [Wed Oct 6 11:45:52 2010] [debug] phase.c(202) Invoke the handler >>>>> request_uri_based_dispatcher within the phase Transport >>>>> [Wed Oct 6 11:45:52 2010] [debug] req_uri_disp.c(97) Checking for >>>>> service using target endpoint address : >>>>> http://localhost:9090/axis2/services/ccccccccHTNGmathia >>>>> [Wed Oct 6 11:45:52 2010] [debug] phase.c(202) Invoke the handler >>>>> addressing_based_dispatcher within the phase Transport >>>>> [Wed Oct 6 11:45:52 2010] [debug] addr_disp.c(103) Checking for >>>>> service using WSA enpoint address : >>>>> http://localhost:9090/axis2/services/ccccccccHTNGmathia >>>>> [Wed Oct 6 11:45:52 2010] [debug] phase.c(202) Invoke the handler >>>>> rest_dispatcher within the phase Dispatch >>>>> [Wed Oct 6 11:45:52 2010] [debug] phase.c(202) Invoke the handler >>>>> soap_message_body_based_dispatcher within the phase Dispatch >>>>> [Wed Oct 6 11:45:52 2010] [debug] soap_body_disp.c(115) Checking for >>>>> service using SOAP message body's first child's namespace URI : >>>>> http://ws.apache.org/axis2/services/math >>>>> [Wed Oct 6 11:45:52 2010] [debug] soap_body_disp.c(138) Service found >>>>> using SOAP messagebody's first child's namespace URI >>>>> [Wed Oct 6 11:45:52 2010] [debug] soap_body_disp.c(200) Checking for >>>>> operation using SOAP messagebody's first child's local name : add >>>>> [Wed Oct 6 11:45:52 2010] [debug] soap_body_disp.c(207) Operation >>>>> found using SOAP message body's first child's local name >>>>> [Wed Oct 6 11:45:52 2010] [debug] phase.c(202) Invoke the handler >>>>> soap_action_based_dispatcher within the phase Dispatch >>>>> [Wed Oct 6 11:45:52 2010] [debug] phase.c(202) Invoke the handler >>>>> dispatch_post_conditions_evaluator within the phase PostDispatch >>>>> [Wed Oct 6 11:45:52 2010] [debug] phase.c(202) Invoke the handler >>>>> context_handler within the phase PostDispatch >>>>> [Wed Oct 6 11:45:52 2010] [warning] msg_ctx.c(1384) session-table not >>>>> set in message context >>>>> >>>>> Thanks & Regards! >>>>> >>>>> >>>>> On Wed, Sep 29, 2010 at 2:03 AM, Damitha Kumarage >>>> damitha@wso2.com>> wrote: >>>>> >>>>> Does this answer [1] and [2] your question? >>>>> Thanks, >>>>> Damitha >>>>> >>>>> [1] http://wso2.org/library/176 >>>>> [2] >>>>> >>>>> http://damithakumarage.wordpress.com/2008/02/12/soap-action-and-addressing-action/ >>>>> >>>>> Rico M wrote: >>>>> >>>>> Hi, >>>>> >>>>> I wanted to understand how endpoints & soap action are used to >>>>> call a >>>>> web service in axis2c. For ex: I am reaching an endpoint : >>>>> http://abc.org and calling the soapAction : >>>>> http://mno.org/ServiceA. >>>>> How can the following be configured in my webserver ? All >>>>> current >>>>> calls I am making are via a endpoint url which doubles for >>>>> both action >>>>> & endpoint URL : http://localhost:90/services/hello. >>>>> >>>>> >>>>> >>>> locked="xsd:false">hello >>>>> >>>>> Quick start guide hello service sample. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Cheers! >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org >>>>> >>>>> >>>>> For additional commands, e-mail: c-user-help@axis.apache.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> __________________________________________________________________ >>>>> >>>>> Damitha Kumarage >>>>> Technical Lead; WSO2 Inc. >>>>> "Oxygenating the Web Service Platform; " http://www.wso2.com/ >>>>> >>>>> blog: " http://damithakumarage.wordpress.com/ >>>>> __________________________________________________________________ >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org >>>>> >>>>> >>>>> For additional commands, e-mail: c-user-help@axis.apache.org >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> __________________________________________________________________ >>>> >>>> Damitha Kumarage >>>> Technical Lead; WSO2 Inc. >>>> "Oxygenating the Web Service Platform; " http://www.wso2.com/ >>>> >>>> blog: " http://damithakumarage.wordpress.com/ >>>> __________________________________________________________________ >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org >>>> For additional commands, e-mail: c-user-help@axis.apache.org >>>> >>>> >>> >> > --90e6ba6e846a35db4e0492a49428 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Nandika,

I am not sure i understand , can you please provide me = an example ?

Thanks!

On Fri, Oct 1= 5, 2010 at 3:24 AM, Nandika Jayawardana <jayawark@gmail.com> wrote:
The message recei= ver is specified for the operation. Hence it would need custom modification= s to have the message receiver to specified at service level.=A0

Regards
Nandika

On Thu, Oct 14, 2010 at 3:09 PM, Rico M <rickomuer@gmail.com> wrote:
Sorry to bump this topic again....

I understand there can be multipl= e operations at one endpoint. Is there a way to seperate the calls to a dif= ferent library

Services file from Calculator:

<service na= me=3D"Calculator">
=A0=A0=A0 <parameter name=3D"ServiceClass" locked=3D"xsd:= false">Calculator</parameter>

=A0=A0 <description&g= t;
=A0=A0=A0=A0=A0=A0=A0 This is a testing service, named 'Calculato= r' to test dynamic client

=A0=A0 </description>

=A0=A0=A0 <operation name=3D"add= ">
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <!--messageReceiver clas= s=3D"axis2_receivers" /-->
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 <parameter name=3D"wsamapping" >Calculator#add<= ;/parameter>

=A0=A0=A0 </operation>

=A0=A0=A0 <operation name=3D"su= b">
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <!--messageReceiver cla= ss=3D"axis2_receivers" /-->
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 <parameter name=3D"wsamapping" >Calculator#sub<= ;/parameter>
=A0=A0=A0 </operation>

</service>



Above e= xample separates out the calls at the invoke function based on an element. = Can the call be re-directed to a different library by the dispatchers thems= elves ? (i.e. prevent parsing message to find out which operation was reque= sted) PS : I am dealing with a Non WS* compliant entity.

What is the significance of messageReceiver ?

Thanks!
<= /div>



On Wed, Oct 6, 2010 at 5:0= 4 PM, Rico M <rickomuer@gmail.com> wrote:
Oh Boy! How did i= miss that :)

Thanks damitha :))


On Wed, Oct 6, 2010 at 1:59 PM, Damitha Kuma= rage <damitha@wso2.com> wrote:
Hi Rico,
If you look at the following two lines in the log you sent, you will get th= e answer.


[Wed Oct =A06 11:45:52 2010] [debug] soap_body_disp.c(115) Checking for ser= vice using SOAP message body's first child's namespace URI : http://ws.= apache.org/axis2/services/math
[Wed Oct =A06 11:45:52 2010] [debug] soap_body_disp.c(138) Service found us= ing SOAP messagebody's first child's namespace URI

Damitha

Rico M wrote:
<= div> Thanks damitha,
That does help me get an idea. I was changing the configuration to understa= nd how the invocation works. I am working with one of the examples packaged= with axis2 kit - Math.

I cannot understand the following. axis_install_dir/math/services.xml has t= he following entry :

<service name=3D"math">
=A0 =A0<parameter name=3D"ServiceClass" locked=3D"xsd:fa= lse">math</parameter>
=A0 <description>
=A0 =A0 =A0 =A0This is a testing service, named 'math' to test mul= tiple operations in the same service
=A0 </description>
=A0 =A0<operation name=3D"add">
=A0 =A0 =A0 =A0 =A0 =A0<!--messageReceiver class=3D"axis2_receiver= s" /-->
=A0 =A0</operation>
=A0 =A0<operation name=3D"sub">
=A0 =A0 =A0 =A0 =A0 =A0<!--messageReceiver class=3D"axis2_receiver= s" /-->
=A0 =A0</operation>
=A0 =A0<operation name=3D"mul">
=A0 =A0 =A0 =A0 =A0 =A0<!--messageReceiver class=3D"axis2_receiver= s" /-->
=A0 =A0</operation>
=A0 =A0<operation name=3D"div">
=A0 =A0 =A0 =A0 =A0 =A0<!--messageReceiver class=3D"axis2_receiver= s" /-->
=A0 =A0</operation>
</service>


I understand that the service is invoked with the following EPR : address = =3D "http://localhost:9090/axis2/services/math";

Now if i change the following to anything... in my client..... =A0 =A0math_= client.c

"http://localhost:9090/axis2/services/ccccccccHTNGmathia";

The invocation is still successful ! I am not sure about this , am i missin= g something ??

[Wed Oct =A06 11:45:52 2010] [debug] apache2_worker.c(241)
http:= //localhost:9090/axis2/services/ccccccccHTNGmathia
[Wed Oct =A06 11:45:52 2010] [debug] apache2_worker.c(299) Client HTTP vers= ion HTTP/1.1
[Wed Oct =A06 11:45:52 2010] [debug] soap_builder.c(894) identified soap ve= rsion is soap12
[Wed Oct =A06 11:45:52 2010] [debug] phase.c(202) Invoke the handler reques= t_uri_based_dispatcher within the phase Transport
[Wed Oct =A06 11:45:52 2010] [debug] req_uri_disp.c(97) Checking for servic= e using target endpoint address : http://localhost:9090/axis2/se= rvices/ccccccccHTNGmathia
[Wed Oct =A06 11:45:52 2010] [debug] phase.c(202) Invoke the handler addres= sing_based_dispatcher within the phase Transport
[Wed Oct =A06 11:45:52 2010] [debug] addr_disp.c(103) Checking for service = using WSA enpoint address : http://localhost:9090/axis2/services= /ccccccccHTNGmathia
[Wed Oct =A06 11:45:52 2010] [debug] phase.c(202) Invoke the handler rest_d= ispatcher within the phase Dispatch
[Wed Oct =A06 11:45:52 2010] [debug] phase.c(202) Invoke the handler soap_m= essage_body_based_dispatcher within the phase Dispatch
[Wed Oct =A06 11:45:52 2010] [debug] soap_body_disp.c(115) Checking for ser= vice using SOAP message body's first child's namespace URI : http://ws.= apache.org/axis2/services/math
[Wed Oct =A06 11:45:52 2010] [debug] soap_body_disp.c(138) Service found us= ing SOAP messagebody's first child's namespace URI
[Wed Oct =A06 11:45:52 2010] [debug] soap_body_disp.c(200) Checking for ope= ration using SOAP messagebody's first child's local name : add
[Wed Oct =A06 11:45:52 2010] [debug] soap_body_disp.c(207) Operation found = using SOAP message body's first child's local name
[Wed Oct =A06 11:45:52 2010] [debug] phase.c(202) Invoke the handler soap_a= ction_based_dispatcher within the phase Dispatch
[Wed Oct =A06 11:45:52 2010] [debug] phase.c(202) Invoke the handler dispat= ch_post_conditions_evaluator within the phase PostDispatch
[Wed Oct =A06 11:45:52 2010] [debug] phase.c(202) Invoke the handler contex= t_handler within the phase PostDispatch
[Wed Oct =A06 11:45:52 2010] [warning] msg_ctx.c(1384) session-table not se= t in message context

Thanks & Regards!


On Wed, Sep 29, 2010 at 2:03 AM, Damitha Kumarage <damitha@wso2.com <mailto:damitha@wso2.com>> wr= ote:

=A0 =A0Does this answer [1] and [2] your question?
=A0 =A0Thanks,
=A0 =A0Damitha

=A0 =A0[1] http:= //wso2.org/library/176
=A0 =A0[2]
=A0 =A0http://damithakumarage.wordpr= ess.com/2008/02/12/soap-action-and-addressing-action/

=A0 =A0Rico M wrote:

=A0 =A0 =A0 =A0Hi,

=A0 =A0 =A0 =A0I wanted to understand how endpoints & soap action are = used to
=A0 =A0 =A0 =A0call a
=A0 =A0 =A0 =A0web service in axis2c. For ex: =A0I am reaching an endpoint= :
=A0 =A0 =A0 =A0http://abc.org= and calling the soapAction :
=A0 =A0 =A0 =A0http:= //mno.org/ServiceA.
=A0 =A0 =A0 =A0How can the following be configured in my webserver ? All c= urrent
=A0 =A0 =A0 =A0calls I am making are via a endpoint url which doubles for<= br> =A0 =A0 =A0 =A0both action
=A0 =A0 =A0 =A0& =A0endpoint URL : http://localhost:90/services/hello.

=A0 =A0 =A0 =A0<service name=3D"hello">
=A0 =A0 =A0 =A0 <parameter name=3D"ServiceClass"
=A0 =A0 =A0 =A0locked=3D"xsd:false">hello</parameter> =A0 =A0 =A0 =A0 <description>
=A0 =A0 =A0 =A0 =A0Quick start guide hello service sample.
=A0 =A0 =A0 =A0 =A0 </description>
=A0 =A0 =A0 =A0 =A0 =A0<operation name=3D"greet"/>
=A0 =A0 =A0 =A0 </service>


=A0 =A0 =A0 =A0Cheers!

=A0 =A0 =A0 =A0-----------------------------------------------------------= ----------
=A0 =A0 =A0 =A0To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org=
=A0 =A0 =A0 =A0<mailto:c-user-unsubscribe@axis.apache.org>

=A0 =A0 =A0 =A0For additional commands, e-mail: c-user-help@axis.apache.org
<= /div> =A0 =A0 =A0 =A0<mailto:c-user-help@axis.apache.org>



=A0 =A0 =A0 =A0


=A0 =A0-- =A0 =A0 ________________________________________________________= __________

=A0 =A0Damitha Kumarage
=A0 =A0Technical Lead; WSO2 Inc.
=A0 =A0"Oxygenating the Web Service Platform; " http://www.wso2.com/

=A0 =A0blog: " http://damithakumarage.wordpress.com/
=A0 =A0__________________________________________________________________<= br>
=A0 =A0-------------------------------------------------------------------= --
=A0 =A0To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
=A0 =A0<mailto:c-user-unsubscribe@axis.apache.org>

=A0 =A0For additional commands, e-mail: c-user-help@axis.apache.org
=A0 =A0<mailto:c-user-help@axis.apache.org>




--
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org





--90e6ba6e846a35db4e0492a49428--