WSIFMessage inMsg = operation.createInputMessage();
WSIFMessage outMsg = operation.createOutputMessage();
WSIFMessage faultMsg = operation.createFaultMessage();
ComplexDocument_ElemType cdtet = new ComplexDocument_ElemType();
ComplexDocument_Type cdt = makeComplexDocument();
checkComplexDocument(cdt);
cdtet.setComplexDocument(cdt);
inMsg.setObjectPart("parameters", cdtet);
boolean ok =
operation.executeRequestResponseOperation(
inMsg,
outMsg,
faultMsg);
assertTrue("operation returned false!!", ok);
Object o = null;
try {
o = outMsg.getObjectPart("outputDoc");
assertTrue("response is null!!!", o != null);
} catch (WSIFException e) {
assertTrue("response part 'outputDoc' not found in output message!!!", false);
}
assertTrue(
"response part has wrong type: " + o.getClass(),
ComplexDocumentResponse.class.isAssignableFrom(o.getClass()));
ComplexDocumentResponse response = (ComplexDocumentResponse) o;
ComplexDocument_Type cdtResponse = response.getComplexDocument();
assertNotNull("response ComplexDocument is null!!!", cdtResponse);
checkComplexDocument(cdtResponse);
} catch (Exception ex) {