Examples of MexClient


Examples of org.apache.axis2.dataretrieval.client.MexClient

            metadata.fromOM(mex.getFirstElement());
           
            MetadataSection[] metadataSections = metadata.getMetadatSections();
            MetadataReference reference = metadataSections[0].getMetadataReference();
           
            MexClient serviceClient = new MexClient();

            Options options = serviceClient.getOptions();
            options.setTo(reference.getEPR());
            options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
           
            OMElement request = serviceClient.setupGetMetadataRequest(
                                                        MexConstants.SPEC.DIALECT_TYPE_POLICY,null);
            OMElement result = serviceClient.sendReceive(request);
           
            metadata.fromOM(result);
            MetadataSection[] mexSecs =  metadata.getMetadataSection(MexConstants.SPEC.DIALECT_TYPE_POLICY, null);
            OMElement policyElement = (OMElement) mexSecs[0].getInlineData();
           
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

            metadata.fromOM(mex.getFirstElement());
           
            MetadataSection[] metadataSections = metadata.getMetadatSections();
            MetadataReference reference = metadataSections[0].getMetadataReference();
           
            MexClient serviceClient = new MexClient();

            Options options = serviceClient.getOptions();
            options.setTo(reference.getEPR());
            options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
           
            OMElement request = serviceClient.setupGetMetadataRequest(
                                                        MexConstants.SPEC.DIALECT_TYPE_POLICY,null);
            OMElement result = serviceClient.sendReceive(request);
           
            metadata.fromOM(result);
            MetadataSection[] mexSecs =  metadata.getMetadataSection(MexConstants.SPEC.DIALECT_TYPE_POLICY, null);
            OMElement policyElement = (OMElement) mexSecs[0].getInlineData();
           
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

  public static void main(String[] args) {
    try {
      System.out
          .println(Calendar.getInstance().getTime() + " Test getMetadata for " + targetEPR.getAddress());
      MexClient serviceClient = new MexClient();
      Options options = new Options();
      serviceClient.setOptions(options);
          options.setTo(targetEPR);
          options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
         
          String identifier = null;   
        OMElement method = serviceClient.setupGetMetadataRequest(DRConstants.SPEC.DIALECT_TYPE_WSDL, identifier);
           
            OMElement result = serviceClient.sendReceive(method);
    
      System.out.println(result);

    } catch (AxisFault axisFault) {
      axisFault.printStackTrace();
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

  System.out
      .println("Test getMetadata for " + targetEPR.getAddress());
  System.out
  .println("Service WSDL specific DataLocator was configured");

  MexClient serviceClient = new MexClient();
  Options options = new Options();
  options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
    options.setTo(targetEPR);
   
  serviceClient.setOptions(options);
    String identifier =  null;  
    OMElement method = serviceClient.setupGetMetadataRequest(DRConstants.SPEC.DIALECT_TYPE_WSDL, identifier);
   
    OMElement result = serviceClient.sendReceive(method);

  System.out.println(result);

} catch (AxisFault axisFault) {
  axisFault.printStackTrace();
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

    public static void main(String[] args) {
        try {
            System.out.println("Test getMetadata for " + targetEPR.getAddress());
        
            MexClient serviceClient =  new MexClient();
            Options options = new Options();
            serviceClient.setOptions(options);
           
            options.setTo(targetEPR);
            options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
           
            System.out.println ("No DataLocator configured! Used AxisDataLocator");
           
            OMElement method = serviceClient.setupGetMetadataRequest(null, null);
             
            OMElement result = serviceClient.sendReceive(method);
            System.out.println(result);
            StringWriter writer = new StringWriter();
            try {
        result.serialize(XMLOutputFactory.newInstance()
              .createXMLStreamWriter(writer));
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

            metadata.fromOM(mex.getFirstElement());
           
            MetadataSection[] metadataSections = metadata.getMetadatSections();
            MetadataReference reference = metadataSections[0].getMetadataReference();
           
            MexClient serviceClient = new MexClient();

            Options options = serviceClient.getOptions();
            options.setTo(reference.getEPR());
            options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
           
            OMElement request = serviceClient.setupGetMetadataRequest(
                                                        MexConstants.SPEC.DIALECT_TYPE_POLICY,null);
            OMElement result = serviceClient.sendReceive(request);
           
            metadata.fromOM(result);
            MetadataSection[] mexSecs =  metadata.getMetadataSection(MexConstants.SPEC.DIALECT_TYPE_POLICY, null);
            OMElement policyElement = (OMElement) mexSecs[0].getInlineData();
           
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

            metadata.fromOM(mex.getFirstElement());
           
            MetadataSection[] metadataSections = metadata.getMetadatSections();
            MetadataReference reference = metadataSections[0].getMetadataReference();
           
            MexClient serviceClient = new MexClient();

            Options options = serviceClient.getOptions();
            options.setTo(reference.getEPR());
            options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
           
            OMElement request = serviceClient.setupGetMetadataRequest(
                                                        MexConstants.SPEC.DIALECT_TYPE_POLICY,null);
            OMElement result = serviceClient.sendReceive(request);
           
            metadata.fromOM(result);
            MetadataSection[] mexSecs =  metadata.getMetadataSection(MexConstants.SPEC.DIALECT_TYPE_POLICY, null);
            OMElement policyElement = (OMElement) mexSecs[0].getInlineData();
           
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

    public static void main(String[] args) {
        try {
            System.out.println("Test getMetadata for " + targetEPR.getAddress());
        
            MexClient serviceClient =  new MexClient();
            Options options = new Options();
            serviceClient.setOptions(options);
           
            options.setTo(targetEPR);
            options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
           
            System.out.println ("No DataLocator configured! Used AxisDataLocator");
           
            OMElement method = serviceClient.setupGetMetadataRequest(null, null);
             
            OMElement result = serviceClient.sendReceive(method);
            System.out.println(result);
            StringWriter writer = new StringWriter();
            try {
        result.serialize(XMLOutputFactory.newInstance()
              .createXMLStreamWriter(writer));
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

            metadata.fromOM(mex.getFirstElement());
           
            MetadataSection[] metadataSections = metadata.getMetadatSections();
            MetadataReference reference = metadataSections[0].getMetadataReference();
           
            MexClient serviceClient = new MexClient();

            Options options = serviceClient.getOptions();
            options.setTo(reference.getEPR());
            options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
           
            OMElement request = serviceClient.setupGetMetadataRequest(
                                                        MexConstants.SPEC.DIALECT_TYPE_POLICY,null);
            OMElement result = serviceClient.sendReceive(request);
           
            metadata.fromOM(result);
            MetadataSection[] mexSecs =  metadata.getMetadataSection(MexConstants.SPEC.DIALECT_TYPE_POLICY, null);
            OMElement policyElement = (OMElement) mexSecs[0].getInlineData();
           
View Full Code Here

Examples of org.apache.axis2.dataretrieval.client.MexClient

  public static void main(String[] args) {
    try {
      System.out
          .println(Calendar.getInstance().getTime() + " Test getMetadata for " + targetEPR.getAddress());
      MexClient serviceClient = new MexClient();
      Options options = new Options();
      serviceClient.setOptions(options);
          options.setTo(targetEPR);
          options.setAction(DRConstants.SPEC.Actions.GET_METADATA_REQUEST);
         
          String identifier = null;   
        OMElement method = serviceClient.setupGetMetadataRequest(DRConstants.SPEC.DIALECT_TYPE_WSDL, identifier);
           
            OMElement result = serviceClient.sendReceive(method);
    
      System.out.println(result);

    } catch (AxisFault axisFault) {
      axisFault.printStackTrace();
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.