axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject cvs commit: xml-axis/java/test/wsdl/nested Nested2BindingImpl.java Nested2ServiceTestCase.java
Date Fri, 16 Aug 2002 16:06:02 GMT
scheu       2002/08/16 09:06:02

  Modified:    java/src/org/apache/axis/encoding/ser BeanDeserializer.java
               java/test/wsdl/nested Nested2BindingImpl.java
                        Nested2ServiceTestCase.java
  Log:
    The wsdl.nested test contains an any element, but
    the test and implementation never set this element so
    there is no way to determine whether the value is
    serialized/deserialized correctly.
  
    I changed the Impl to set the any content to "Test Any"
    and changed the test to query the any content for "Test Any".
  
    Using tcpmon I determined that the any content was being serialized correctly:
  
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
     ...removed for clarity...
     <xsd:string xsi:type="xsd:string">Test Any</xsd:string>
    </multiRef>
  
    However the BeanDeserializer choked on xsd:string due to a bug.
  
    This is now fixed and working properly.
  
    Enjoy.
  
  Revision  Changes    Path
  1.46      +1 -1      xml-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java
  
  Index: BeanDeserializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- BeanDeserializer.java	16 Aug 2002 11:07:09 -0000	1.45
  +++ BeanDeserializer.java	16 Aug 2002 16:06:02 -0000	1.46
  @@ -214,7 +214,7 @@
           QName qn = null;
           Deserializer dSer = null;
           MessageContext messageContext = context.getMessageContext();
  -        if (propDesc == null && !messageContext.isEncoded()) {
  +        if (propDesc == null) {
               // try to put unknown elements into a SOAPElement property, if
               // appropriate
               propDesc = getAnyPropertyDesc();
  
  
  
  1.5       +1 -0      xml-axis/java/test/wsdl/nested/Nested2BindingImpl.java
  
  Index: Nested2BindingImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/nested/Nested2BindingImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Nested2BindingImpl.java	1 Jul 2002 19:37:52 -0000	1.4
  +++ Nested2BindingImpl.java	16 Aug 2002 16:06:02 -0000	1.5
  @@ -35,6 +35,7 @@
           address.setCURRENCY_ISO("");
           address.setCOUNTRYISO("DE");
           address.setONLY_CHANGE_COMADDRESS("X");
  +        address.setAny("Test Any");
   
           RETURN ret = new RETURN();
           ret.setTYPE("");
  
  
  
  1.6       +1 -0      xml-axis/java/test/wsdl/nested/Nested2ServiceTestCase.java
  
  Index: Nested2ServiceTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/nested/Nested2ServiceTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Nested2ServiceTestCase.java	25 Jul 2002 16:14:12 -0000	1.5
  +++ Nested2ServiceTestCase.java	16 Aug 2002 16:06:02 -0000	1.6
  @@ -37,6 +37,7 @@
               RETURN ret = rETURN.value;
               assertTrue("NAME is wrong", address.getNAME().equals("Becker Berlin"));
               assertTrue("LOGMSGNO is wrong", ret.getLOG_MSG_NO().equals("123456"));
  +            assertTrue("any is wrong:" + address.getAny(), address.getAny()!=null &&
address.getAny().equals("Test Any"));
           }
           catch (java.rmi.RemoteException re) {
               throw new junit.framework.AssertionFailedError("Remote Exception caught: "
+ re);
  
  
  

Mime
View raw message