Over a million developers have joined DZone.

Web Services Designer in NetBeans 6

DZone 's Guide to

Web Services Designer in NetBeans 6

· Java Zone ·
Free Resource

If you think creating and deploying Web services in Java is hard, think again! NetBeans 6 has changed the landscape by adding a visual Web service designer and allows web services to be deployed directly to a variety of containers. Let's understand how.

First, a couple of introductions...

  • Metro - A Web services stack that serves all your needs for simple Hello World Web service to Secure, Reliable, Transactional and .NET 3.0 interoperable web service. NetBeans IDE provides complete tooling support for Metro and the runtime is bundled in in GlassFish. Metro runtime can be installed on other containers as well.
  • GlassFish - An open source Java EE 5 compatible Application server with several enterprise features such as clustering, high-availability, highly performant and unified administration. Metro runtime is bundled with GlassFish.

NetBeans IDE allows you to create Web services using a visual designer and specify the quality of service attributes on each Web service. These attributes define whether a Web service endpoint needs to be reliable, secure (algorithms, key sizes, key store/trust store locations etc) and similar capabilities. Once the attributes are configured, the Web service can be deployed on GlassFish and the Metro runtime generates the appropriate WSDL with correct set of policy assertions. This Web service endpoint can be tested using the Test Web Service context-sensitive menu or by generating a Web Service Reference. The reference can be easily drag-and-dropped in a JSP or Servlet to invoke the endpoint.

Follow screencast #ws7 that guides you through the process of creating a Web service, making it secure and reliable and deploying on GlassFish:

Screencast #WS7


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}