Examples of generateSchema()


Examples of org.apache.axis2.wsdl.java2wsdl.SchemaGenerator.generateSchema()

        Parameter implInfoParam = axisService.getParameter(Constants.SERVICE_CLASS);
        String serviceClass = (String) implInfoParam.getValue();
        ClassLoader serviceClassLoader = axisService.getClassLoader();
        SchemaGenerator schemaGenerator = new SchemaGenerator(serviceClassLoader,
                serviceClass, null, null);
        axisService.setSchema(schemaGenerator.generateSchema());

        JMethod [] method = schemaGenerator.getMethods();
        TypeTable table = schemaGenerator.getTypeTable();
        PhasesInfo pinfo = axisConfig.getPhasesInfo();
View Full Code Here

Examples of org.apache.axis2.wsdl.java2wsdl.SchemaGenerator.generateSchema()

        ClassLoader serviceClassLoader = axisService.getClassLoader();
        SchemaGenerator schemaGenerator = new SchemaGenerator(serviceClassLoader,
                implClass, null, null);
        try {
            axisService.setSchema(schemaGenerator.generateSchema());
        } catch (Exception e) {
            throw new AxisFault(e);
        }

        JMethod [] method = schemaGenerator.getMethods();
View Full Code Here

Examples of org.apache.ws.java2wsdl.SchemaGenerator.generateSchema()

     */
    public void buildWSDL() throws Exception
    {
        SchemaGenerator sg = new SchemaGenerator(classLoader, className,
                schemaTargetNamespace, schemaTargetNamespacePrefix);
        Collection schemaCollection = sg.generateSchema();
        TuscanyJava2OMBuilder java2OMBuilder = new TuscanyJava2OMBuilder(sg.getMethods(),
            schemaCollection,
            sg.getTypeTable(),
                serviceName == null ? Java2WSDLUtils.getSimpleClassName(className) : serviceName,
                targetNamespace == null ? Java2WSDLUtils.namespaceFromClassName(className, classLoader).toString():targetNamespace,
View Full Code Here

Examples of org.apache.ws.java2wsdl.SchemaGenerator.generateSchema()

            excludeOpeartion.add("init");
            excludeOpeartion.add("setOperationContext");
            excludeOpeartion.add("destroy");
            excludeOpeartion.add("startUp");
            schemaGenerator.setExcludeMethods(excludeOpeartion);
            axisService.addSchema(schemaGenerator.generateSchema());
            axisService.setSchematargetNamespace(schemaGenerator.getSchemaTargetNameSpace());
            axisService.setTypeTable(schemaGenerator.getTypeTable());
            if (targetNamespace == null) {
                targetNamespace = schemaGenerator.getSchemaTargetNameSpace();
            }
View Full Code Here

Examples of org.apache.ws.java2wsdl.SchemaGenerator.generateSchema()

            excludeOpeartion.add("init");
            excludeOpeartion.add("setOperationContext");
            excludeOpeartion.add("destroy");
            excludeOpeartion.add("startUp");
            schemaGenerator.setExcludeMethods(excludeOpeartion);
            axisService.addSchema(schemaGenerator.generateSchema());
            axisService.setSchematargetNamespace(schemaGenerator.getSchemaTargetNameSpace());
            axisService.setTypeTable(schemaGenerator.getTypeTable());
            if (targetNameSpace == null) {
                targetNameSpace = schemaGenerator.getSchemaTargetNameSpace();
            }
View Full Code Here

Examples of org.apache.ws.java2wsdl.SchemaGenerator.generateSchema()

            excludeOpeartion.add("init");
            excludeOpeartion.add("setOperationContext");
            excludeOpeartion.add("destroy");
            excludeOpeartion.add("startUp");
            schemaGenerator.setExcludeMethods(excludeOpeartion);
            axisService.addSchema(schemaGenerator.generateSchema());
            axisService.setSchematargetNamespace(schemaGenerator.getSchemaTargetNameSpace());
            axisService.setTypeTable(schemaGenerator.getTypeTable());
            if (targetNamespace == null) {
                targetNamespace = schemaGenerator.getSchemaTargetNameSpace();
            }
View Full Code Here

Examples of org.apache.ws.java2wsdl.SchemaGenerator.generateSchema()

            excludeOpeartion.add("init");
            excludeOpeartion.add("setOperationContext");
            excludeOpeartion.add("destroy");
            excludeOpeartion.add("startUp");
            schemaGenerator.setExcludeMethods(excludeOpeartion);
            axisService.addSchema(schemaGenerator.generateSchema());
            axisService.setSchematargetNamespace(schemaGenerator.getSchemaTargetNameSpace());
            axisService.setTypeTable(schemaGenerator.getTypeTable());
            if (targetNameSpace == null) {
                targetNameSpace = schemaGenerator.getSchemaTargetNameSpace();
            }
View Full Code Here

Examples of org.eclipse.persistence.internal.jaxb.json.schema.JsonSchemaGenerator.generateSchema()

        }
    }

    public void generateJsonSchema(SchemaOutputResolver outputResolver, Class rootClass) {
        JsonSchemaGenerator generator = new JsonSchemaGenerator(this.contextState.getXMLContext(), this.contextState.properties);
        JsonSchema schema = generator.generateSchema(rootClass);
        try {
            Marshaller m = getJsonSchemaMarshaller();
            m.marshal(schema, outputResolver.createOutput(null, rootClass.getName() + ".json"));
        } catch (Exception ex) {
        }
View Full Code Here

Examples of org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder.generateSchema()

  @Override
  public void generateSchema(PersistenceUnitInfo info, Map map) {
    log.tracef( "Starting generateSchema : PUI.name=%s", info.getPersistenceUnitName() );

    final EntityManagerFactoryBuilder builder = Bootstrap.getEntityManagerFactoryBuilder( info, map );
    builder.generateSchema();
  }

  @Override
  public boolean generateSchema(String persistenceUnitName, Map map) {
    log.tracef( "Starting generateSchema for persistenceUnitName %s", persistenceUnitName );
View Full Code Here

Examples of org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder.generateSchema()

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, map );
    if ( builder == null ) {
      log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning false" );
      return false;
    }
    builder.generateSchema();
    return true;
  }

  private final ProviderUtil providerUtil = new ProviderUtil() {
    @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.