[ http://issues.apache.org/jira/browse/AXIS2-732?page=all ]

Rajith Attapattu updated AXIS2-732:
-----------------------------------

    Attachment: samples_integration.patch

Hi,

Appologiese for the delay, but here are the samples patch as promised.

There are 2 examples under the samples/integration folder under the source tree.

EmbededAxis2Engine.java is a simple example of how to embed axis2 in any java 
application
(it's a clone of what Dims did in the wso2.net article)

axsi2-integration.war is an example of how Axis2 can be integrated with an 
existing web application. This is a quick way to expose your existing POJO's as 
Web Services in an existing web application. Also I have shown how u can still 
make use of the Axis2 web console. All you need is a simple maven or ant script 
to package the war file properly as illustrated in the example.

The user specifically wanted to know the following questions

>Do i need to specify "org.apache.axis2.transport.http.AxisServlet" in my 
>"web.xml" as a servlet?
The web.xml should include the AxisServlet

>- Is a Axis2.xml file needed?
Yes it should be placed under the WEB-INF/conf
I assume if it's not there it will use the default packaged with the axis2.jar 
file (pls correct me if I am wrong)

>- Is the only way to deploy my web service a AAR file which includes my
>service.xml?  Or can i simply put my service.xml in my WEB-INF directory?
No you can just put the services.xml under WEB-INF/your_service_name/META-INF 
directory.
The class files can be jar-ed and stored under the lib directory.

Hope this helps.

Rajith


> Need a simple example for Integrating Axis 2 in an application
> --------------------------------------------------------------
>
>          Key: AXIS2-732
>          URL: http://issues.apache.org/jira/browse/AXIS2-732
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Reporter: Davanum Srinivas
>     Assignee: Deepal Jayasinghe
>  Attachments: samples_integration.patch
>
> Copied from email on user list:
> ------------------------------------------
> Hi all,
> i want to create an which includes Axis 2 for my web services. That
> means, my WAR file includes my application + axis 2 libraries.
> Ok, now some questions:
> - Do i need to specify "org.apache.axis2.transport.http.AxisServlet" in
> my "web.xml" as a servlet?
> - Is a Axis2.xml file needed?
> - Is the only way to deploy my web service a AAR file which includes my
> service.xml?
>   Or can i simply put my service.xml in my WEB-INF directory?
> - I'm looking for an axis2 code sample of a project which serialize and
> deserialize beans(doc literal wrapped)?
> - Why does the code generation tool creates 700 lines of code for the
> client stub of a very simple web service? A few more comments would be
> very useful in the generated code.
> Cheers,
> Ingo Siebert
> --
> CRM Products Development - New Technologies
> CAS Software AG
> Well informed. Always and everywhere.
> www.cas.de

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to