public Map populateSchemaMappings() { // when calling from other than codegen. i.e from deployment // engine we don't have to override the absolute http locations. return populateSchemaMappings(false); }
public Map populateSchemaMappings() { // when calling from other than codegen. i.e from deployment // engine we don't have to override the absolute http locations. return populateSchemaMappings(false); }
protected OMElement generateTypes(OMFactory omFactory) throws AxisFault { // Add types element OMElement typesElement = omFactory.createOMElement(WSDL2Constants.TYPES_LOCAL_NALE, wsdl); axisService.populateSchemaMappings(); ArrayList schemas = axisService.getSchema(); for (int i = 0; i < schemas.size(); i++) { StringWriter writer = new StringWriter(); XmlSchema schema = axisService.getSchema(i); if (!org.apache.axis2.namespace.Constants.URI_2001_SCHEMA_XSD .equals(schema.getTargetNamespace())) { schema.write(writer); String schemaString = writer.toString(); if (!"".equals(schemaString)) { try { typesElement.addChild( XMLUtils.toOM(new ByteArrayInputStream(schemaString.getBytes()))); } catch (XMLStreamException e) { throw AxisFault.makeFault(e); } } } } return typesElement; }
protected OMElement generateTypes(OMFactory omFactory) throws AxisFault { // Add types element OMElement typesElement = omFactory.createOMElement(WSDL2Constants.TYPES_LOCAL_NALE, wsdl); axisService.populateSchemaMappings(); ArrayList schemas = axisService.getSchema(); for (int i = 0; i < schemas.size(); i++) { StringWriter writer = new StringWriter(); XmlSchema schema = axisService.getSchema(i); if (!org.apache.axis2.namespace.Constants.URI_2001_SCHEMA_XSD .equals(schema.getTargetNamespace())) { schema.write(writer); String schemaString = writer.toString(); if (!"".equals(schemaString)) { try { typesElement.addChild( XMLUtils.toOM(new ByteArrayInputStream(schemaString.getBytes()))); } catch (XMLStreamException e) { throw AxisFault.makeFault(e); } } } } return typesElement; }
protected OMElement generateTypes(OMFactory fac){ OMElement wsdlTypes = fac.createOMElement("types", wsdl); // populate the schema mappings axisService.populateSchemaMappings(); ArrayList schemas = axisService.getSchema(); for (int i = 0; i < schemas.size(); i++) { StringWriter writer = new StringWriter(); // XmlSchema schema = (XmlSchema) schemas.get(i); XmlSchema schema = axisService.getSchema(i); String targetNamespace = schema.getTargetNamespace(); if (!Constants.NS_URI_XML.equals(targetNamespace)) { schema.write(writer); String schemaString = writer.toString(); if (!"".equals(schemaString)) { try { wsdlTypes.addChild(XMLUtils.toOM(new StringReader(schemaString))); } catch (XMLStreamException e) { e.printStackTrace(); return null; } } } } return wsdlTypes; }
protected OMElement generateTypes(OMFactory fac){ OMElement wsdlTypes = fac.createOMElement("types", wsdl); // populate the schema mappings axisService.populateSchemaMappings(); ArrayList schemas = axisService.getSchema(); for (int i = 0; i < schemas.size(); i++) { StringWriter writer = new StringWriter(); // XmlSchema schema = (XmlSchema) schemas.get(i); XmlSchema schema = axisService.getSchema(i); String targetNamespace = schema.getTargetNamespace(); if (!Constants.NS_URI_XML.equals(targetNamespace)) { schema.write(writer); String schemaString = writer.toString(); if (!"".equals(schemaString)) { try { wsdlTypes.addChild(XMLUtils.toOM(new StringReader(schemaString))); } catch (XMLStreamException e) { e.printStackTrace(); return null; } } } } return wsdlTypes; }
populateSchemaMappings(); Map schemaMappingtable = getSchemaMappingTable(); ArrayList<XmlSchema> schemas = getSchema();
populateSchemaMappings(); Map schemaMappingtable = getSchemaMappingTable(); ArrayList<XmlSchema> schemas = getSchema();
Map changedMap = axisService.populateSchemaMappings(this.codeGenConfiguration.isOverrideAbsoluteAddress());