// getting the port of the service with SOAP binding
Map ports = wsdl4jService.getPorts();
if (ports.isEmpty()) {
logger.error("atleast one port should be specified");
throw new WSDLProcessingException(
"atleast one Port should be specified");
}
Port wsdl4jPort = getPortWithSoapBinding(ports);
if (wsdl4jPort == null) {
logger
.error("atleast one port with a soap binding should be specified");
throw new WSDLProcessingException("no port with soap binding found");
}
Binding wsdl4jBinding = wsdl4jPort.getBinding();
PortType wsdl4jPortType = wsdl4jBinding.getPortType();