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 178 | Next

Frank Jennings, David Salter

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

It addresses
some of the issues in JAX-RPC 1.1 by providing support for multiple
protocols such as SOAP 1.1, SOAP 1.2, XML, and by providing a facility
for supporting additional protocols along with HTTP.
After creating an EJB module (Stateless Session Bean), let us create a web service by
selecting the Web Service action by right-clicking the EJB Module project.
Provide the Web Service Name as NorthAirWS and provide a Package name. You
can create an empty web service or delegate a session bean. For the purpose of this
sample, we will create an empty web service.
Building a Sample Application
[ 206 ]
Now, right-click the Web Service and add a new operation as shown in the
following screenshot. The purpose of any web service is to receive requests for a
service, process them, and respond to the client. The operation that we are going to
create accepts passenger details and sends a confirmation message back to the client.
Chapter 10
[ 207 ]
This screenshot shows the Add Operation dialog box. We have added one method
named processItinerary that returns a String object and accepts passenger details
like First Name, Last Name and travel information as input parameters.
At this point let us take a look at our generated Web Service code. A snippet from the
file NorthAirWS.


Pages:
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190