axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Yves Baudy <jy.ba...@free.fr>
Subject Re: RE : Xerces 2.2.0 and empty tag
Date Thu, 15 Apr 2004 10:00:01 GMT
Hi Samisa,

I still having the problem (See my previous mail). With the latest CVS 
code there is no segfault but the Axis response for my test case is 
wrong if my "ugly" patch is not applied.

I used Xerces 2.2.0 binary distribution from apache on Linux platform. I 
can't test it on Windows. So I included here all the things need for 
tests. The wsld and the client code. I used an enterprise Java WS server 
(which only return the input parameter).

-> http://jy.baudy.free.fr/axis/AxisBench.wsdl
-> http://jy.baudy.free.fr/axis/AxisBenchClient.cpp


Now what happen on my machine:

The response from the server:
-----------------------------

HTTP/1.1 200 OK
Server: WebSphere Application Server/5.0
Content-Type: text/xml; charset=utf-8
Content-Language: fr-FR-EURO
Connection: close

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
     <doBenchRequestResponse xmlns="http://axisbench.parislab.ibm.com">
       <doBench>
         <count>1</count>
         <infos>
           <StringType>StringType</StringType>
           <IntType>0</IntType>
           <BooleanType>1</BooleanType>
           <DoubleType>1.0</DoubleType>
           <DateTimeType>2004-03-11T13:06:47.000Z</DateTimeType>
           <DateType>2004-03-11</DateType>
           <TimeType>13:06:47.000Z</TimeType>
           <Base64BinaryType/>
           <ByteType>1</ByteType>
           <DecimalType>10.000000</DecimalType>
           <FloatType>0.0</FloatType>
           <HexBinary/>
           <IntegerType>0</IntegerType>
           <LongType>0</LongType>
           <QNameType>toto</QNameType>
           <ShortType>1</ShortType>
         </infos>
       </doBench>
     </doBenchRequestResponse>
   </soapenv:Body>
</soapenv:Envelope>

As you can see Base64BinaryType and HexBinary element are empty.

The output of the client without my patch:
-----------------------------------------
Count : 1
  ----------------------------------------------
  StringType StringType
  IntegerType 0
  DoubleType 1.000000
  BooleanType 1
  DateTimeType Thu Mar 11 13:06:47 2004

  DateType Thu Mar 11 00:00:00 2004

  TimeType Thu Jan  1 13:06:47 1970

  ByteType 0
  DecimalType 0.000000
  FloatType 0.000000
  LongType 0
  QNameType toto
  ShortType 1
  Base64BinaryType 0
  Base64BinaryType (null)
  HexBinaryType 0
  HexBinaryType (null)

As you can see ByteType and DecimalType value are wrong.

And now the output of the client with my patch
----------------------------------------------

Count : 1
  ----------------------------------------------
  StringType StringType
  IntegerType 0
  DoubleType 1.000000
  BooleanType 1
  DateTimeType Thu Mar 11 13:06:47 2004

  DateType Thu Mar 11 00:00:00 2004

  TimeType Thu Jan  1 13:06:47 1970

  ByteType 1
  DecimalType 10.000000
  FloatType 0.000000
  LongType 0
  QNameType toto
  ShortType 1
  Base64BinaryType 0
  Base64BinaryType (null)
  HexBinaryType 0
  HexBinaryType (null)


So can you test it on Windows please to identify if this is a Linux issue ?

Thanks,

Jean-Yves



Mime
View raw message