Creating a web-service client directly from the source
Posted
by ben
on Stack Overflow
See other posts from Stack Overflow
or by ben
Published on 2010-01-25T08:21:12Z
Indexed on
2010/05/16
2:00 UTC
Read the original article
Hit count: 417
Hi, I am trying to generate the WS client jar directly from the @Webservice class(es).
Let's take this example :
package com.example.maven.jaxws.helloservice;
import javax.jws.WebService;
@WebService
public class Hello {
public String sayHello(String param) {
; return "Hello " + param;
}
}
I can generate a war file and use glassfish to serve this webservice, and from there I can use the glassfish WSDL URL to generate the client sources.
What I am trying to do is to skip the glassfish part. From my maven project defining the webservice, I would like to use the jaxws-maven-plugin to create the client classes but I cannot find any way to specify the actual URL of the webservice.
It should be possible right?
© Stack Overflow or respective owner