wsdlVisitor,
null);
visitor.visit(simpleTypeSpecNode);
XmlSchemaType stype = visitor.getSchemaType();
CorbaType ctype = visitor.getCorbaType();
Scope fullyQualifiedName = visitor.getFullyQualifiedName();
long bound = -1;
if (boundNode != null) {
bound = Long.parseLong(boundNode.toString());
}
Scope scopedName = null;
if (identifierNode == null) {
// anonymous type
scopedName = TypesUtils.generateAnonymousScopedName(getScope(), schema);
} else {
scopedName = new Scope(getScope(), identifierNode);
}
XmlSchemaType schemaType = null;
// According to CORBA Binding for WSDL specification,
// idl:sequence<octet> maps to xs:base64Binary by default.
//
// wsdlVisitor.getSequenceOctetType() returns the XmlSchema type
// that idl:sequence<octet> should map to, as specified by the
// -s command line option or the default type xsd:base64Binary.
//
if (stype != null) {
if (!stype.getQName().equals(Constants.XSD_UNSIGNEDBYTE)) {
schemaType = generateSchemaType(stype, scopedName, bound, fullyQualifiedName);
} else {
schemaType = wsdlVisitor.getSequenceOctetType();
}
} else {
schemaType = generateSchemaType(null, scopedName, bound, fullyQualifiedName);
}
CorbaType corbaType = null;
if (identifierNode == null) {
corbaType = generateCorbaAnonsequence(ctype,
schemaType,
scopedName,
bound,