PortType wsdlPortType = wsdlBinding.getPortType();
for (Iterator iter = wsdlPortType.getOperations().iterator(); iter.hasNext();) {
Operation wsdlOperation = (Operation) iter.next();
BindingOperation wsdlBindingOperation = wsdlBinding.getBindingOperation(wsdlOperation.getName(), null, null);
SOAP12Operation wsdlSoapOperation = WSDLUtils.getExtension(wsdlBindingOperation, SOAP12Operation.class);
Wsdl1SoapOperationImpl operation = new Wsdl1SoapOperationImpl();
operation.setName(new QName(wsdlPortType.getQName().getNamespaceURI(), wsdlOperation.getName()));
if (wsdlSoapOperation != null) {
operation.setSoapAction(wsdlSoapOperation.getSoapActionURI());
operation.setStyle(getStyle(wsdlSoapOperation.getStyle()));
} else {
operation.setSoapAction("");
}
if (operation.getStyle() == null) {
operation.setStyle(binding.getStyle() != null ? binding.getStyle() : Style.DOCUMENT);
}
if (wsdlOperation.getStyle() == OperationType.ONE_WAY) {
operation.setMep(JbiConstants.IN_ONLY);
} else if (wsdlOperation.getStyle() == OperationType.REQUEST_RESPONSE) {
operation.setMep(JbiConstants.IN_OUT);
}
// Create input
createInput(operation, wsdlBindingOperation);
// Create output