FileDocCategorySizeDatePackage
ManufacturerServiceTestCase.javaAPI DocApache Axis 1.410298Sat Apr 22 18:56:52 BST 2006org.apache.axis.wsi.scm.manufacturer

ManufacturerServiceTestCase

public class ManufacturerServiceTestCase extends TestCase
ManufacturerServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public ManufacturerServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1ManufacturerCPortSubmitPO()

        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
    
public voidtest2ManufacturerBPortSubmitPO()

        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
    
public voidtest3ManufacturerAPortSubmitPO()

        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
    
public voidtest4WarehouseCallbackPortSubmitSN()

        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 voidtest5WarehouseCallbackPortErrorPO()

        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