Package org.apache.axis2.description.java2wsdl

Examples of org.apache.axis2.description.java2wsdl.DocLitBareSchemaGenerator


        axisService.setNamespaceMap(map);
        SchemaGenerator schemaGenerator;
        Parameter generateBare = axisService
                .getParameter(Java2WSDLConstants.DOC_LIT_BARE_PARAMETER);
        if (generateBare != null && "true".equals(generateBare.getValue())) {
            schemaGenerator = new DocLitBareSchemaGenerator(serviceClassLoader,
                                                            serviceClass.trim(),
                                                            axisService.getSchemaTargetNamespace(),
                                                            axisService
                                                                    .getSchemaTargetNamespacePrefix(),
                                                            axisService);
View Full Code Here


      String className, String schematargetNamespace,
      String schematargetNamespacePrefix) throws Exception {
    SchemaGenerator schemaGen;
    if (this.schemaGenClassName == null) {
      if (generateDocLitBare) {
        schemaGen = new DocLitBareSchemaGenerator(loader, className,
            schematargetNamespace, schematargetNamespacePrefix,
            null);
      } else {
        schemaGen = new DefaultSchemaGenerator(loader, className,
            schematargetNamespace, schematargetNamespacePrefix,
            null);
      }

    } else {
      try {
        Class<?> clazz = Class.forName(this.schemaGenClassName);
        Constructor<?> constructor = clazz.getConstructor(new Class[] {
            ClassLoader.class, String.class, String.class,
            String.class });
        schemaGen = (SchemaGenerator) constructor
            .newInstance(new Object[] { loader, className,
                schematargetNamespace,
                schematargetNamespacePrefix });
      } catch (Exception e) {
        if (generateDocLitBare) {
          schemaGen = new DocLitBareSchemaGenerator(loader,
              className, schematargetNamespace,
              schematargetNamespacePrefix, null);
        } else {
          schemaGen = new DefaultSchemaGenerator(loader, className,
              schematargetNamespace, schematargetNamespacePrefix,
View Full Code Here

        axisService.setNamespaceMap(map);
        SchemaGenerator schemaGenerator;
        Parameter generateBare = axisService
                .getParameter(Java2WSDLConstants.DOC_LIT_BARE_PARAMETER);
        if (generateBare != null && "true".equals(generateBare.getValue())) {
            schemaGenerator = new DocLitBareSchemaGenerator(serviceClassLoader,
                                                            serviceClass.getName(),
                                                            axisService.getSchemaTargetNamespace(),
                                                            axisService
                                                                    .getSchemaTargetNamespacePrefix(),
                                                            axisService);
View Full Code Here

    axisService.setNamespaceMap(map);
    SchemaGenerator schemaGenerator;
    Parameter generateBare = axisService
        .getParameter(Java2WSDLConstants.DOC_LIT_BARE_PARAMETER);
    if (generateBare != null && "true".equals(generateBare.getValue())) {
      schemaGenerator = new DocLitBareSchemaGenerator(serviceClassLoader,
          serviceClass.trim(),
          axisService.getSchemaTargetNamespace(), axisService
              .getSchemaTargetNamespacePrefix(), axisService);
    } else {
      schemaGenerator = new DefaultSchemaGenerator(serviceClassLoader,
View Full Code Here

    try {
      Parameter generateBare = service
          .getParameter(Java2WSDLConstants.DOC_LIT_BARE_PARAMETER);
      if (generateBare != null && "true".equals(generateBare.getValue())) {
        schemaGenerator = new DocLitBareSchemaGenerator(loader,
            implClass, schemaNamespace,
            Java2WSDLConstants.SCHEMA_NAMESPACE_PRFIX, service);
      } else {
        schemaGenerator = new DefaultSchemaGenerator(loader, implClass,
            schemaNamespace,
View Full Code Here

      String className, String schematargetNamespace,
      String schematargetNamespacePrefix) throws Exception {
    SchemaGenerator schemaGen;
    if (this.schemaGenClassName == null) {
      if (generateDocLitBare) {
        schemaGen = new DocLitBareSchemaGenerator(loader, className,
            schematargetNamespace, schematargetNamespacePrefix,
            null);
      } else {
        schemaGen = new DefaultSchemaGenerator(loader, className,
            schematargetNamespace, schematargetNamespacePrefix,
            null);
      }

    } else {
      try {
        Class<?> clazz = Class.forName(this.schemaGenClassName);
        Constructor<?> constructor = clazz.getConstructor(new Class[] {
            ClassLoader.class, String.class, String.class,
            String.class });
        schemaGen = (SchemaGenerator) constructor
            .newInstance(new Object[] { loader, className,
                schematargetNamespace,
                schematargetNamespacePrefix });
      } catch (Exception e) {
        if (generateDocLitBare) {
          schemaGen = new DocLitBareSchemaGenerator(loader,
              className, schematargetNamespace,
              schematargetNamespacePrefix, null);
        } else {
          schemaGen = new DefaultSchemaGenerator(loader, className,
              schematargetNamespace, schematargetNamespacePrefix,
View Full Code Here

        axisService.setNamespaceMap(map);
        SchemaGenerator schemaGenerator;
        Parameter generateBare = axisService
                .getParameter(Java2WSDLConstants.DOC_LIT_BARE_PARAMETER);
        if (generateBare != null && "true".equals(generateBare.getValue())) {
            schemaGenerator = new DocLitBareSchemaGenerator(serviceClassLoader,
                                                            serviceClass.trim(),
                                                            axisService.getSchemaTargetNamespace(),
                                                            axisService
                                                                    .getSchemaTargetNamespacePrefix(),
                                                            axisService);
View Full Code Here

        //  server and it is needed to call it from synapse using the main sequence
        //  2) request is to be injected into  the main sequence  .i.e. http://localhost:8280
        // This method does not cause any performance issue ...
        // Proper fix should be refractoring axis2 RestUtil in a proper way
        if (dispatching) {
            RequestURIBasedDispatcher requestDispatcher = new RequestURIBasedDispatcher();
            AxisService axisService = requestDispatcher.findService(msgContext);
            if (axisService == null) {
                String defaultSvcName = NHttpConfiguration.getInstance().getStringValue(
                        "nhttp.default.service", "__SynapseService");
                axisService = msgContext.getConfigurationContext()
                        .getAxisConfiguration().getService(defaultSvcName);
View Full Code Here

                String serverName = (String)
                        messageContext.getProperty(SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);

                if(serverName != null && messageContext instanceof Axis2MessageContext) {

                    AxisConfiguration configuration = ((Axis2MessageContext)messageContext).
                            getAxis2MessageContext().
                            getConfigurationContext().getAxisConfiguration();

                    String myServerName = getAxis2ParameterValue(configuration,
                            SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);
View Full Code Here

    /**
     * Start the proxy service
     * @param synCfg the synapse configuration
     */
    public void start(SynapseConfiguration synCfg) {
        AxisConfiguration axisConfig = synCfg.getAxisConfiguration();
        if (axisConfig != null) {

            Parameter param = axisConfig.getParameter(SynapseConstants.SYNAPSE_ENV);
            if (param != null && param.getValue() instanceof SynapseEnvironment)  {
                SynapseEnvironment env = (SynapseEnvironment) param.getValue();
                if (targetInLineInSequence != null) {
                    targetInLineInSequence.init(env);
                }
                if (targetInLineOutSequence != null) {
                    targetInLineOutSequence.init(env);
                }
                if (targetInLineFaultSequence != null) {
                    targetInLineFaultSequence.init(env);
                }
            } else {
                auditWarn("Unable to find the SynapseEnvironment. " +
                    "Components of the proxy service may not be initialized");
            }

            AxisService as = axisConfig.getServiceForActivation(this.getName());
            as.setActive(true);
            axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_START, as), as);
            this.setRunning(true);
            auditInfo("Started the proxy service : " + name);
        } else {
            auditWarn("Unable to start proxy service : " + name +
                ". Couldn't access Axis configuration");
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.java2wsdl.DocLitBareSchemaGenerator

Copyright © 2018 www.massapicom. 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.