SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 118 | Next

Frank Jennings, David Salter

"Building SOA-Based Composite Applications Using NetBeans IDE 6"

.. menu option. If
that menu option is not available, select the New | Other menu option and on the
resulting dialog, select the XML category and the WSDL Document file type.
Chapter 6
[ 133 ]
On the first page of the New WSDL Document wizard, enter the name of the WSDL
file as helloWorldWSDL. Accept all the defaults for the other options. Select the
Next button to enter the Abstract Configuration. On this page, change the operation
name to sayHello and change the Message Part Name for the Input message to be
yourName and the Message Part Name for the Output message to be greeting. You
can see here that the message type is automatically set to request/response so we
don't need to change that.
WSDL Editor
[ 134 ]
Select the Next button to move to the Concrete Configuration page of the wizard.
On this page, we can see that the Binding Type defaults to SOAP so we do not need
to change that for our sample web service. Select the Finish button to create the
WSDL document.
Chapter 6
[ 135 ]
Now that we have created the contract for our web service (the WSDL document),
we can use the NetBeans tools to create a web service from the WSDL. Right
click on the HelloWorldWS project within the Projects window and select the
New | Web Service from WSDL... option. If that menu option is not displayed,
select the New | Other menu option, and then in the resulting dialog, select the
Web Services category and Web Service from WSDL file type.


Pages:
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130