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 Wishing Carebear <wi...@gmail.com> on 2009/01/09 17:28:12 UTC
Packaging axis2 with a web application
Hello:I have a war created for my enterprise application. Need to embed
axis2 with that.
Could someone point me to the instructions need to be followed to achieve
this if possible.
Thanks for your time and help,
Regards,
Ravi
Re: Packaging axis2 with a web application
Posted by Wishing Carebear <wi...@gmail.com>.
Thanks Keith.
On Fri, Jan 9, 2009 at 10:42 PM, keith chapman <ke...@gmail.com>wrote:
> Hi,
>
> This
> http://www.keith-chapman.org/2008/10/how-to-embed-axis2-into-existing-web.htmlshould help you.
>
> Thanks,
> Keith.
>
>
> On Fri, Jan 9, 2009 at 10:46 PM, Wishing Carebear <
> wishing.carebear@gmail.com> wrote:
>
>> Thanks Sagara. I will try it out. Regards,
>> Ravi
>>
>>
>> On Fri, Jan 9, 2009 at 9:10 AM, Sagara Gunathunga <
>> sagara.gunathunga@gmail.com> wrote:
>>
>>> If you want to integrate Axis2 web service as a part of your web
>>> application you can follow these steps.
>>>
>>> 1.) Within the WEB-INF directory create directory called "services" , you
>>> can place web service's meta information files there (services.xml) . as a
>>> example for "MyService" web serivce can have following directory structure
>>> WEB-INF/services/MyService/META-INF/services.xml
>>>
>>> 2.) Add requred Axis 2 jar files to lib directory of your web
>>> application.
>>>
>>> 3.) Define the servlet mapping for AxisServlet in web .xml file as
>>> follows .
>>>
>>> <servlet>
>>> <servlet-name>AxisServlet</servlet-name>
>>>
>>> <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
>>> <load-on-startup>1</load-on-startup>
>>> </servlet>
>>> <servlet-mapping>
>>> <servlet-name>AxisServlet</servlet-name>
>>> <url-pattern>/services/*</url-pattern>
>>> </servlet-mapping>
>>>
>>>
>>> Also you can use Maven to package and testing (together with Jetty
>>> plug-in) . Hope this will help you.
>>>
>>>
>>>
>>> On Fri, Jan 9, 2009 at 9:58 PM, Wishing Carebear <
>>> wishing.carebear@gmail.com> wrote:
>>>
>>>> Hello: I have a war created for my enterprise application. Need to
>>>> embed axis2 with that.
>>>>
>>>> Could someone point me to the instructions need to be followed to
>>>> achieve this if possible.
>>>>
>>>> Thanks for your time and help,
>>>> Regards,
>>>> Ravi
>>>>
>>>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Blog - ssagara.blogspot.com
>>> Web - http://sagaras.awardspace.com/
>>>
>>
>>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
Re: Packaging axis2 with a web application
Posted by keith chapman <ke...@gmail.com>.
Hi,
This
http://www.keith-chapman.org/2008/10/how-to-embed-axis2-into-existing-web.htmlshould
help you.
Thanks,
Keith.
On Fri, Jan 9, 2009 at 10:46 PM, Wishing Carebear <
wishing.carebear@gmail.com> wrote:
> Thanks Sagara. I will try it out.Regards,
> Ravi
>
>
> On Fri, Jan 9, 2009 at 9:10 AM, Sagara Gunathunga <
> sagara.gunathunga@gmail.com> wrote:
>
>> If you want to integrate Axis2 web service as a part of your web
>> application you can follow these steps.
>>
>> 1.) Within the WEB-INF directory create directory called "services" , you
>> can place web service's meta information files there (services.xml) . as a
>> example for "MyService" web serivce can have following directory structure
>> WEB-INF/services/MyService/META-INF/services.xml
>>
>> 2.) Add requred Axis 2 jar files to lib directory of your web application.
>>
>> 3.) Define the servlet mapping for AxisServlet in web .xml file as
>> follows .
>>
>> <servlet>
>> <servlet-name>AxisServlet</servlet-name>
>>
>> <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>> <servlet-mapping>
>> <servlet-name>AxisServlet</servlet-name>
>> <url-pattern>/services/*</url-pattern>
>> </servlet-mapping>
>>
>>
>> Also you can use Maven to package and testing (together with Jetty
>> plug-in) . Hope this will help you.
>>
>>
>>
>> On Fri, Jan 9, 2009 at 9:58 PM, Wishing Carebear <
>> wishing.carebear@gmail.com> wrote:
>>
>>> Hello:I have a war created for my enterprise application. Need to embed
>>> axis2 with that.
>>>
>>> Could someone point me to the instructions need to be followed to achieve
>>> this if possible.
>>>
>>> Thanks for your time and help,
>>> Regards,
>>> Ravi
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - ssagara.blogspot.com
>> Web - http://sagaras.awardspace.com/
>>
>
>
--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/
blog: http://www.keith-chapman.org
Re: Packaging axis2 with a web application
Posted by Wishing Carebear <wi...@gmail.com>.
Thanks Sagara. I will try it out.Regards,
Ravi
On Fri, Jan 9, 2009 at 9:10 AM, Sagara Gunathunga <
sagara.gunathunga@gmail.com> wrote:
> If you want to integrate Axis2 web service as a part of your web
> application you can follow these steps.
>
> 1.) Within the WEB-INF directory create directory called "services" , you
> can place web service's meta information files there (services.xml) . as a
> example for "MyService" web serivce can have following directory structure
> WEB-INF/services/MyService/META-INF/services.xml
>
> 2.) Add requred Axis 2 jar files to lib directory of your web application.
>
> 3.) Define the servlet mapping for AxisServlet in web .xml file as follows
> .
>
> <servlet>
> <servlet-name>AxisServlet</servlet-name>
>
> <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>AxisServlet</servlet-name>
> <url-pattern>/services/*</url-pattern>
> </servlet-mapping>
>
>
> Also you can use Maven to package and testing (together with Jetty plug-in)
> . Hope this will help you.
>
>
>
> On Fri, Jan 9, 2009 at 9:58 PM, Wishing Carebear <
> wishing.carebear@gmail.com> wrote:
>
>> Hello:I have a war created for my enterprise application. Need to embed
>> axis2 with that.
>>
>> Could someone point me to the instructions need to be followed to achieve
>> this if possible.
>>
>> Thanks for your time and help,
>> Regards,
>> Ravi
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog - ssagara.blogspot.com
> Web - http://sagaras.awardspace.com/
>
Re: Packaging axis2 with a web application
Posted by Sagara Gunathunga <sa...@gmail.com>.
If you want to integrate Axis2 web service as a part of your web
application you can follow these steps.
1.) Within the WEB-INF directory create directory called "services" , you
can place web service's meta information files there (services.xml) . as a
example for "MyService" web serivce can have following directory structure
WEB-INF/services/MyService/META-INF/services.xml
2.) Add requred Axis 2 jar files to lib directory of your web application.
3.) Define the servlet mapping for AxisServlet in web .xml file as follows
.
<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
Also you can use Maven to package and testing (together with Jetty plug-in)
. Hope this will help you.
On Fri, Jan 9, 2009 at 9:58 PM, Wishing Carebear <wishing.carebear@gmail.com
> wrote:
> Hello:I have a war created for my enterprise application. Need to embed
> axis2 with that.
>
> Could someone point me to the instructions need to be followed to achieve
> this if possible.
>
> Thanks for your time and help,
> Regards,
> Ravi
>
--
Sagara Gunathunga
Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/