Package org.apache.axis2.dataretrieval

Examples of org.apache.axis2.dataretrieval.DataRetrievalRequest


   */
  private void getWSDL(OutputStream out, String[] serviceURL)
      throws AxisFault {
    // Retrieve WSDL using the same data retrieval path for GetMetadata
    // request.
    DataRetrievalRequest request = new DataRetrievalRequest();
    request.putDialect(DRConstants.SPEC.DIALECT_TYPE_WSDL);
    request.putOutputForm(OutputForm.INLINE_FORM);

    MessageContext context = new MessageContext();
    context.setAxisService(this);
    context.setTo(new EndpointReference(serviceURL[0]));

View Full Code Here


  private void getWSDL(OutputStream out, String[] serviceURL)
      throws AxisFault {
    // Retrieve WSDL using the same data retrieval path for GetMetadata
    // request.
    DataRetrievalRequest request = new DataRetrievalRequest();
    request.putDialect(DRConstants.SPEC.DIALECT_TYPE_WSDL);
    request.putOutputForm(OutputForm.INLINE_FORM);

    MessageContext context = new MessageContext();
    context.setAxisService(this);
    context.setTo(new EndpointReference(serviceURL[0]));
View Full Code Here

        SOAPEnvelope envelope = msgContext.getEnvelope();
        String soapNamespaceURI = envelope.getNamespace().getNamespaceURI();
        SOAPFactory factory = MexUtil.getSOAPFactory(soapNamespaceURI);
       
        Metadata metadata = new Metadata(factory, mexNamespaceValue);
    DataRetrievalRequest requestOptions = new DataRetrievalRequest();
       
        String identifier_value = null;
    // Check if Identifier element included in request
        OMElement dialectElem = aReq.getFirstChildWithName(new QName(
                mexNamespaceValue, MexConstants.SPEC.DIALECT));
       
        if (dialectElem != null)  {
        OMElement identifier = dialectElem.getFirstChildWithName(new QName(
                    mexNamespaceValue, MexConstants.SPEC.IDENTIFIER));
           
        if (identifier != null) {
          identifier_value = identifier.getText();
          if (identifier_value != null && identifier_value.length() > 0) {
            requestOptions.putIdentifier(identifier_value);
          }
        }
        }
       
    // Process the request and append MetadataSection to Metadata
    // Loop through the metadata_request_list for Dialect(s)), and setup requestOptions.
    // Basically, one requestOptions is setup for each supported outputForm for the Dialect
    // and Identifier specified in the GetMetadata request.
    int len = metadata_request_list.size();
    OutputForm[] outputforms;
   
    for (int i = 0; i < len; i++) { // metadata request

            String dialect = "";
      try {
        dialect = (String) metadata_request_list.get(i);

        requestOptions.putDialect(dialect);

        outputforms = MexUtil.determineOutputForm(dialect, axisConfigMEXParm, serviceConfigMEXParm);
        // Loop to call AxisService::getData API to retrieve data
        // for the Dialect and Identifier(if specified) in the request
        // for each
        // supported output form.
       
        for (int j = 0; j < outputforms.length; j++) { // output form
          requestOptions.putOutputForm(outputforms[j]);

          Data[] result =  msgContext.getAxisService().getData(requestOptions,
              msgContext);

          ArrayList sections = processData(result, outputforms[j], dialect,
View Full Code Here

        }
    }

    private void getWSDL(OutputStream out, String[] serviceURL) throws AxisFault {
        // Retrieve WSDL using the same data retrieval path for GetMetadata request.
        DataRetrievalRequest request = new DataRetrievalRequest();
        request.putDialect(DRConstants.SPEC.DIALECT_TYPE_WSDL);
        request.putOutputForm(OutputForm.INLINE_FORM);

        MessageContext context = new MessageContext();
        context.setAxisService(this);
        context.setTo(new EndpointReference(serviceURL[0]));
View Full Code Here

    if (policy == null) {
      try {
        MessageContext msgContext = new MessageContext();
        msgContext.setAxisService(service);

        DataRetrievalRequest request = new DataRetrievalRequest();
        request.putDialect(DRConstants.SPEC.DIALECT_TYPE_POLICY);
        request.putIdentifier(identifier);

        Data[] data = service.getData(request, msgContext);
        if (data.length != 0) {
          OMElement element = (OMElement) data[0].getData();
         
View Full Code Here

        SOAPEnvelope envelope = msgContext.getEnvelope();
        String soapNamespaceURI = envelope.getNamespace().getNamespaceURI();
        SOAPFactory factory = MexUtil.getSOAPFactory(soapNamespaceURI);
       
        Metadata metadata = new Metadata(factory, mexNamespaceValue);
    DataRetrievalRequest requestOptions = new DataRetrievalRequest();
       
        String identifier_value = null;
    // Check if Identifier element included in request
        OMElement dialectElem = aReq.getFirstChildWithName(new QName(
                mexNamespaceValue, MexConstants.SPEC.DIALECT));
       
        if (dialectElem != null)  {
        OMElement identifier = dialectElem.getFirstChildWithName(new QName(
                    mexNamespaceValue, MexConstants.SPEC.IDENTIFIER));
           
        if (identifier != null) {
          identifier_value = identifier.getText();
          if (identifier_value != null && identifier_value.length() > 0) {
            requestOptions.putIdentifier(identifier_value);
          }
        }
        }
       
    // Process the request and append MetadataSection to Metadata
    // Loop through the metadata_request_list for Dialect(s)), and setup requestOptions.
    // Basically, one requestOptions is setup for each supported outputForm for the Dialect
    // and Identifier specified in the GetMetadata request.
    int len = metadata_request_list.size();
    OutputForm[] outputforms;
   
    for (int i = 0; i < len; i++) { // metadata request

            String dialect = "";
      try {
        dialect = (String) metadata_request_list.get(i);

        requestOptions.putDialect(dialect);

        outputforms = MexUtil.determineOutputForm(dialect, axisConfigMEXParm, serviceConfigMEXParm);
        // Loop to call AxisService::getData API to retrieve data
        // for the Dialect and Identifier(if specified) in the request
        // for each
        // supported output form.
       
        for (int j = 0; j < outputforms.length; j++) { // output form
          requestOptions.putOutputForm(outputforms[j]);

          Data[] result =  msgContext.getAxisService().getData(requestOptions,
              msgContext);

          ArrayList sections = processData(result, outputforms[j], dialect,
View Full Code Here

  private void getWSDL(OutputStream out, String[] serviceURL)
      throws AxisFault {
    // Retrieve WSDL using the same data retrieval path for GetMetadata
    // request.
    DataRetrievalRequest request = new DataRetrievalRequest();
    request.putDialect(DRConstants.SPEC.DIALECT_TYPE_WSDL);
    request.putOutputForm(OutputForm.INLINE_FORM);

    MessageContext context = new MessageContext();
    context.setAxisService(this);
    context.setTo(new EndpointReference(serviceURL[0]));
View Full Code Here

    }

    private void getWSDL(OutputStream out, String[] serviceURL,
                         String servicePath) throws AxisFault {
        // Retrieve WSDL using the same data retrieval path for GetMetadata request.
        DataRetrievalRequest request = new DataRetrievalRequest();
        request.putDialect(DRConstants.SPEC.DIALECT_TYPE_WSDL);
        request.putOutputForm(OutputForm.INLINE_FORM);

        MessageContext context = new MessageContext();
        context.setAxisService(this);
        context.setTo(new EndpointReference(serviceURL[0]));
View Full Code Here

            deploymentFileData.setClassLoader(isDirectory, getClass().getClassLoader(),
                    (File) cfgCtx.getAxisConfiguration().getParameterValue(
                            Constants.Configuration.ARTIFACTS_TEMP_DIR),
                    cfgCtx.getAxisConfiguration().isChildFirstClassLoading());

            DeploymentClassLoader urlCl
                = (DeploymentClassLoader)deploymentFileData.getClassLoader();
            Thread.currentThread().setContextClassLoader(urlCl);

            // StartupFactory registration
            for (StartupFactory factory : getProviders(StartupFactory.class, urlCl)) {
View Full Code Here

    private void handleException(String message, Exception e) throws DeploymentException {
        if (log.isDebugEnabled()) {
            log.debug(message, e);
        }
        throw new DeploymentException(message, e);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.dataretrieval.DataRetrievalRequest

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.