axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/test/wsdl/interop3/groupE/client InteropTestDocLitServiceTestCase.java InteropTestRpcEncServiceTestCase.java
Date Thu, 21 Feb 2002 18:45:27 GMT
butek       02/02/21 10:45:27

  Modified:    java/test/wsdl/interop3/groupE/client
                        InteropTestDocLitServiceTestCase.java
                        InteropTestRpcEncServiceTestCase.java
  Log:
  SOAPStruct is a bean.  It is translated to WSDL as:
  
     <complexType name="SOAPStruct">
      <all>
       <element name="varFloat" type="xsd:float"/>
       <element name="varInt" type="xsd:int"/>
       <element name="varString" nillable="true" type="xsd:string"/>
      </all>
     </complexType>
  
  Note the <all> tag (NOT <sequence>).  <all> means there's no order.  The
tests call
  a SOAPStruct constructor that assumes order a certain order.  This order is not
  guaranteed.  In fact, we've run across a situation where it IS different - though we
  haven't bothered to figure out why).
  
  Revision  Changes    Path
  1.2       +4 -1      xml-axis/java/test/wsdl/interop3/groupE/client/InteropTestDocLitServiceTestCase.java
  
  Index: InteropTestDocLitServiceTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/interop3/groupE/client/InteropTestDocLitServiceTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InteropTestDocLitServiceTestCase.java	20 Feb 2002 13:46:09 -0000	1.1
  +++ InteropTestDocLitServiceTestCase.java	21 Feb 2002 18:45:27 -0000	1.2
  @@ -131,7 +131,10 @@
           assertTrue("binding is null", binding != null);
   
           try {
  -            SOAPStruct input = new SOAPStruct(3.142f, 3, "Pi");
  +            SOAPStruct input = new SOAPStruct();
  +            input.setVarFloat(3.142f);
  +            input.setVarInt(3);
  +            input.setVarString("Pi");
               SOAPStruct value = binding.echoStruct(input);
               if (value.getVarFloat() != input.getVarFloat() ||
                   value.getVarInt() != input.getVarInt() ||
  
  
  
  1.2       +4 -1      xml-axis/java/test/wsdl/interop3/groupE/client/InteropTestRpcEncServiceTestCase.java
  
  Index: InteropTestRpcEncServiceTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/interop3/groupE/client/InteropTestRpcEncServiceTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InteropTestRpcEncServiceTestCase.java	20 Feb 2002 13:46:09 -0000	1.1
  +++ InteropTestRpcEncServiceTestCase.java	21 Feb 2002 18:45:27 -0000	1.2
  @@ -131,7 +131,10 @@
           assertTrue("binding is null", binding != null);
   
           try {
  -            SOAPStruct input = new SOAPStruct(3.142f, 3, "Pi");
  +            SOAPStruct input = new SOAPStruct();
  +            input.setVarFloat(3.142f);
  +            input.setVarInt(3);
  +            input.setVarString("Pi");
               SOAPStruct value = binding.echoStruct(input);
               if (value.getVarFloat() != input.getVarFloat() ||
                   value.getVarInt() != input.getVarInt() ||
  
  
  

Mime
View raw message