Prev | Current Page 259 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

In the ESB, we will set up a Web Services Gateway, which can
proxy the remote web service. The entire setup is shown in the following figure:
Along with the previous discussion, we need the servicemix-http in the consumer
and provider roles. MyConsumerService is a servicemix-http component in the
consumer role and IHelloWebService is a servicemix-http component in the
provider role. Both of them are shown in the following figure:
Bind Web Services in ESB??”Web Services Gateway
[ 190 ]
Let us now take a closer look at the gateway configured in the ESB. Here, we
configure servicemix-http in both the consumer and provider roles and hook it
to the NMR. Any client requests are intercepted by the consumer and the consumer
then sends the request on behalf of the client to the NMR. From there the request will
be routed to the destination web service through the provider. The message flow is
marked in sequence in the following figure:
Deploy the Web Service
As a first step, if you haven't done it before, edit examples.PROPERTIES (provided
along with the code download for this chapter), and change the paths there to match
your development environment.


Pages:
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271