@Test public void serviceGeneratorWSDLWithImportReferringToHttpLink() throws Exception { // Initialize testing paths MavenTestingUtils.ensureEmpty(testingdir.getDir()); File wsdl = TestResourceUtil.getResource( "org/ebayopensource/turmeric/test/tools/codegen/data/WsdlWith_HTTP_Import.wsdl"); File srcDir = getTestSrcDir(); File destDir = getTestDestDir(); File binDir = testingdir.getFile("bin"); // Setup arguments // @formatter:off String args[] = new String[] { "-servicename", "CalcService", "-wsdl", wsdl.getAbsolutePath(), "-gentype", "All", "-src", srcDir.getAbsolutePath(), "-dest", destDir.getAbsolutePath(), "-namespace", "http://www.ebay.com/soaframework/service/calc", "-scv", "1.0.0", "-gip", "org.ebayopensource.test.soaframework.tools.codegen", "-bin", binDir.getAbsolutePath() }; // @formatter:on performDirectCodeGen(args); }
@Test public void ebayCSSvcCSUpdateMACActivityAddAttachmentsWSDL() throws Exception { // Initialize testing paths testingdir.ensureEmpty(); File wsdl = TestResourceUtil.getResource( "org/ebayopensource/turmeric/test/tools/codegen/data/ebayCSSvc-CSUpdateMACActivityAddAttachments.wsdl"); File srcDir = getTestSrcDir(); File destDir = getTestDestDir(); File binDir = testingdir.getFile("bin"); // Setup arguments // @formatter:off String args[] = new String[] { "-servicename", "eBayCSAPIInterfaceService", "-wsdl", wsdl.getAbsolutePath(), "-gentype", "All", "-src", srcDir.getAbsolutePath(), "-dest", destDir.getAbsolutePath(), "-namespace", SOAConstants.DEFAULT_SERVICE_NAMESPACE, "-scv", "1.0.0", "-gip", "org.ebayopensource.test.soaframework.service", "-bin", binDir.getAbsolutePath(), "-cn", "eBayCSAPIInterfaceService", "-icsi", "-gin", "eBayCSAPIInterfaceService" }; // @formatter:on performDirectCodeGen(args); }