users@jax-ws.java.net

Re: generating WSDL without deploying

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Thu, 09 Mar 2006 08:35:39 -0800

This will work, just make sure that if you plan on changing the binding,
servicename or portname in the deployment
descriptor, then you will need to pass those arguements to wsgen as well.

Francois Jean wrote:

>Hello Mark,
>
>You could generate your WSDL using this task:
>
><target name="wsdl">
> <wsgen sei="Hello" destdir="${build.dir}" classpath="${src}"
>genwsdl="true" protocol="soap1.1">
> <classpath refid="compile.classpath" />
> </wsgen>
></target>
>
>François J.
>
>-----Original Message-----
>From: Mark Hansen [mailto:mark_at_javector.com]
>Sent: 9 mars 2006 09:08
>To: users_at_jax-ws.dev.java.net
>Subject: generating WSDL without deploying
>
>Suppose I have a simple @WebService (no SEI) like this.
>
>@WebService
>public class Hello {
>
> public String sayHello(String s) {
> return "Hello: " + s;
>
> }
>}
>
>I want to generated the WSDL from this without going to the trouble of
>deploying it. How can I do that? This comes up in the build process
>where I want to build a client for such a web service, but the web
>service is not deployed yet, so I can't get its WSDL in order to
>generated the SEI needed for the client.
>
>Thanks for any suggestions.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>
>

-- 
 - Doug