dims        2002/06/26 14:44:22

  Added:       java/test/wsdl/echo ComplexEchoServiceSoapBindingImpl.java
                        ComplexEchoServiceTestCase.java
  Log:
  Forgot additional files for 10247 testcase.
  
  Revision  Changes    Path
  1.1                  
xml-axis/java/test/wsdl/echo/ComplexEchoServiceSoapBindingImpl.java
  
  Index: ComplexEchoServiceSoapBindingImpl.java
  ===================================================================
  /**
   * ComplexEchoServiceSoapBindingImpl.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis WSDL2Java emitter.
   */
  
  package test.wsdl.echo;
  
  public class ComplexEchoServiceSoapBindingImpl implements Echo{
      public void echo(test.wsdl.echo.holders.MyComplexTypeHolder myElement) throws 
java.rmi.RemoteException {
          myElement.value.setSimpleItem("MY_SIMPLE_ITEM");    
      }
  
  }
  
  
  
  1.1                  xml-axis/java/test/wsdl/echo/ComplexEchoServiceTestCase.java
  
  Index: ComplexEchoServiceTestCase.java
  ===================================================================
  /**
   * ComplexEchoServiceTestCase.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis WSDL2Java emitter.
   */
  
  package test.wsdl.echo;
  
  public class ComplexEchoServiceTestCase extends junit.framework.TestCase {
      public ComplexEchoServiceTestCase(String name) {
          super(name);
      }
      public void test1ComplexEchoServiceEcho() {
          test.wsdl.echo.Echo binding;
          try {
              binding = new 
test.wsdl.echo.ComplexEchoServiceLocator().getComplexEchoService();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException 
caught: " + jre);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              test.wsdl.echo.MyComplexType complexType = new 
test.wsdl.echo.MyComplexType();
              test.wsdl.echo.holders.MyComplexTypeHolder complexTypeHolder = 
                      new test.wsdl.echo.holders.MyComplexTypeHolder(complexType);  
              binding.echo(complexTypeHolder);
              
assertTrue(complexTypeHolder.value.getSimpleItem().equals("MY_SIMPLE_ITEM"));
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
  }
  
  
  


Reply via email to