Saturday February 10, 2007
GlassFish v2 supported in IntelliJ Web Services Plugin
As a follow up from a previous blog, the Web Services plugin in IntelliJIDEA now supports GlassFish v2. Here are the steps I followed to deploy the Web service on GlassFish:
@javax.jws.WebService annotation and
exposed the class as Web service as shown
here. The menu item changed from "Expose Class as Web Service"
to "Deploy Class as Web Service". I find this confusing since at
this stage the service endpoint is not getting deployed. Instead, under the
covers required artifacts are generated. There is an explicit deploy step
later and it's confusing to mix that here. I think it should be renamed back
to "Expose Class as Web Service".http://localhost:8080/hello/services/Hello.Now, we need to invoke the Web service using the following steps:
public class HelloClient {
public static void main(String[] args) {
System.out.println(new
HelloService().getHelloPort().sayHello("Duke"
);
}
}activation.jar as a module library as shown
here.Thanks to AdvancedTools for adding GlassFish v2 support to the Web Services plugin.
Technorati: NetBeans IntelliJ Eclipse GlassFish Web service WSIT
Posted by Arun Gupta in webservices | Comments[1]
|
|
|
|
|
Today's Page Hits: 2693
Total # blog entries: 1009
Posted by Arun Gupta's Blog on May 01, 2007 at 07:19 PM PDT #