def.getTargetNamespace(),
operation.getPortType());
WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
WSIFService wsifService = factory.getService(def, service, portType);
WSIFPort wsifPort = wsifService.getPort();
String operationName = operation.getOperationName();
javax.wsdl.Operation wsdlOperation =
retrieveWSDLOperation(operationName, portType);
// Get the Input and Output objects to create the WSIFOperation and
// messages.
Input wsdlInput = wsdlOperation.getInput();
String inputName = (wsdlInput.getName() == null) ? null :
wsdlInput.getName();
Output wsdlOutput = wsdlOperation.getOutput();
String outputName = (wsdlOutput.getName() == null) ? null :
wsdlOutput.getName();
WSIFOperation wsifOperation =
wsifPort.createOperation(operationName, inputName, outputName);
WSIFMessage input = wsifOperation.createInputMessage();
WSIFMessage output = wsifOperation.createOutputMessage();
WSIFMessage fault = wsifOperation.createFaultMessage();
initializeInputParts(wsdlInput.getMessage(), message, input);