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 Trasca Virgil <vi...@yahoo.com> on 2007/12/07 12:56:17 UTC

Axis2 and java5 annotations

Hi,
 
    Using Axis is possible to expose methods as web-services in an Java5 annots fashion?
Axis has features similar with what jax-ws2?
 
Thank you,
Virgil

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


Re: Axis2 and java5 annotations

Posted by Charitha Kankanamge <ch...@wso2.com>.
This will be included  in Axis2-1.4 release, though I'm not certain 
about the release date. :(

regards
Charitha

Ove Gram Nipen wrote:

>Charitha Kankanamge [mailto:charitha@wso2.com] wrote:
>  
>
>>Ove Gram Nipen wrote:
>>    
>>
>>>Thanks for the instructions :) This looks very promising. Is there a
>>>      
>>>
>
>  
>
>>>target release for this functionality?
>>>      
>>>
>>This is available in nightly builds. please download a build 
>>from http://people.apache.org/dist/axis2/nightly/ and check.
>>    
>>
>
>Yes, I got that :) Perhaps I wasn't being too precise. Which version of
>Axis will be the first to include this (other than the nightlies)? Is
>there a target date for this release? I can start playing with this now
>to get a feel for how it will be to use annotation-driven services, but
>I can't use it in production code until it is released in a stable
>version of Axis2. 
>
>  
>


-- 
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070

A bug in the hand is better than one as yet undetected



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


RE: Axis2 and java5 annotations

Posted by Ove Gram Nipen <ov...@delfidata.no>.
Charitha Kankanamge [mailto:charitha@wso2.com] wrote:
>
> Ove Gram Nipen wrote:
> >
> > Thanks for the instructions :) This looks very promising. Is there a

> > target release for this functionality?
>
> This is available in nightly builds. please download a build 
> from http://people.apache.org/dist/axis2/nightly/ and check.

Yes, I got that :) Perhaps I wasn't being too precise. Which version of
Axis will be the first to include this (other than the nightlies)? Is
there a target date for this release? I can start playing with this now
to get a feel for how it will be to use annotation-driven services, but
I can't use it in production code until it is released in a stable
version of Axis2. 

-- 
Regards, 
Ove Gram Nipen
Delfi Data

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


Re: Axis2 and java5 annotations

Posted by Charitha Kankanamge <ch...@wso2.com>.
This is available in nightly builds. please download a build from 
http://people.apache.org/dist/axis2/nightly/ and check.

Ove Gram Nipen wrote:

>Charitha Kankanamge [mailto:charitha@wso2.com] wrote:
>
><snip recipe>
>
>  
>
>>8. Access http://localhost:8080 and verify the service is 
>>deployed properly.
>>    
>>
>
>Thanks for the instructions :) This looks very promising. Is there a
>target release for this functionality?
>
>  
>


-- 
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070

A bug in the hand is better than one as yet undetected



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


RE: Axis2 and java5 annotations

Posted by Ove Gram Nipen <ov...@delfidata.no>.
Charitha Kankanamge [mailto:charitha@wso2.com] wrote:

<snip recipe>

> 8. Access http://localhost:8080 and verify the service is 
> deployed properly.

Thanks for the instructions :) This looks very promising. Is there a
target release for this functionality?

-- 
Regards, 
Ove Gram Nipen
Delfi Data

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


Re: Axis2 and java5 annotations

Posted by Charitha Kankanamge <ch...@wso2.com>.
AFAIK there is no documentation availble on JAX-ws support in existing 
axis2 releases. In order to try out a simple use case, please do the 
following.

1. Download an Axis2-Snapshot from 
http://people.apache.org/dist/axis2/nightly/

2. Create a directory, pojo at AXIS2_HOME/repository/

3. Update the following entry in axis2.xml
<deployer extension=".jar" directory="pojo" 
class="org.apache.axis2.deployment.POJODeployer"/>

4. Restart axis2server

5. Write a simple annotated pojo as below

package org.myservice.test;

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService(name= "AXIS2JAXWS_WS_TEST_Service", targetNamespace = 
"http://www.test.org/jaxws")
public class axis2jaxwsservice {
   
    @WebMethod (operationName = "echojaxwsString", action="urn:echoaction")
    public String echo(String s){
        return s;
    }
   

}

6. Compile the above class with jdk15 and include it in a jar. Assume it 
is jaxwstest.jar

7. copy jaxwstest.jar in to AXIS2_HOME/repository/pojo directory

8. Access http://localhost:8080 and verify the service is deployed 
properly.

If the deployment is successful, write a client and invoke the service.


There is a sample jax-ws calculator included in AXis2_home/samples 
directory. That will also help you.

regards
Charitha

Ove Gram Nipen wrote:

>Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] wrote:
>  
>
>>On 7 Dec 2007, at 11:56, Trasca Virgil wrote:
>>    
>>
>>>Using Axis is possible to expose methods as web-services in an
>>>Java5 annots fashion?
>>>Axis has features similar with what jax-ws2?
>>>      
>>>
>>yes.
>>    
>>
>
>This sounds interesting. Do you have any pointers to documentation?
>
>  
>


-- 
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070

A bug in the hand is better than one as yet undetected



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


Re: Axis2 and java5 annotations

