committed by
Greg L. Turnquist
parent
b1ce9d22e6
commit
b4536efc33
@@ -95,8 +95,8 @@ public abstract class AbstractPortTypesProvider implements PortTypesProvider {
|
||||
|
||||
private void createOperations(Definition definition, PortType portType) throws WSDLException {
|
||||
MultiValueMap<String, Message> operations = new LinkedMultiValueMap<String, Message>();
|
||||
for (Iterator<?> iterator = definition.getMessages().values().iterator(); iterator.hasNext();) {
|
||||
Message message = (Message) iterator.next();
|
||||
for (Object messageValue : definition.getMessages().values()) {
|
||||
Message message = (Message) messageValue;
|
||||
String operationName = getOperationName(message);
|
||||
if (StringUtils.hasText(operationName)) {
|
||||
operations.add(operationName, message);
|
||||
|
||||
@@ -97,8 +97,8 @@ public class DefaultConcretePartProvider implements BindingsProvider, ServicesPr
|
||||
*/
|
||||
@Override
|
||||
public void addBindings(Definition definition) throws WSDLException {
|
||||
for (Iterator<?> iterator = definition.getPortTypes().values().iterator(); iterator.hasNext();) {
|
||||
PortType portType = (PortType) iterator.next();
|
||||
for (Object portValue : definition.getPortTypes().values()) {
|
||||
PortType portType = (PortType) portValue;
|
||||
Binding binding = definition.createBinding();
|
||||
binding.setPortType(portType);
|
||||
populateBinding(definition, binding);
|
||||
@@ -136,8 +136,8 @@ public class DefaultConcretePartProvider implements BindingsProvider, ServicesPr
|
||||
|
||||
private void createBindingOperations(Definition definition, Binding binding) throws WSDLException {
|
||||
PortType portType = binding.getPortType();
|
||||
for (Iterator<?> operationIterator = portType.getOperations().iterator(); operationIterator.hasNext();) {
|
||||
Operation operation = (Operation) operationIterator.next();
|
||||
for (Object operationValue : portType.getOperations()) {
|
||||
Operation operation = (Operation) operationValue;
|
||||
BindingOperation bindingOperation = definition.createBindingOperation();
|
||||
bindingOperation.setOperation(operation);
|
||||
populateBindingOperation(definition, bindingOperation);
|
||||
@@ -152,8 +152,8 @@ public class DefaultConcretePartProvider implements BindingsProvider, ServicesPr
|
||||
createBindingOutput(definition, operation, bindingOperation);
|
||||
createBindingInput(definition, operation, bindingOperation);
|
||||
}
|
||||
for (Iterator<?> faultIterator = operation.getFaults().values().iterator(); faultIterator.hasNext();) {
|
||||
Fault fault = (Fault) faultIterator.next();
|
||||
for (Object faultValue : operation.getFaults().values()) {
|
||||
Fault fault = (Fault) faultValue;
|
||||
BindingFault bindingFault = definition.createBindingFault();
|
||||
populateBindingFault(definition, bindingFault, fault);
|
||||
if (StringUtils.hasText(bindingFault.getName())) {
|
||||
@@ -281,11 +281,11 @@ public class DefaultConcretePartProvider implements BindingsProvider, ServicesPr
|
||||
}
|
||||
|
||||
private void createPorts(Definition definition, Service service) throws WSDLException {
|
||||
for (Iterator<?> iterator = definition.getBindings().values().iterator(); iterator.hasNext();) {
|
||||
Binding binding = (Binding) iterator.next();
|
||||
for (Object bindingValue : definition.getBindings().values()) {
|
||||
Binding binding = (Binding) bindingValue;
|
||||
Port port = null;
|
||||
for (Iterator<?> iterator1 = service.getPorts().values().iterator(); iterator1.hasNext();) {
|
||||
Port existingPort = (Port) iterator1.next();
|
||||
for (Object portValue : service.getPorts().values()) {
|
||||
Port existingPort = (Port) portValue;
|
||||
if (binding.equals(existingPort.getBinding())) {
|
||||
port = existingPort;
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ public class DefaultMessagesProvider implements MessagesProvider {
|
||||
public void addMessages(Definition definition) throws WSDLException {
|
||||
Types types = definition.getTypes();
|
||||
Assert.notNull(types, "No types element present in definition");
|
||||
for (Iterator<?> iterator = types.getExtensibilityElements().iterator(); iterator.hasNext();) {
|
||||
ExtensibilityElement extensibilityElement = (ExtensibilityElement) iterator.next();
|
||||
for (Object element : types.getExtensibilityElements()) {
|
||||
ExtensibilityElement extensibilityElement = (ExtensibilityElement) element;
|
||||
if (extensibilityElement instanceof Schema) {
|
||||
Schema schema = (Schema) extensibilityElement;
|
||||
if (schema.getElement() != null) {
|
||||
|
||||
@@ -311,8 +311,8 @@ public class Soap11Provider extends DefaultConcretePartProvider {
|
||||
*/
|
||||
@Override
|
||||
protected void populatePort(Definition definition, Port port) throws WSDLException {
|
||||
for (Iterator<?> iterator = port.getBinding().getExtensibilityElements().iterator(); iterator.hasNext();) {
|
||||
if (iterator.next() instanceof SOAPBinding) {
|
||||
for (Object extensibilityElement : port.getBinding().getExtensibilityElements()) {
|
||||
if (extensibilityElement instanceof SOAPBinding) {
|
||||
// this is a SOAP 1.1 binding, create a SOAP Address for it
|
||||
super.populatePort(definition, port);
|
||||
SOAPAddress soapAddress = (SOAPAddress) createSoapExtension(definition, Port.class, "address");
|
||||
|
||||
@@ -316,8 +316,8 @@ public class Soap12Provider extends DefaultConcretePartProvider {
|
||||
*/
|
||||
@Override
|
||||
protected void populatePort(Definition definition, Port port) throws WSDLException {
|
||||
for (Iterator<?> iterator = port.getBinding().getExtensibilityElements().iterator(); iterator.hasNext();) {
|
||||
if (iterator.next() instanceof SOAP12Binding) {
|
||||
for (Object extensibilityElement : port.getBinding().getExtensibilityElements()) {
|
||||
if (extensibilityElement instanceof SOAP12Binding) {
|
||||
// this is a SOAP 1.2 binding, create a SOAP Address for it
|
||||
super.populatePort(definition, port);
|
||||
SOAP12Address soapAddress = (SOAP12Address) createSoapExtension(definition, Port.class, "address");
|
||||
|
||||
Reference in New Issue
Block a user