package org.jboss.test.webservice.jbws83;
import junit.framework.Test;
import org.jboss.test.webservice.WebserviceTestBase;
import javax.naming.InitialContext;
import javax.xml.rpc.Service;
public class JBWS83TestCase extends WebserviceTestBase
{
public JBWS83TestCase(String name)
{
super(name);
}
public static Test suite() throws Exception
{
return getDeploySetup(JBWS83TestCase.class, "ws4ee-jbws83.war, ws4ee-jbws83-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);
}
}