
416 Patterns: SOA Foundation Service Connectivity Scenario
The following code (Example 8-1) in ITSO_RegProcServiceApp calls the service
using the proxy.
Example 8-1 Invoking the CRM mediation
if (registrationProcessStatus == SUCCESS) { //nothing went wrong with the CreditCheck Service
// register customer in CRM system
try {
System.out.println("ITSOMart RegistrationProcessorService.getCreditRating >> invoking
CustomerRegistration Service (soap/http)");
// check for registration denied, if denied, set registrationProcessStatus = DENIED
CustomerRegistrationRequest customerRegistrationRequest = new
CustomerRegistrationRequest();
customerRegistrationRequest.setCreditRating ...