You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by pierre betz <pi...@gmail.com> on 2008/08/26 06:05:31 UTC

changing the Http request URI

Hi everybody, I've found a good tutorial on how to change and customize the
endpoint address format of hosted services via Axis2/C

you can see it here :
http://wso2.org/library/2663


But, as I work with axis2/java, it can't run of course.
I did not found anything like this tutorial on the network, so maybe you
could give me a good url, or just some clues ?


My operations are hosted in axis like :

http://personnalURL.com:18080/axis2/services/Service1/Operation1

and I would like to change it by something like :

http://personnalURL.com:18080/OtherServiceName/OtherOperation

is that possible ? to change the uri that if I retrieve a
http://personnalURL.com:18080/OtherServiceName/OtherOperation
in axis2, it will understand that the OhterServiceName is Service1 and
OtherOperation is Operation 1 ? if I configure everything ?


if someone have an idea .. ?

Re: changing the Http request URI

Posted by pierre betz <pi...@gmail.com>.
hi, so how can I do that ? :)

Re: changing the Http request URI

Posted by keith chapman <ke...@gmail.com>.
Hi,

You could have something like the following easily though (with one instance
of Axis2 running),

 http://url:prot/somePrefix/Project1/services/ServicesNames
http://url:prot/somePrefix/Project2/services/ServicesNames

Thanks,
Keith.

On Wed, Aug 27, 2008 at 12:41 PM, pierre betz <pi...@gmail.com> wrote:

> The NameOfTheProject have to be changed too..
> so, if I rename axis2 folder, it will just work for 1 project, and not the
> others.
>
> I need something like :
>  http://url:prot/Project1/services/ServicesNames
>  http://url:prot/Project2/services/ServicesNames
> ...
>
>
>
>
> 2008/8/27 Shehan Simen <ss...@itree.com.au>
>
>  You can put many aar files in to the WEB-INF\services folder. I am doing
>> this at the moment.
>>
>> So you can have something like this:
>>
>> *http://url:18080/NameOfTheProject/services/ServiceName1*
>>
>> *http://url:18080/NameOfTheProject/services/ServiceName2*
>>
>> *http://url:18080/NameOfTheProject/services/ServiceName3*
>>
>> * *
>>
>> I don't understand the problem you have.
>>
>>
>>
>>
>>
>> *From:* pierre betz [mailto:piebetz@gmail.com]
>> *Sent:* Wednesday, 27 August 2008 1:05 PM
>> *To:* axis-user@ws.apache.org
>> *Subject:* Re: changing the Http request URI
>>
>>
>>
>> Hi,
>> htank you for the answers.
>>
>> In fact, I have 3 projects, so 3 aar files, which need to be deployed in
>> some folders like :
>> http://url:18080/NameOfTheProject/services/ServiceName
>>
>> I think there is no possibility to do something in this case. Ok, I can
>> rename the axis2 directory, and use some parameters in the axis2
>> configuration to change the axis2 root folder name and the services name,
>> but it will do that for every aar file deployed.
>>
>> Anyway, thanks maybe it will help someone else :)
>>
>>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: changing the Http request URI

Posted by pierre betz <pi...@gmail.com>.
yep I agree.. but I will have 3 axis plugins running... no ?

RE: changing the Http request URI

Posted by Shehan Simen <ss...@itree.com.au>.
You can just rename the axis2.war file to project1.war, project2.war, ...... and then just deploy. No need to change any xml config files. Then you can copy the .aar files in to the extracted project1, project2, ...folders. I think it is very easy and won't take much time.

From: pierre betz [mailto:piebetz@gmail.com]
Sent: Wednesday, 27 August 2008 5:11 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI

The NameOfTheProject have to be changed too..
so, if I rename axis2 folder, it will just work for 1 project, and not the others.

I need something like :
 http://url:prot/Project1/services/ServicesNames
 http://url:prot/Project2/services/ServicesNames
...



2008/8/27 Shehan Simen <ss...@itree.com.au>>

