Package org.apache.axis.deployment.wsdd

Examples of org.apache.axis.deployment.wsdd.WSDDDeployment


        context.setPretty(true);
        try {
            EngineConfiguration config = engine.getConfig();

            if (config instanceof WSDDEngineConfiguration) {
                WSDDDeployment deployment =
                    ((WSDDEngineConfiguration)config).getDeployment();
                deployment.writeToContext(context);
            }
        } catch (Exception e) {
            // If the engine config isn't a FileProvider, or we have no
            // engine config for some odd reason, we'll end up here.
View Full Code Here


     */
    public void registerStream(InputStream instream) throws SAXException, ParserConfigurationException, IOException {
        try {
            Document doc=XMLUtils.newDocument(instream);
            WSDDDocument wsddDoc = new WSDDDocument(doc);
            WSDDDeployment deployment;
            deployment = getDeployment();
            if(deployment!=null) {
                wsddDoc.deploy(deployment);
            }
        } finally {
View Full Code Here

     * get deployment
     * @return
     * @throws AxisFault
     */
    private WSDDDeployment getDeployment() throws AxisFault {
        WSDDDeployment deployment;
        AxisEngine engine = getEngine();
        EngineConfiguration config = engine.getConfig();
        if (config instanceof WSDDEngineConfiguration) {
            deployment = ((WSDDEngineConfiguration) config).getDeployment();
        } else {
View Full Code Here

     */
    private void addFaultTransport(AxisClient client) {

        FileProvider config = (FileProvider) client.getConfig();

        WSDDDeployment depl = config.getDeployment();
        if (depl == null) {
            depl = new WSDDDeployment();
        }
        WSDDTransport trans = new AxisFaultWSDDTransport();
        depl.deployTransport(trans);
       
    }
View Full Code Here

     */
    public void start()
    throws Exception {
        // deploy all configured services
        for (int i = 0; i < m_descriptors.length; ++i) {
            WSDDDeployment deployment = m_engineConfig.getDeployment();
            m_descriptors[i].deploy(deployment);

            if (getLogger().isDebugEnabled()) {
                getLogger().debug(
                    "Deployed Descriptor:\n" +
View Full Code Here

     *
     * @exception Exception if an error occurs
     */
    public void stop()
    throws Exception {
        WSDDDeployment deployment = m_engineConfig.getDeployment();
        WSDDService[] services = deployment.getServices();

        // undeploy all deployed services
        for (int i = 0; i < services.length; ++i) {
            deployment.undeployService(services[i].getQName());

            if (getLogger().isDebugEnabled()) {
                getLogger().debug("Undeployed: " + services[i].toString());
            }
        }
View Full Code Here

        assertNotNull("Couldn't get handler", handler);

        InputStream is = new StringBufferInputStream(undeployDoc);
        WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(is));

        WSDDDeployment dep = provider.getDeployment();
        doc.deploy(dep);

        server.refreshGlobalOptions();
       
        handler = server.getHandler("other");
View Full Code Here

        throws Exception
    {
        // deploy all configured services
        for (int i = 0; i < m_descriptors.length; ++i)
        {
            WSDDDeployment deployment = m_engineConfig.getDeployment();
            m_descriptors[i].deploy(deployment);

            if (getLogger().isDebugEnabled())
            {
                getLogger().debug(
View Full Code Here

     * @exception Exception if an error occurs
     */
    public void stop()
        throws Exception
    {
        WSDDDeployment deployment = m_engineConfig.getDeployment();
        WSDDService[] services = deployment.getServices();

        // undeploy all deployed services
        for (int i = 0; i < services.length; ++i)
        {
            deployment.undeployService(services[i].getQName());

            if (getLogger().isDebugEnabled())
            {
                getLogger().debug("Undeployed: " + services[i].toString());
            }
View Full Code Here

     */
    public void start()
    throws Exception {
        // deploy all configured services
        for (int i = 0; i < this.m_descriptors.length; ++i) {
            WSDDDeployment deployment = this.m_engineConfig.getDeployment();
            this.m_descriptors[i].deploy(deployment);

            if (this.getLogger().isDebugEnabled()) {
                this.getLogger().debug(
                    "Deployed Descriptor:\n" +
View Full Code Here

TOP

Related Classes of org.apache.axis.deployment.wsdd.WSDDDeployment

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.