package org.jboss.test.webservice.jbws71;
import junit.framework.Test;
import org.jboss.test.webservice.WebserviceTestBase;
import javax.naming.InitialContext;
import javax.xml.rpc.Service;
public class JBWS71TestCase extends WebserviceTestBase
{
public JBWS71TestCase(String name)
{
super(name);
}
public static Test suite() throws Exception
{
return getDeploySetup(JBWS71TestCase.class, "ws4ee-jbws71.war, ws4ee-jbws71-client.jar");
}
public void testEndpoint() throws Exception
{
InitialContext iniCtx = getClientContext();
Service service = (Service)iniCtx.lookup("java:comp/env/service/HelloService");
Hello hello = (Hello)service.getPort(Hello.class);
UserType in0 = new UserType("Kermit");
UserType retObj = hello.echoUserType(in0);
assertEquals(in0, retObj);
}
}