The code is attached. I am trying to use the proxy example from the AXIS samples to create a proxy service. For security reason I cannot expose the final end point of the service in the WSDL. So I have to come up with another solution using JAVA.
Thanks for the help.
 



Find local movie times and trailers on Yahoo! Movies.
/*
 * Created on 27/05/2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.ndn.ws;

import org.apache.axis.AxisFault;
import org.apache.axis.message.SOAPEnvelope;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.PropertyConfigurator;

/**
 * @author Administrator
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class NDNGateway {
    /**
     * Logger for this class
     */
    private static final Log logger = LogFactory.getLog(NDNGateway.class);

    private static final String spacerText = 
"=========================================";

    private static Configuration config;

    private static void loadConfig() {
        try {
            Configuration config = new PropertiesConfiguration(
                    "NDNGateway.properties");
            PropertyConfigurator.configure(config.getString("logfile"));
            if (logger.isDebugEnabled()) {
                logger.debug(spacerText);
                logger
                        .debug("Debugging Configuration for NDNGateway has been 
loaded");
                logger.debug(spacerText);
            }
            org.apache.xml.security.Init.init();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void NDNGatewayService(SOAPEnvelope inEnvelope,
            SOAPEnvelope outEnvelope) throws AxisFault {
        loadConfig();
        if (logger.isDebugEnabled()) {
            logger.debug(spacerText);
            logger.debug("NDNGateWayService");
            logger.debug(spacerText);
        }

    }
    /*
     * (non-Javadoc)
     * 
     * @see org.apache.axis.Handler#invoke(org.apache.axis.MessageContext)
     */
}

Reply via email to