{
WSDLInterface[] intfArr = wsdlDefinitions.getInterfaces();
int len = intfArr != null ? intfArr.length : 0;
for (int i = 0; i < len; i++)
{
WSDLInterface wi = intfArr[i];
WSDLInterfaceOperation[] ops = wi.getOperations();
int lenOps = ops.length;
for (int j = 0; j < lenOps; j++)
{
WSDLInterfaceOperation op = ops[j];
for (WSDLInterfaceOperationInput input : op.getInputs())
{
if (isDocStyle())
{
XSTypeDefinition xt = getXSType(input);
// Don't unwrap the actual parameter.
addJavaXMLTypeMap(xt, input.getElement().getLocalPart(), "", "", jwm, false);
}
else
{
for (WSDLRPCPart part : input.getChildParts())
addJavaXMLTypeMap(getXSType(part.getType()), input.getElement().getLocalPart(), "", "", jwm, true);
}
}
for (WSDLInterfaceOperationOutput output : op.getOutputs())
{
if (isDocStyle())
{
XSTypeDefinition xt = getXSType(output);
// Don't unwrap the response type.
addJavaXMLTypeMap(xt, output.getElement().getLocalPart(), "", "", jwm, false);
}
else
{
for (WSDLRPCPart part : output.getChildParts())
addJavaXMLTypeMap(getXSType(part.getType()), output.getElement().getLocalPart(), "", "", jwm, true);
}
}
for (WSDLInterfaceFault fault : wi.getFaults())
{
QName xmlType = fault.getXmlType();
QName xmlName = fault.getElement();
WSDLTypes types = wsdlDefinitions.getWsdlTypes();