-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All the JAXWS and JSR 181 annotations are supported when you deploy a JAXWS 
service in servicejars directory.

Glen Verran wrote:
| Is there any documentation where all these annotations are documented?
| Looking at samples just isn't good enough.  Need explanation on the
| differet onces available and how they are supposed to be used.
|
|
| -----Original Message-----
| From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
| Sent: 15 April 2008 12:34
| To: [email protected]
| Subject: Re: Which Annotations work in Axis 2.1.3?
|
| Get latest nightly or the latest release candidate and look at the
| several jaxws samples in the samples directory.
|
| -- dims
|
| silver17 wrote:
| | Hi guys,
| |
| | I've been experimenting with annotations and axis2 web services, and
| | have some degree of success, but would like some help.  Some things
| i've noticed:
| |
| | 1.  @WebResult has seems to have no affect when you load the services
| | auto-generated ?WSDL 2.  the targetNamespace functionality in both the
|
| | @WebResult and @WebParam don't seem to work when trying to access the
| | services wsdl via ?WSDL.
| |
| | Is there something i'm missing?
| |
| | My development setting is Eclipse Europa with the Axis2-1.3 service
| | archiver and code-gen plugins.  I build a java project and develop a
| | service like
| | this:
| |
| | import javax.jws.WebService;
| | import javax.jws.WebMethod;
| | import javax.jws.WebParam;
| | import javax.jws.WebResult;
| | import javax.jws.soap.SOAPBinding;
| |
| | /**
| |  * Implementation of a calculator web service.
| |  * @author Bill
| |  *
| |  */
| | @WebService(
| |     serviceName="CalculatorService",
| |     targetNamespace="http://services.agr.gc.ca/CalculatorService";
| | )
| | @SOAPBinding(
| |             style=SOAPBinding.Style.DOCUMENT,
| |             use=SOAPBinding.Use.LITERAL,
| |             parameterStyle=SOAPBinding.ParameterStyle.BARE
| | )
| | public class CalculatorService {
| |
| |     /**
| |      * Adds two numbers.
| |      * @param a
| |      * @param b
| |      * @return the addition of two numbers.
| |      */
| |     @WebMethod (
| |             action="action:Add",
| |             operationName="Add"
| |     )
| |     public @WebResult(name="Add") int add(
| |                     @WebParam (mode=WebParam.Mode.IN,
| |                                        name="param1") int a,
| |                     @WebParam (mode=WebParam.Mode.IN,
| |                                        name="param2") int b) {
| |             return a + b;
| |     }
| | }
| |
| | Everything seems to be hit and miss with the annotations.  For the
| | @WebMethod the targetNamespace and operationName seems to have no
| effect.
| | The @WebResult has no effect.  So if I want to have a document literal
|
| | web service with a response parameter as addResult instead of
| | addResponse I can't seem to do that.
| |
| | Is there something i'm missing?
| |

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


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIBJTcgNg6eWEDv1kRAvylAKCJe3X7yz0/WnNtNhHerP4aY4aw0QCcD3wv
cpsbXyqihtmKkMEzKwoXZhw=
=tBbT
-----END PGP SIGNATURE-----

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

Reply via email to