NetBeans 5.0 & Web services on JBoss
Let’s create doc/lit web service which will provide two operations: plus and minus. Sounds easy? So do it for complex type and have JBoss as target server… 
Complex number consists of real and imaginary part, so we will create a value object for it. It will have two private fields, some getters and setters and two constructors. Full code:
Creating web service is also an easy step there’s a wizard for its creation and actions for adding operation to web service (you can find it in the editor’s and web service’s context menu). So here’s only listing of web service implementation:
This is the most important part if we want to be able to use the service which will be deployed to JBoss – we have to create server-side artifacts manually but wscompile is our friend here
(see JBossWSFAQ). So let’s do it – add following target into project’s build.xml (if the name of your service is not CalcService replace it with _yourServiceName_ ):
Now we are ready to deploy our project and to test our web service. Let's see if it works (click on the picture for better view):
And here you can download sources for this project. Enjoy... 
Posted at 03:10AM Feb 03, 2006 by jungi in NetBeans | Comments[4]
Today's Page Hits: 11
Posted by citrus on February 03, 2006 at 03:12 PM CET #
Posted by jungi on February 03, 2006 at 04:06 PM CET #
Posted by afsina on February 04, 2006 at 06:26 AM CET #
Posted by jungi on February 04, 2006 at 06:03 PM CET #