Posted by Rick Isaacs <re...@gmail.com>.
Hi Martin,

Thank you for update.

You probably have seen that I have the calculator sample working using the
fix for the plugin,
a nightly build, and a lot of good advice.

The use of jira is something new for me.

When I have a problem, I have googled, then looked at the axis-users mailing
list.

Should I also look at the debug list and axis-developer mailing list in the
future?

Rick


On Dec 7, 2007 4:03 PM, Martin Gainty <mg...@hotmail.com> wrote:

>  Hi Rick-
>
> did'nt see the readme on 2.1.3 (all the other samples have readme)
>
> BTW: maven has a jira on the non-existent 'maven-clean-plugin'
>
> in any event please let me know when that works for you
> Thanks/
> M-
>
> ----- Original Message -----
> *From:* Rick Isaacs <re...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Friday, December 07, 2007 7:38 AM
> *Subject:* Re: Axis2 and java5 annotations
>
>
> Hi,
>
> I just got the Axis2 1.3 sample \axis2\WEB-INF\samples\jaxws-calculator
> to work that demonstrates an web service using annotations.
>
> If you plan to run it, you will need a nightly build and maven 2.0.8 .
>
> I also reported a problem with this sample that was solved today.
>
> Search for the subject jaws-calculator
>
> There is only a README for the sample.
>
> Rick
>
>
> On Dec 7, 2007 1:20 PM, Ove Gram Nipen < ove.nipen@delfidata.no> wrote:
>
> > Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] wrote:
> > >
> > > On 7 Dec 2007, at 11:56, Trasca Virgil wrote:
> > > >
> > > > Using Axis is possible to expose methods as web-services in an
> > > > Java5 annots fashion?
> > > > Axis has features similar with what jax-ws2?
> > >
> > > yes.
> >
> > This sounds interesting. Do you have any pointers to documentation?
> >
> > --
> > Regards,
> > Ove Gram Nipen
> > Delfi Data
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>

Re: Axis2 and java5 annotations

Posted by Martin Gainty <mg...@hotmail.com>.
Hi Rick-

did'nt see the readme on 2.1.3 (all the other samples have readme)

BTW: maven has a jira on the non-existent 'maven-clean-plugin'

in any event please let me know when that works for you

Thanks/
M-
  ----- Original Message ----- 
  From: Rick Isaacs 
  To: axis-user@ws.apache.org 
  Sent: Friday, December 07, 2007 7:38 AM
  Subject: Re: Axis2 and java5 annotations



  Hi,

  I just got the Axis2 1.3 sample \axis2\WEB-INF\samples\jaxws-calculator
  to work that demonstrates an web service using annotations.

  If you plan to run it, you will need a nightly build and maven 2.0.8 .

  I also reported a problem with this sample that was solved today.

  Search for the subject jaws-calculator

  There is only a README for the sample.

  Rick



  On Dec 7, 2007 1:20 PM, Ove Gram Nipen < ove.nipen@delfidata.no> wrote:

    Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] wrote:
    >
    > On 7 Dec 2007, at 11:56, Trasca Virgil wrote:
    > >

    > > Using Axis is possible to expose methods as web-services in an 
    > > Java5 annots fashion?
    > > Axis has features similar with what jax-ws2?
    >
    > yes.


    This sounds interesting. Do you have any pointers to documentation?

    --
    Regards,
    Ove Gram Nipen
    Delfi Data


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




Re: Axis2 and java5 annotations

Posted by Rick Isaacs <re...@gmail.com>.
Hi,

I just got the Axis2 1.3 sample \axis2\WEB-INF\samples\jaxws-calculator
to work that demonstrates an web service using annotations.

If you plan to run it, you will need a nightly build and maven 2.0.8.

I also reported a problem with this sample that was solved today.

Search for the subject jaws-calculator

There is only a README for the sample.

Rick


On Dec 7, 2007 1:20 PM, Ove Gram Nipen <ov...@delfidata.no> wrote:

> Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] wrote:
> >
> > On 7 Dec 2007, at 11:56, Trasca Virgil wrote:
> > >
> > > Using Axis is possible to expose methods as web-services in an
> > > Java5 annots fashion?
> > > Axis has features similar with what jax-ws2?
> >
> > yes.
>
> This sounds interesting. Do you have any pointers to documentation?
>
> --
> Regards,
> Ove Gram Nipen
> Delfi Data
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

RE: Axis2 and java5 annotations

Posted by Ove Gram Nipen <ov...@delfidata.no>.
Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] wrote:
>
> On 7 Dec 2007, at 11:56, Trasca Virgil wrote:
> >
> > Using Axis is possible to expose methods as web-services in an
> > Java5 annots fashion?
> > Axis has features similar with what jax-ws2?
> 
> yes.

This sounds interesting. Do you have any pointers to documentation?

-- 
Regards, 
Ove Gram Nipen
Delfi Data

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


Re: Axis2 and java5 annotations

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
On 7 Dec 2007, at 11:56, Trasca Virgil wrote:

> Hi,
>
>     Using Axis is possible to expose methods as web-services in an  
> Java5 annots fashion?
> Axis has features similar with what jax-ws2?


yes.
>
> Thank you,
> Virgil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>


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