With Java EE 5, You can deploy applications without deployment
descriptors. Those Web Service annotations provide the metadata for
deployment.
sun-jaxws.xml is needed if you want to deploy your Web Service as a
servlet endpoint. If you are using 109 style deployment, its not needed.
In SJSAS, I believe if you just bundle your Web Service classes as war
and deploy it, it generates artifacts automatically in the background
and does everything for you ( deployment descriptor , webservices.xml is
not mandatory). But, I recommend using wsgen and bundling all the
necessary artifacts to make the application portable.
thanks,
Rama Pulavarthi
Zarick Lau wrote:
> Hi devs and users,
>
> I'm new to web service in general, and start my exploration in this area.
> Our project currently using SJSAS 9, and I've deployed a dump Service
> using
> annotation like @WebService, @WebParam, /without/ any extra deployment
> descriptor
> or XML manifest.
>
> However, most tutorial I've just googled shows me, I've to use wsgen,
> and prepare
> a file named sun-jaxws.xml, and some extra servlet mapping are needed
> in web.xml.
>
> Then I am very puzzled about this? Does SJSAS have some AS specific
> enhancement, so the extra
> steps (sun-jaxws.xml, wsgen) become optional?
>
> And I've one related question, it looks like that, jaxws have do a lot
> of things behind the scene, how can I
> get more information about jaxws (not hello world, or netbeans tutorial).
>
> I know there is an JAX-WS 2.0 JSR, and I'd start reading this, but do
> I missed some other important
> document?
>
> Thanks,
> Zarick