
Chapter 8. Scenario: Synchronous stateless (WebSphere consumer and .NET producer) 355
Calculator3WebServiceMethodLocator locator = new
Calculator3WebServiceMethodLocator();
Calculator3WebServiceMethodSoap proxy =
locator.getCalculator3WebServiceMethodSoap();
result = proxy.add(arrayOfFloat);
} catch (ServiceException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
return result;
}
}
The Calculator3Adapter class takes an ICalculator3Args object into its add()
method, converts it into an instance of the pre-generated ArrayOfFloat object,
and calls the Web Service in the same way as the Calculator2Adapter does.
The business ...