Package org.apache.axis

Examples of org.apache.axis.WSDDEngineConfiguration


      "</deployment>";
  }

  private void deployWSDD(String sdoc) {
    try {
      WSDDEngineConfiguration config = (WSDDEngineConfiguration) axisServer.getConfig();
      WSDDDeployment deployment = config.getDeployment();
      WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(new ByteArrayInputStream(sdoc.getBytes())));

      doc.deploy(deployment);
      axisServer.refreshGlobalOptions();
    } catch (Exception e) {
View Full Code Here


      if (osgiSRindex < 0)
         return;
      try {
         String filter = path.substring(osgiSRindex + 8);
         String serviceName = "OSGi-SR:" + filter;
         WSDDEngineConfiguration config = (WSDDEngineConfiguration) msgContext.getAxisEngine()
          .getConfig();
         WSDDDeployment deployment = config.getDeployment();
         WSDDService ws = findService(deployment, serviceName);
         SOAPService service = null;

         if (ws == null) {
            BundleContext bContext = org.knopflerfish.bundle.axis.Activator.axisBundle;
            Object serviceObject = null;
            String sfilter = "(" + filter + ")";
            ServiceReference[] srs = bContext.getServiceReferences(null,
                                                                   sfilter);

            serviceObject = bContext.getService(srs[0]);
            String addDoc = deploymentWSDD(serviceWSDD(serviceName,
                                                       serviceObject.getClass().getName()));
            WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(new ByteArrayInputStream(addDoc.getBytes())));

            doc.deploy(deployment);
            msgContext.getAxisEngine().refreshGlobalOptions();
            deployment = config.getDeployment();
            ws = findService(deployment, serviceName);
            service = deployment.getService(ws.getQName());
//            service.setOption("scope", Scope.APPLICATION_STR);
            msgContext.getAxisEngine().getApplicationSession().set(serviceName,
                                                                   serviceObject);
View Full Code Here

TOP

Related Classes of org.apache.axis.WSDDEngineConfiguration

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.