You can put many aar files in to the WEB-INF\services folder. I am doing this at the moment.

So you can have something like this:

http://url:18080/NameOfTheProject/services/ServiceName1

http://url:18080/NameOfTheProject/services/ServiceName2

http://url:18080/NameOfTheProject/services/ServiceName3



I don't understand the problem you have.





From: pierre betz [mailto:piebetz@gmail.com<ma...@gmail.com>]
Sent: Wednesday, 27 August 2008 1:05 PM

To: axis-user@ws.apache.org<ma...@ws.apache.org>
Subject: Re: changing the Http request URI



Hi,
htank you for the answers.

In fact, I have 3 projects, so 3 aar files, which need to be deployed in some folders like : http://url:18080/NameOfTheProject/services/ServiceName

I think there is no possibility to do something in this case. Ok, I can rename the axis2 directory, and use some parameters in the axis2 configuration to change the axis2 root folder name and the services name, but it will do that for every aar file deployed.

Anyway, thanks maybe it will help someone else :)


Re: changing the Http request URI

Posted by pierre betz <pi...@gmail.com>.
The NameOfTheProject have to be changed too..
so, if I rename axis2 folder, it will just work for 1 project, and not the
others.

I need something like :
 http://url:prot/Project1/services/ServicesNames
 http://url:prot/Project2/services/ServicesNames
...




2008/8/27 Shehan Simen <ss...@itree.com.au>

>  You can put many aar files in to the WEB-INF\services folder. I am doing
> this at the moment.
>
> So you can have something like this:
>
> *http://url:18080/NameOfTheProject/services/ServiceName1*
>
> *http://url:18080/NameOfTheProject/services/ServiceName2*
>
> *http://url:18080/NameOfTheProject/services/ServiceName3*
>
> * *
>
> I don't understand the problem you have.
>
>
>
>
>
> *From:* pierre betz [mailto:piebetz@gmail.com]
> *Sent:* Wednesday, 27 August 2008 1:05 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: changing the Http request URI
>
>
>
> Hi,
> htank you for the answers.
>
> In fact, I have 3 projects, so 3 aar files, which need to be deployed in
> some folders like : http://url:18080/NameOfTheProject/services/ServiceName
>
> I think there is no possibility to do something in this case. Ok, I can
> rename the axis2 directory, and use some parameters in the axis2
> configuration to change the axis2 root folder name and the services name,
> but it will do that for every aar file deployed.
>
> Anyway, thanks maybe it will help someone else :)
>
>

RE: changing the Http request URI

Posted by Shehan Simen <ss...@itree.com.au>.
You can put many aar files in to the WEB-INF\services folder. I am doing this at the moment.
So you can have something like this:
http://url:18080/NameOfTheProject/services/ServiceName1
http://url:18080/NameOfTheProject/services/ServiceName2
http://url:18080/NameOfTheProject/services/ServiceName3

I don't understand the problem you have.


From: pierre betz [mailto:piebetz@gmail.com]
Sent: Wednesday, 27 August 2008 1:05 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI

Hi,
htank you for the answers.

In fact, I have 3 projects, so 3 aar files, which need to be deployed in some folders like : http://url:18080/NameOfTheProject/services/ServiceName

I think there is no possibility to do something in this case. Ok, I can rename the axis2 directory, and use some parameters in the axis2 configuration to change the axis2 root folder name and the services name, but it will do that for every aar file deployed.

Anyway, thanks maybe it will help someone else :)


Re: changing the Http request URI

Posted by pierre betz <pi...@gmail.com>.
Hi,
htank you for the answers.

In fact, I have 3 projects, so 3 aar files, which need to be deployed in
some folders like : http://url:18080/NameOfTheProject/services/ServiceName

I think there is no possibility to do something in this case. Ok, I can
rename the axis2 directory, and use some parameters in the axis2
configuration to change the axis2 root folder name and the services name,
but it will do that for every aar file deployed.

