if (output != null) {
Message msg = output.getMessage();
Iterator i = msg.getOrderedParts(null).iterator();
while (i.hasNext()) {
Part part = (Part) i.next();
XmlSchemaType schemaType = null;
schemaType = lookUpType(part, xmlSchemaList);
// check if in input list
String mode = "out";
ParamType paramtype = null;
for (int x = 0; x < inputs.size(); x++) {
paramtype = null;
ParamType d2 = (ParamType) inputs.get(x);
if (part.getName() != null
&& d2.getName().equals(part.getName())) {
inputs.remove(x);
if (part.getElementName() != null) {
XmlSchemaElement el = getElement(part,
xmlSchemaList);
paramtype = createParam(wsdlToCorbaBinding,
"inout", schemaType, part.getName(), part
.getElementName(), el.isNillable());
} else {
paramtype = createParam(wsdlToCorbaBinding,
"inout", schemaType, part.getName(), part
.getTypeName(), false);
}
inputs.add(paramtype);
}
}
if (paramtype == null) {
if (part.getElementName() != null) {
XmlSchemaElement el = getElement(part, xmlSchemaList);
paramtype = createParam(wsdlToCorbaBinding, mode,
schemaType, part.getName(), part
.getElementName(), el.isNillable());
} else {
paramtype = createParam(wsdlToCorbaBinding, mode,
schemaType, part.getName(), part.getTypeName(),
false);
}
if (paramtype != null) {
outputs.add(paramtype);
}