axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Hu <...@mmti.com.tw>
Subject Strange problem of deserialization
Date Wed, 21 Dec 2005 04:38:15 GMT
Dear All:

I am writing a smaple webserver for testing purpose.
There's a simple java bean with only 2 properties name and email.
The wsdl seems to be correct :
===============================================================
<complexType name="Forecast">
<sequence>
<element name="email" nillable="true" type="xsd:string"/>
<element name="name" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
===============================================================

The transporting message seems to  be correct:
===============================================================
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns1:Forecast"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:BeanService"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<email xsi:type="soapenc:string">ken@mmti.com.tw</email>
<name xsi:type="soapenc:string">Ken Hu</name></multiRef> 
===============================================================

But when my service got this bean after deserializing , these 2
properties have the same value:
===============================================================
xxx.getName(): ken@mmti.com.tw
xxx.getEmail(): ken@mmti.com.tw
===============================================================

Have anyone run into this kind of problem ?

Ken
-- 
研發部             胡重威             Ken Hu          ken@mmti.com.tw

孟華科技股份有限公司
http://www.mmti.com.tw

高雄巿804鼓山區蓮海路70號
國立中山大學創新育成中心511室

電話      07-5253020
傳真      07-5252165
行動      0937083880


Mime
View raw message