Anyway, thanks maybe it will help someone else :)

RE: changing the Http request URI

Posted by Shehan Simen <ss...@itree.com.au>.
Hi Martin,
Can we get rid of the word "axis2" from the url by doing as you said?

Regards

From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: Wednesday, 27 August 2008 9:29 AM
To: axis-user@ws.apache.org
Subject: RE: changing the Http request URI

copy *.aar to
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services

and update
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services/services.list

Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.

________________________________
From: ssimen@itree.com.au
To: axis-user@ws.apache.org
Date: Wed, 27 Aug 2008 09:15:48 +1000
Subject: RE: changing the Http request URI
Hi,
Just rename the axis.war file to NameOftheWar.war and deploy it in the tomcat. Then put ur .aar file inside the proper place same as in axis2. It just work. Let me know how it goes.

Regards,
Shehan

From: pierre betz [mailto:piebetz@gmail.com]
Sent: Tuesday, 26 August 2008 6:57 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI


the previous web service was deployed in tomcat and generated with axis1.

to access to a service and call an operation, we did :

http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation

but, as now I use axis2 as a plugin in tomcat, I really can't find a way to call the new WebService with the same url. I assume it's not possible ?
because all the axis2 services will be in the http://url.com:18080/axis2/whatever/

.. si .. still no ideas on how to change the way axis2 listen..

________________________________
Get thousands of games on your PC, your mobile phone, and the web with Windows(r). Game with Windows<http://clk.atdmt.com/MRT/go/108588800/direct/01/>

RE: changing the Http request URI

Posted by Martin Gainty <mg...@hotmail.com>.
copy *.aar to
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services

and update
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services/services.list

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


From: ssimen@itree.com.au
To: axis-user@ws.apache.org
Date: Wed, 27 Aug 2008 09:15:48 +1000
Subject: RE: changing the Http request URI
















Hi,

Just rename the axis.war file to NameOftheWar.war and deploy it
in the tomcat. Then put ur .aar file inside the proper place same as in axis2.
It just work. Let me know how it goes.

 

Regards,

Shehan

 



From: pierre betz
[mailto:piebetz@gmail.com] 

Sent: Tuesday, 26 August 2008 6:57 PM

To: axis-user@ws.apache.org

Subject: Re: changing the Http request URI



 





the previous web service was deployed in tomcat and generated with axis1.



to access to a service and call an operation, we did :



http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation



but, as now I use axis2 as a plugin in tomcat, I really can't find a way to
call the new WebService with the same url. I assume it's not possible ?

because all the axis2 services will be in the http://url.com:18080/axis2/whatever/



.. si .. still no ideas on how to change the way axis2 listen..









_________________________________________________________________
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/

RE: changing the Http request URI

Posted by Shehan Simen <ss...@itree.com.au>.
Hi,
Just rename the axis.war file to NameOftheWar.war and deploy it in the tomcat. Then put ur .aar file inside the proper place same as in axis2. It just work. Let me know how it goes.

Regards,
Shehan

From: pierre betz [mailto:piebetz@gmail.com]
Sent: Tuesday, 26 August 2008 6:57 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI


the previous web service was deployed in tomcat and generated with axis1.

to access to a service and call an operation, we did :

http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation

but, as now I use axis2 as a plugin in tomcat, I really can't find a way to call the new WebService with the same url. I assume it's not possible ?
because all the axis2 services will be in the http://url.com:18080/axis2/whatever/

.. si .. still no ideas on how to change the way axis2 listen..

Re: changing the Http request URI

Posted by pierre betz <pi...@gmail.com>.
the previous web service was deployed in tomcat and generated with axis1.

to access to a service and call an operation, we did :

http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation

but, as now I use axis2 as a plugin in tomcat, I really can't find a way to
call the new WebService with the same url. I assume it's not possible ?
because all the axis2 services will be in the
http://url.com:18080/axis2/whatever/

.. si .. still no ideas on how to change the way axis2 listen..