Friday, August 07, 2009

Netbeans : New Web Service client error

I use Netbeans 6.7.

In the web applications project where you are trying to add a web service call to e.g. a servlet, click "New / Web Service Client" and select the project where the actual web service lives. When you click Finish, you get the error.

"wsimport doesn't support the "xnocompile" attribute"

To get round this:

In the project where you are trying to add the web service client, right-click the web service under the "Web Service Reference" sub-tree.

Select "Edit Web Service Attributes".

Click "WsImport Options" tab.

Select the xnocompile line and Remove then OK.

Right-click again on the web service under the "Web Service Reference" sub-tree.

Select "Refresh Client"

The client should now be created.

These a good tutorial about Netbeans web services
here

Enjoy!

Netbeans : Display Web Service Designer and Axis2

This is displayed (I use Netbeans 6.7) when you right click on a web applications project and select "New / Web Service".

You then get two tabs - Source and Design.

However, you do NOT see these tabs if you have previously loaded the Axis2 support plugin.

Enjoy!