Package org.apache.axis2.jaxws.sample

Source Code of org.apache.axis2.jaxws.sample.DocLitBareMinTests

/**
*
*/
package org.apache.axis2.jaxws.sample;

import javax.xml.ws.BindingProvider;
import javax.xml.ws.Holder;

import org.apache.axis2.jaxws.sample.doclitbaremin.sei.BareDocLitMinService;
import org.apache.axis2.jaxws.sample.doclitbaremin.sei.DocLitBareMinPortType;
import org.apache.axis2.jaxws.TestLogger;

import junit.framework.TestCase;


public class DocLitBareMinTests extends TestCase {
 
    public void testEcho() throws Exception {
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
       
       
        BareDocLitMinService service = new BareDocLitMinService();
        DocLitBareMinPortType proxy = service.getBareDocLitMinPort();
        BindingProvider p = (BindingProvider) proxy;
        p.getRequestContext().put(
                BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
        p.getRequestContext().put(
                BindingProvider.SOAPACTION_URI_PROPERTY, "echo");
        String request = "dlroW elloH";
        String response = proxy.echo(request);
       
        assertTrue(request.equals(response));
       
    }
}
TOP

Related Classes of org.apache.axis2.jaxws.sample.DocLitBareMinTests

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.