Chapter 31. Integrating and automating the process 819
Example 31-5 shows a sample from our scenario.
Example 31-5 Updated Create method
public void RM_MaintenanceCreate(
com
.ibm
.www
.websphere
.crossworlds
._2002
.BOSchema
.RM_Maintenance
.RM_MaintenanceElement argBodyPart) {
// user code begin {method_content}
System.out.println("<<<< Message arrived for Create >>>>");
String resp;
try {
ProcessPortTypeProxy aProxy = new ProcessPortTypeProxy();
// user code begin {proxy_method_calls}
MaintenanceRequest rq = new MaintenanceRequest();
rq.setApartment(argBodyPart.getApartmentId());
rq.setTenant(argBodyPart.getTenantId());
rq.setDescription(argBodyPart.getProblemDescription());
rq.setMaintenanceId(argBodyPart.getId());
rq.setExpectedCompletion(argBodyPart.getExpectedCompletion());
resp = aProxy.InputOperation(rq);
System.out.println("Output: " + resp);
} catch (WSIFException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return;
// user code end
}
31.2.9 Deploying and testing the changes
You are ready to test the last piece of the solution. Follow these steps:
1. Stop the Test server.
2. Publish the changes to the server.
3. Start the server.