public class ServiceInterfaceGeneratorTest
extends GenerationTestSupport
{
public void testEchoServiceIntf() throws Exception
{
Wsdl11Generator generator = new Wsdl11Generator();
generator.setWsdl(getTestFilePath("src/wsdl/echo.wsdl"));
generator.setOutputDirectory(getTestFilePath("target/test-services"));
generator.setDestinationPackage("jsr181.echo.bare");
generator.setBinding(Wsdl11Generator.XMLBEANS);
generator.setOverwrite(true);
generator.generate();
JCodeModel model = generator.getCodeModel();
assertNotNull(model._getClass("jsr181.echo.bare.EchoPortType"));
assertNotNull(model._getClass("jsr181.echo.bare.EchoClient"));
assertNotNull(model._getClass("jsr181.echo.bare.EchoImpl"));
}