/** * Serialize the TypesElements of the WSDL element model. * * * @param types an array of TypesElements. * @param des corresponding DescriptionElement. * @param pw the Writer to write the xml to. */ protected void printTypes(TypesElement types, DescriptionElement des, PrintWriter pw) throws WSDLException { if (types != null) { String tagName = OMUtils.getQualifiedValue(Constants.NS_URI_WSDL20, Constants.ELEM_TYPES, des); pw.print("<" + tagName); printExtensibilityAttributes(types.getExtensionAttributes(),types,pw); pw.println('>'); ExtensionElement[] extElements = types.getExtensionElements(); printExtensibilityElements(types.getClass(), extElements, des,pw); printImportedSchemas(types.getImportedSchemas(), des, pw); printInlinedSchemas(types.getInlinedSchemas(), des, pw); pw.println("</" + tagName + '>'); } }
types.setTypeSystem(Constants.TYPE_XSD_2001); types.addSchema(parseSchemaImport(tempEl, desc)); types.addSchema(parseSchemaInline(tempEl, desc)); types.addExtensionElement( parseExtensionElement(TypesElement.class, types, tempEl, desc) );
types = desc.addTypesElement(); if (types.getTypeSystem() == null) types.setTypeSystem(Constants.TYPE_XSD_2001); desc.getTypesElement().addSchema(parseSchemaImport(xmlEl, desc));
ImportedSchema[] importedSchemas = types.getImportedSchemas(); int numImportedSchemas = importedSchemas.length; for(int i = 0; i < numImportedSchemas; i++) InlinedSchema[] inlinedSchemas = types.getInlinedSchemas(); if(!testAssertionSchema1073(inlinedSchemas, errorReporter)) isValid = false;
if (types != null) { Schema[] importedSchemas = types.getImportedSchemas(); List importedNSpaces = new Vector(); for(int j=0; j<importedSchemas.length; j++) { Schema[] schemas = types.getSchemas(); XmlSchema xmlSchema; for(int i=0; i<schemas.length; i++) {
return false; Schema[] schemas = types.getSchemas(); int numSchemas = schemas.length; boolean schemaNotFound = true;
ImportedSchema[] importedSchemas = types.getImportedSchemas(); int numImportedSchemas = importedSchemas.length; for(int i = 0; i < numImportedSchemas; i++) InlinedSchema[] inlinedSchemas = types.getInlinedSchemas(); if(!testAssertionSchema1073(inlinedSchemas, errorReporter)) isValid = false;
if (types != null) { Schema[] importedSchemas = types.getImportedSchemas(); List importedNSpaces = new Vector(); for(int j=0; j<importedSchemas.length; j++) { Schema[] schemas = types.getSchemas(); XmlSchema xmlSchema; for(int i=0; i<schemas.length; i++) {
return false; Schema[] schemas = types.getSchemas(); int numSchemas = schemas.length; boolean schemaNotFound = true;
/** * Serialize the TypesElements of the WSDL element model. * * * @param types an array of TypesElements. * @param des corresponding DescriptionElement. * @param pw the Writer to write the xml to. */ protected void printTypes(TypesElement types, DescriptionElement des, PrintWriter pw) throws WSDLException { if (types != null){ String tagName = DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL20, Constants.ELEM_TYPES, des); pw.print("<" + tagName); printExtensibilityAttributes(types.getExtensionAttributes(), types, pw); pw.println('>'); ExtensionElement[] extElements = types.getExtensionElements(); printExtensibilityElements(types.getClass(), extElements, des, pw); printImportedSchemas(types.getImportedSchemas(),des,pw); printInlinedSchemas(types.getInlinedSchemas(),des,pw); pw.println("</" + tagName + '>'); } }
types.setTypeSystem(Constants.TYPE_XSD_2001); types.addSchema(parseSchemaImport(tempEl, desc)); types.addSchema(parseSchemaInline(tempEl, desc)); types.addExtensionElement( parseExtensionElement(TypesElement.class, types, tempEl, desc) );
types = desc.addTypesElement(); if (types.getTypeSystem() == null) types.setTypeSystem(Constants.TYPE_XSD_2001); desc.getTypesElement().addSchema(parseSchemaImport(xmlEl, desc));
/** * recursively drills down to find all type definitions * (XSD schemas) in all imported WSDLs and XSDs * * @param descriptionElement - a description element from where import elements * and types can be found */ private void processTypes(DescriptionElement descriptionElement) { TypesElement typesElement = descriptionElement .getTypesElement(); if (typesElement != null) { Schema[] schemas = typesElement.getSchemas(); for (int i = 0; i < schemas.length; i++) { XmlSchema schemaDefinition = schemas[i].getSchemaDefinition(); // WSDL 2.0 spec requires that even the built-in schema should be returned // once asked for schema definitions. But for data binding purposes we can ignore that if (schemaDefinition != null && !Constants.URI_2001_SCHEMA_XSD .equals(schemaDefinition.getTargetNamespace())) { axisService.addSchema(schemaDefinition); } } } ImportElement[] importElements = descriptionElement.getImportElements(); for (int i = 0; i < importElements.length; i++) { DescriptionElement descElem = importElements[i].getDescriptionElement(); processTypes(descElem); // recursively drill down } }
/** * Serialize the TypesElements of the WSDL element model. * * * @param types an array of TypesElements. * @param des corresponding DescriptionElement. * @param pw the Writer to write the xml to. */ protected void printTypes(TypesElement types, DescriptionElement des, PrintWriter pw) throws WSDLException { if (types != null){ String tagName = DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL20, Constants.ELEM_TYPES, des); pw.print("<" + tagName); printExtensibilityAttributes(types.getExtensionAttributes(), types, pw); pw.println('>'); ExtensionElement[] extElements = types.getExtensionElements(); printExtensibilityElements(types.getClass(), extElements, des, pw); printImportedSchemas(types.getImportedSchemas(),des,pw); printInlinedSchemas(types.getInlinedSchemas(),des,pw); pw.println("</" + tagName + '>'); } }
/** * recursively drills down to find all type definitions * (XSD schemas) in all imported WSDLs and XSDs * * @param descriptionElement - a description element from where import elements * and types can be found */ private void processTypes(DescriptionElement descriptionElement) { TypesElement typesElement = descriptionElement .getTypesElement(); if (typesElement != null) { Schema[] schemas = typesElement.getSchemas(); for (int i = 0; i < schemas.length; i++) { XmlSchema schemaDefinition = schemas[i].getSchemaDefinition(); // WSDL 2.0 spec requires that even the built-in schema should be returned // once asked for schema definitions. But for data binding purposes we can ignore that if (schemaDefinition != null && !Constants.URI_2001_SCHEMA_XSD .equals(schemaDefinition.getTargetNamespace())) { axisService.addSchema(schemaDefinition); } } } ImportElement[] importElements = descriptionElement.getImportElements(); for (int i = 0; i < importElements.length; i++) { DescriptionElement descElem = importElements[i].getDescriptionElement(); processTypes(descElem); // recursively drill down } }
TypesElement typesElem = nestedDesc.getTypesElement(); if(typesElem != null) { Schema[] schemas = typesElem.getSchemas(schema.getNamespace()); for(int j=0; j<schemas.length; j++) { Schema s = (Schema)schemas[i]; TypesElement typesElem = nestedDesc.getTypesElement(); if(typesElem != null) { Schema[] schemas = typesElem.getSchemas(schema.getNamespace()); for(int j=0; j<schemas.length; j++) { Schema s = (Schema)schemas[i];
TypesElement typesElem = nestedDesc.getTypesElement(); if(typesElem != null) { Schema[] schemas = typesElem.getSchemas(schema.getNamespace()); for(int j=0; j<schemas.length; j++) { Schema s = (Schema)schemas[i]; TypesElement typesElem = nestedDesc.getTypesElement(); if(typesElem != null) { Schema[] schemas = typesElem.getSchemas(schema.getNamespace()); for(int j=0; j<schemas.length; j++) { Schema s = (Schema)schemas[i];