Prev | Current Page 293 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

The client class was already compiled when we built the
full project. To run the test client, change directory to ch11\WebServiceIn-
JmsChannel\03_BindJms and execute ant as follows:
cd ch11\WebServiceInJmsChannel\03_BindJms
ant run
Test using Axis client??”RPC style: In the previous example, we followed a
pure document-oriented approach to invoke the web service and get back the
response. Due to the fact that the transport channel is JMS which is detached
and asynchronous, we may not be able to change the style fully from the
document-oriented approach. However, we can make the invocation close to
an RPC style by using the Apache Axis service and calling objects.
We need to have multiple artifacts to invoke the web service in RPC style,
and they are listed here in detail:
JMSTestClientRPCWebService.java: This is the main client
class used to invoke the web service. This class is placed in the
ch11\WebServiceInJmsChannel\05_AxisClient\src\com\
binildas\apache\axis\AxisEndToEnd folder.
public class JMSTestClientRPCWebService
{
public static void main(String args[]) throws Exception
{
org.


Pages:
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305