You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/05/15 16:53:10 UTC

[jira] Created: (AXIS2-732) Need a simple example for Integrating Axis 2 in an application

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


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


[jira] Updated: (AXIS2-732) Need a simple example for Integrating Axis 2 in an application

Posted by "Rajith Attapattu (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-732) Need a simple example for Integrating Axis 2 in an application

Posted by "Rajith Attapattu (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-732?page=comments#action_12412247 ] 

Rajith Attapattu commented on AXIS2-732:
----------------------------------------

I have created two examples that illustrate the above requirment.

One is to create a war file for your application with axis2 libraries and specifying org.apache.axis2.transport.http.AxisServlet in the web.xml

The other approach is to embedded axsi2 in your application (more or less the same as what dims describes in his article in wso2.net)

I have done these outside of the axis2 build system with my own maven build. Tomorrow I will arrange them under the sample directory in the axis2 source and submit a patch.

Later in the day I will track the user email on the list and reply to his querries

Regards,

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

>
> 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


[jira] Resolved: (AXIS2-732) Need a simple example for Integrating Axis 2 in an application

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-732?page=all ]
     
Davanum Srinivas resolved AXIS2-732:
------------------------------------

    Resolution: Fixed

http://www.wso2.net/2006/05/embedding_an_axis2_based_web_service_in_your_webapp

Marking as resolved.

thanks,
dims

> 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

>
> 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


[jira] Assigned: (AXIS2-732) Need a simple example for Integrating Axis 2 in an application

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-732?page=all ]

Deepal Jayasinghe reassigned AXIS2-732:
---------------------------------------

    Assign To: Deepal Jayasinghe

> 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

>
> 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