* @throws <code>WSIFException<code>
*/
public ImportDefinition getDefinition(PortTypeSelection portTypeSelection) throws WSIFException {
try {
WSIFService portFactory = WSIFServiceFactory.newInstance().getService(serviceDefintion, importService, importPortType);
WSIFPort port = portFactory.getPort();
WSIFOperation operation = port.createOperation(GET_DEFINITION_OPERATION);
WSIFMessage inputMessage = operation.createInputMessage();
WSIFMessage outputMessage = operation.createOutputMessage();
inputMessage.setObjectPart(PORT_TYPE_SELECTION_PART, portTypeSelection);
operation.executeRequestResponseOperation(inputMessage, outputMessage, null);
ImportDefinition importDefinition = (ImportDefinition) outputMessage.getObjectPart(RESULT_PART);
port.close();
return importDefinition;
} catch (Exception e) {
if (e instanceof WSIFException)
throw (WSIFException) e;