You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2004/01/15 18:57:12 UTC

cvs commit: ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse WarehouseServiceTestCase.java WarehouseSoapBindingImplA.java WarehouseSoapBindingImplB.java WarehouseSoapBindingImplC.java

dims        2004/01/15 09:57:12

  Modified:    java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/retailer
                        RetailerSoapBindingImpl.java
               java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse
                        WarehouseSoapBindingImplA.java
                        WarehouseSoapBindingImplB.java
                        WarehouseSoapBindingImplC.java
  Added:       java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/configurator
                        ConfiguratorServiceTestCase.java
               java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/logging
                        LoggingFacilityServiceTestCase.java
               java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/manufacturer
                        ManufacturerServiceTestCase.java
               java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/retailer
                        RetailerServiceTestCase.java
               java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse
                        WarehouseServiceTestCase.java
  Log:
  - Integrate the ws-i sample into the regular build / test environment
  - remove runtime generated files
  - fix problem in manufacturer.wsdl
  - remove the old ant-build.xml file in build directory
  - add test cases for the services (Many more RUNTIME WSDL's are broken)
  
  Revision  Changes    Path
  1.1                  ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/configurator/ConfiguratorServiceTestCase.java
  
  Index: ConfiguratorServiceTestCase.java
  ===================================================================
  /**
   * ConfiguratorServiceTestCase.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.
   */
  
  package org.apache.axis.wsi.scm.configurator;
  
  public class ConfiguratorServiceTestCase extends junit.framework.TestCase {
      public ConfiguratorServiceTestCase(java.lang.String name) {
          super(name);
      }
  
      /* FIXME: RUNTIME WSDL broken.
      public void testConfiguratorPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.configurator.ConfiguratorServiceLocator().getConfiguratorPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.configurator.ConfiguratorServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test1ConfiguratorPortGetConfigurationOptions() throws Exception {
          org.apache.axis.wsi.scm.configurator.ConfiguratorBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.configurator.ConfiguratorBindingStub)
                            new org.apache.axis.wsi.scm.configurator.ConfiguratorServiceLocator().getConfiguratorPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              org.apache.axis.wsi.scm.configurator.ConfigOptionsType value = null;
              value = binding.getConfigurationOptions(true);
          }
          catch (org.apache.axis.wsi.scm.configurator.ConfiguratorFailedFault e1) {
              throw new junit.framework.AssertionFailedError("configuratorFailedFault Exception caught: " + e1);
          }
              // TBD - validate results
      }
  
  }
  
  
  
  1.1                  ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/logging/LoggingFacilityServiceTestCase.java
  
  Index: LoggingFacilityServiceTestCase.java
  ===================================================================
  /**
   * LoggingFacilityServiceTestCase.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.
   */
  
  package org.apache.axis.wsi.scm.logging;
  
  public class LoggingFacilityServiceTestCase extends junit.framework.TestCase {
      public LoggingFacilityServiceTestCase(java.lang.String name) {
          super(name);
      }
  
      /* FIXME: RUNTIME WSDL broken.
      public void testLoggingFacilityPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getLoggingFacilityPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test1LoggingFacilityPortLogEvent() throws Exception {
          org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub)
                            new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getLoggingFacilityPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          binding.logEvent(new org.apache.axis.wsi.scm.logging.LogEventRequestType());
          // TBD - validate results
      }
  
      public void test2LoggingFacilityPortGetEvents() throws Exception {
          org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.logging.LoggingFacilitySoapBindingStub)
                            new org.apache.axis.wsi.scm.logging.LoggingFacilityServiceLocator().getLoggingFacilityPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              org.apache.axis.wsi.scm.logging.GetEventsResponseType value = null;
              value = binding.getEvents(new org.apache.axis.wsi.scm.logging.GetEventsRequestType());
          }
          catch (org.apache.axis.wsi.scm.logging.GetEventsFaultType e1) {
              throw new junit.framework.AssertionFailedError("RepositoryMissingFault Exception caught: " + e1);
          }
              // TBD - validate results
      }
  
  }
  
  
  
  1.1                  ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/manufacturer/ManufacturerServiceTestCase.java
  
  Index: ManufacturerServiceTestCase.java
  ===================================================================
  /**
   * ManufacturerServiceTestCase.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.
   */
  
  package org.apache.axis.wsi.scm.manufacturer;
  
  public class ManufacturerServiceTestCase extends junit.framework.TestCase {
      public ManufacturerServiceTestCase(java.lang.String name) {
          super(name);
      }
  
      /* FIXME: RUNTIME WSDL broken.
      public void testManufacturerCPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getManufacturerCPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test1ManufacturerCPortSubmitPO() throws Exception {
          org.apache.axis.wsi.scm.manufacturer.ManufacturerSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.manufacturer.ManufacturerSoapBindingStub)
                            new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getManufacturerCPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              boolean value = false;
              value = binding.submitPO(new org.apache.axis.wsi.scm.manufacturer.po.PurchOrdType(), new org.apache.axis.wsi.scm.configuration.ConfigurationType(), new org.apache.axis.wsi.scm.manufacturer.callback.StartHeaderType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
          catch (org.apache.axis.wsi.scm.manufacturer.po.SubmitPOFaultType e2) {
              throw new junit.framework.AssertionFailedError("POFault Exception caught: " + e2);
          }
              // TBD - validate results
      }
  
      /* FIXME: RUNTIME WSDL broken.
      public void testManufacturerBPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getManufacturerBPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test2ManufacturerBPortSubmitPO() throws Exception {
          org.apache.axis.wsi.scm.manufacturer.ManufacturerSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.manufacturer.ManufacturerSoapBindingStub)
                            new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getManufacturerBPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              boolean value = false;
              value = binding.submitPO(new org.apache.axis.wsi.scm.manufacturer.po.PurchOrdType(), new org.apache.axis.wsi.scm.configuration.ConfigurationType(), new org.apache.axis.wsi.scm.manufacturer.callback.StartHeaderType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
          catch (org.apache.axis.wsi.scm.manufacturer.po.SubmitPOFaultType e2) {
              throw new junit.framework.AssertionFailedError("POFault Exception caught: " + e2);
          }
              // TBD - validate results
      }
  
      /* FIXME: RUNTIME WSDL broken.
      public void testManufacturerAPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getManufacturerAPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test3ManufacturerAPortSubmitPO() throws Exception {
          org.apache.axis.wsi.scm.manufacturer.ManufacturerSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.manufacturer.ManufacturerSoapBindingStub)
                            new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getManufacturerAPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              boolean value = false;
              value = binding.submitPO(new org.apache.axis.wsi.scm.manufacturer.po.PurchOrdType(), new org.apache.axis.wsi.scm.configuration.ConfigurationType(), new org.apache.axis.wsi.scm.manufacturer.callback.StartHeaderType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
          catch (org.apache.axis.wsi.scm.manufacturer.po.SubmitPOFaultType e2) {
              throw new junit.framework.AssertionFailedError("POFault Exception caught: " + e2);
          }
              // TBD - validate results
      }
  
  
      /* FIXME: RUNTIME WSDL broken.
      public void testWarehouseCallbackPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getWarehouseCallbackPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test4WarehouseCallbackPortSubmitSN() throws Exception {
          org.apache.axis.wsi.scm.manufacturer.WarehouseCallbackSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.manufacturer.WarehouseCallbackSoapBindingStub)
                            new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getWarehouseCallbackPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              boolean value = false;
              value = binding.submitSN(new org.apache.axis.wsi.scm.manufacturer.sn.ShipmentNoticeType(), new org.apache.axis.wsi.scm.configuration.ConfigurationType(), new org.apache.axis.wsi.scm.manufacturer.callback.CallbackHeaderType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
          catch (org.apache.axis.wsi.scm.manufacturer.callback.CallbackFaultType e2) {
              throw new junit.framework.AssertionFailedError("CallbackFault Exception caught: " + e2);
          }
              // TBD - validate results
      }
  
      public void test5WarehouseCallbackPortErrorPO() throws Exception {
          org.apache.axis.wsi.scm.manufacturer.WarehouseCallbackSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.manufacturer.WarehouseCallbackSoapBindingStub)
                            new org.apache.axis.wsi.scm.manufacturer.ManufacturerServiceLocator().getWarehouseCallbackPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              boolean value = false;
              value = binding.errorPO(new org.apache.axis.wsi.scm.manufacturer.po.SubmitPOFaultType(), new org.apache.axis.wsi.scm.configuration.ConfigurationType(), new org.apache.axis.wsi.scm.manufacturer.callback.CallbackHeaderType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
          catch (org.apache.axis.wsi.scm.manufacturer.callback.CallbackFaultType e2) {
              throw new junit.framework.AssertionFailedError("CallbackFault Exception caught: " + e2);
          }
              // TBD - validate results
      }
  
  }
  
  
  
  1.2       +10 -11    ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/retailer/RetailerSoapBindingImpl.java
  
  Index: RetailerSoapBindingImpl.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/retailer/RetailerSoapBindingImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RetailerSoapBindingImpl.java	13 Dec 2003 07:53:47 -0000	1.1
  +++ RetailerSoapBindingImpl.java	15 Jan 2004 17:57:12 -0000	1.2
  @@ -48,7 +48,6 @@
   
   import org.apache.axis.wsi.scm.retailer.catalog.CatalogItem;
   import org.apache.axis.wsi.scm.retailer.catalog.CatalogType;
  -import org.apache.axis.wsi.scm.retailer.catalog.ProductNumber;
   
   /**
    * Implementation of RetailerPortType
  @@ -83,7 +82,7 @@
           items[0] = new CatalogItem();
           items[0].setName("TV, Brand1");
           items[0].setDescription("24in, Color, Advanced Velocity Scan Modulation, Stereo");
  -        items[0].setProductNumber(new ProductNumber("605001"));
  +        items[0].setProductNumber(new java.math.BigInteger("605001"));
           items[0].setCategory("TV");
           items[0].setBrand("Brand1");
           items[0].setPrice((new BigDecimal(299.95)).setScale(2, BigDecimal.ROUND_HALF_UP));
  @@ -91,7 +90,7 @@
           items[1] = new CatalogItem();
           items[1].setName("TV, Brand2");
           items[1].setDescription("32in, Super Slim Flat Panel Plasma");
  -        items[1].setProductNumber(new ProductNumber("605002"));
  +        items[1].setProductNumber(new java.math.BigInteger("605002"));
           items[1].setCategory("TV");
           items[1].setBrand("Brand2");
           items[1].setPrice((new BigDecimal(1499.99)).setScale(2, BigDecimal.ROUND_HALF_UP));
  @@ -99,7 +98,7 @@
           items[2] = new CatalogItem();
           items[2].setName("TV, Brand3");
           items[2].setDescription("50in, Plasma Display");
  -        items[2].setProductNumber(new ProductNumber("605003"));
  +        items[2].setProductNumber(new java.math.BigInteger("605003"));
           items[2].setCategory("TV");
           items[2].setBrand("Brand3");
           items[2].setPrice(new BigDecimal("5725.98"));
  @@ -107,7 +106,7 @@
           items[3] = new CatalogItem();
           items[3].setName("Video, Brand1");
           items[3].setDescription("S-VHS");
  -        items[3].setProductNumber(new ProductNumber("605004"));
  +        items[3].setProductNumber(new java.math.BigInteger("605004"));
           items[3].setCategory("Video");
           items[3].setBrand("Brand1");
           items[3].setPrice(new BigDecimal("199.95"));
  @@ -115,7 +114,7 @@
           items[4] = new CatalogItem();
           items[4].setName("Video, Brand2");
           items[4].setDescription("HiFi, S-VHS");
  -        items[4].setProductNumber(new ProductNumber("605005"));
  +        items[4].setProductNumber(new java.math.BigInteger("605005"));
           items[4].setCategory("Video");
           items[4].setBrand("Brand2");
           items[4].setPrice(new BigDecimal("400.00"));
  @@ -123,7 +122,7 @@
           items[5] = new CatalogItem();
           items[5].setName("Video, Brand3");
           items[5].setDescription("s-vhs, mindv");
  -        items[5].setProductNumber(new ProductNumber("605006"));
  +        items[5].setProductNumber(new java.math.BigInteger("605006"));
           items[5].setCategory("Video");
           items[5].setBrand("Brand3");
           items[5].setPrice(new BigDecimal("949.99"));
  @@ -131,7 +130,7 @@
           items[6] = new CatalogItem();
           items[6].setName("DVD, Brand1");
           items[6].setDescription("DVD-Player W/Built-In Dolby Digital Decoder");
  -        items[6].setProductNumber(new ProductNumber("605007"));
  +        items[6].setProductNumber(new java.math.BigInteger("605007"));
           items[6].setCategory("DVD");
           items[6].setBrand("Brand1");
           items[6].setPrice(new BigDecimal("100.00"));
  @@ -140,7 +139,7 @@
           items[7].setName("DVD, Brand2");
           items[7].setDescription(
               "Plays DVD-Video discs, CDs, stereo and multi-channel SACDs, and audio CD-Rs & CD-RWs, 27MHz/10-bit video DAC, ");
  -        items[7].setProductNumber(new ProductNumber("605008"));
  +        items[7].setProductNumber(new java.math.BigInteger("605008"));
           items[7].setCategory("DVD");
           items[7].setBrand("Brand2");
           items[7].setPrice(new BigDecimal("200.00"));
  @@ -149,7 +148,7 @@
           items[8].setName("DVD, Brand3");
           items[8].setDescription(
               "DVD Player with SmoothSlow forward/reverse; Digital Video Enhancer; DVD/CD Text; Custom Parental Control (20-disc); Digital Cinema Sound modes");
  -        items[8].setProductNumber(new ProductNumber("605009"));
  +        items[8].setProductNumber(new java.math.BigInteger("605009"));
           items[8].setCategory("DVD");
           items[8].setBrand("Brand3");
           items[8].setPrice(new BigDecimal("250.00"));
  @@ -159,7 +158,7 @@
           items[9].setName("TV, Brand4");
           items[9].setDescription(
               "Designated invalid product code that is allowed to appear in the catalog, but is unable to be ordered");
  -        items[9].setProductNumber(new ProductNumber("605010"));
  +        items[9].setProductNumber(new java.math.BigInteger("605010"));
           items[9].setCategory("TV");
           items[9].setBrand("Brand4");
           items[9].setPrice(new BigDecimal("149.99"));
  
  
  
  1.1                  ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/retailer/RetailerServiceTestCase.java
  
  Index: RetailerServiceTestCase.java
  ===================================================================
  /**
   * RetailerServiceTestCase.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.
   */
  
  package org.apache.axis.wsi.scm.retailer;
  
  public class RetailerServiceTestCase extends junit.framework.TestCase {
      public RetailerServiceTestCase(java.lang.String name) {
          super(name);
      }
  
      /* FIXME: RUNTIME WSDL broken.
      public void testRetailerPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.retailer.RetailerServiceLocator().getRetailerPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.retailer.RetailerServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test1RetailerPortGetCatalog() throws Exception {
          org.apache.axis.wsi.scm.retailer.RetailerSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.retailer.RetailerSoapBindingStub)
                            new org.apache.axis.wsi.scm.retailer.RetailerServiceLocator().getRetailerPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          org.apache.axis.wsi.scm.retailer.catalog.CatalogType catalog = null;
          catalog = binding.getCatalog();
          // TBD - validate results
  
          assertNotNull("catalog is null", catalog);
  
          org.apache.axis.wsi.scm.retailer.catalog.CatalogItem[] items = catalog.getItem();
  
          assertTrue(items.length > 0);
  
          for (int i = 0; i < items.length; i++) {
              System.out.println("------------------");
              System.out.println(items[i].getName());
              System.out.println(items[i].getBrand());
          }
      }
  
      public void test2RetailerPortSubmitOrder() throws Exception {
          org.apache.axis.wsi.scm.retailer.RetailerSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.retailer.RetailerSoapBindingStub)
                            new org.apache.axis.wsi.scm.retailer.RetailerServiceLocator().getRetailerPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              org.apache.axis.wsi.scm.retailer.order.PartsOrderResponseType value = null;
              value = binding.submitOrder(new org.apache.axis.wsi.scm.retailer.order.PartsOrderType(), new org.apache.axis.wsi.scm.retailer.order.CustomerDetailsType(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
          }
          catch (org.apache.axis.wsi.scm.retailer.order.InvalidProductCodeType e1) {
              throw new junit.framework.AssertionFailedError("InvalidProductCode Exception caught: " + e1);
          }
          catch (org.apache.axis.wsi.scm.retailer.BadOrderFault e2) {
              throw new junit.framework.AssertionFailedError("BadOrder Exception caught: " + e2);
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e3) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e3);
          }
              // TBD - validate results
      }
  
  }
  
  
  
  1.2       +1 -1      ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse/WarehouseSoapBindingImplA.java
  
  Index: WarehouseSoapBindingImplA.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse/WarehouseSoapBindingImplA.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WarehouseSoapBindingImplA.java	13 Dec 2003 07:53:47 -0000	1.1
  +++ WarehouseSoapBindingImplA.java	15 Jan 2004 17:57:12 -0000	1.2
  @@ -8,7 +8,7 @@
   package org.apache.axis.wsi.scm.warehouse;
   
   public class WarehouseSoapBindingImplA implements org.apache.axis.wsi.scm.warehouse.WarehouseShipmentsPortType{
  -    public org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList shipGoods(org.apache.axis.wsi.scm.warehouse.ItemList itemList, org.apache.axis.wsi.scm.warehouse.CustomerReferenceType customer, org.apache.axis.wsi.scm.configuration.ConfigurationType configurationHeader) throws java.rmi.RemoteException, org.apache.axis.wsi.scm.configuration.ConfigurationFaultType {
  +    public org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList shipGoods(org.apache.axis.wsi.scm.warehouse.ItemList itemList, org.apache.axis.types.NormalizedString customer, org.apache.axis.wsi.scm.configuration.ConfigurationType configurationHeader) throws java.rmi.RemoteException, org.apache.axis.wsi.scm.configuration.ConfigurationFaultType {
           return null;
       }
   
  
  
  
  1.2       +1 -1      ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse/WarehouseSoapBindingImplB.java
  
  Index: WarehouseSoapBindingImplB.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse/WarehouseSoapBindingImplB.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WarehouseSoapBindingImplB.java	13 Dec 2003 07:53:47 -0000	1.1
  +++ WarehouseSoapBindingImplB.java	15 Jan 2004 17:57:12 -0000	1.2
  @@ -8,7 +8,7 @@
   package org.apache.axis.wsi.scm.warehouse;
   
   public class WarehouseSoapBindingImplB implements org.apache.axis.wsi.scm.warehouse.WarehouseShipmentsPortType{
  -    public org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList shipGoods(org.apache.axis.wsi.scm.warehouse.ItemList itemList, org.apache.axis.wsi.scm.warehouse.CustomerReferenceType customer, org.apache.axis.wsi.scm.configuration.ConfigurationType configurationHeader) throws java.rmi.RemoteException, org.apache.axis.wsi.scm.configuration.ConfigurationFaultType {
  +    public org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList shipGoods(org.apache.axis.wsi.scm.warehouse.ItemList itemList, org.apache.axis.types.NormalizedString customer, org.apache.axis.wsi.scm.configuration.ConfigurationType configurationHeader) throws java.rmi.RemoteException, org.apache.axis.wsi.scm.configuration.ConfigurationFaultType {
           return null;
       }
   
  
  
  
  1.2       +1 -1      ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse/WarehouseSoapBindingImplC.java
  
  Index: WarehouseSoapBindingImplC.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse/WarehouseSoapBindingImplC.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WarehouseSoapBindingImplC.java	13 Dec 2003 07:53:47 -0000	1.1
  +++ WarehouseSoapBindingImplC.java	15 Jan 2004 17:57:12 -0000	1.2
  @@ -8,7 +8,7 @@
   package org.apache.axis.wsi.scm.warehouse;
   
   public class WarehouseSoapBindingImplC implements org.apache.axis.wsi.scm.warehouse.WarehouseShipmentsPortType{
  -    public org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList shipGoods(org.apache.axis.wsi.scm.warehouse.ItemList itemList, org.apache.axis.wsi.scm.warehouse.CustomerReferenceType customer, org.apache.axis.wsi.scm.configuration.ConfigurationType configurationHeader) throws java.rmi.RemoteException, org.apache.axis.wsi.scm.configuration.ConfigurationFaultType {
  +    public org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList shipGoods(org.apache.axis.wsi.scm.warehouse.ItemList itemList, org.apache.axis.types.NormalizedString customer, org.apache.axis.wsi.scm.configuration.ConfigurationType configurationHeader) throws java.rmi.RemoteException, org.apache.axis.wsi.scm.configuration.ConfigurationFaultType {
           return null;
       }
   
  
  
  
  1.1                  ws-axis/java/samples/ws-i/scm/source/java/implemented/org/apache/axis/wsi/scm/warehouse/WarehouseServiceTestCase.java
  
  Index: WarehouseServiceTestCase.java
  ===================================================================
  /**
   * WarehouseServiceTestCase.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.
   */
  
  package org.apache.axis.wsi.scm.warehouse;
  
  public class WarehouseServiceTestCase extends junit.framework.TestCase {
      public WarehouseServiceTestCase(java.lang.String name) {
          super(name);
      }
  
      /* FIXME: RUNTIME WSDL broken.
      public void testWarehouseBPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseBPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test1WarehouseBPortShipGoods() throws Exception {
          org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub)
                            new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseBPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null;
              value = binding.shipGoods(new org.apache.axis.wsi.scm.warehouse.ItemList(), new org.apache.axis.types.NormalizedString(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
              // TBD - validate results
      }
  
      /*
      public void testWarehouseCPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseCPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */
  
      public void test2WarehouseCPortShipGoods() throws Exception {
          org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub)
                            new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseCPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null;
              value = binding.shipGoods(new org.apache.axis.wsi.scm.warehouse.ItemList(), new org.apache.axis.types.NormalizedString(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
              // TBD - validate results
      }
  
      /*
      public void testWarehouseAPortWSDL() throws Exception {
          javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
          java.net.URL url = new java.net.URL(new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseAPortAddress() + "?WSDL");
          javax.xml.rpc.Service service = serviceFactory.createService(url, new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getServiceName());
          assertTrue(service != null);
      }
      */    
  
  
      public void test3WarehouseAPortShipGoods() throws Exception {
          org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding;
          try {
              binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub)
                            new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseAPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              if(jre.getLinkedCause()!=null)
                  jre.getLinkedCause().printStackTrace();
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
          }
          assertNotNull("binding is null", binding);
  
          // Time out after a minute
          binding.setTimeout(60000);
  
          // Test operation
          try {
              org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null;
              value = binding.shipGoods(new org.apache.axis.wsi.scm.warehouse.ItemList(), new org.apache.axis.types.NormalizedString(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
          }
          catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
              throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
          }
              // TBD - validate results
      }
  
  }