XmlSchemaType schemaType,
Scope scopedName,
long bound,
Scope fullyQualifiedName) {
// create corba anonsequence
Anonsequence result = new Anonsequence();
if (bound == -1) {
bound = 0;
}
result.setBound(bound);
result.setQName(new QName(typeMap.getTargetNamespace(), scopedName.toString()));
//REVISIT, if we add qualification then change the below.
result.setElemname(new QName("", ELEMENT_NAME));
if (schemaType == null || ctype == null) {
SequenceDeferredAction anonSeqAction =
new SequenceDeferredAction(result);
wsdlVisitor.getDeferredActions().add(fullyQualifiedName, anonSeqAction);
} else {
result.setType(schemaType.getQName());
result.setElemtype(ctype.getQName());
}
// Need to create an action if the type was forward declared.
if (schemaType != null) {
if (schemas.getTypeByQName(schemaType.getQName()) == null