Examples of MexClient


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
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.