Hi!
I am currently facing the problem, that my axis (I have to deal with
version 1.1!) serializer translates field with "null" value into
xsi:nil="true" tags. Like this:
<account>
<ns2:identifyByIdAndBirthdate
xmlns:ns2="http://b2c.company.de/schema/common/request">
<ns3:accountNumber
xmlns:ns3="http://b2c.company.de/schema/common">783536</ns3:accountNumber>
<ns4:customerCompany
xmlns:ns4="http://b2c.company.de/schema/common">1</ns4:customerCompany>
<ns2:birthdate>2008-01-25</ns2:birthdate>
</ns2:identifyByIdAndBirthdate>
<ns5:identifyByIdAndPassword xsi:nil="true"
xmlns:ns5="http://b2c.company.de/schema/common/request"/>
<ns6:identifyByMailAndBirthdate xsi:nil="true"
xmlns:ns6="http://b2c.company.de/schema/common/request"/>
<ns7:identifyByMailAndPassword xsi:nil="true"
xmlns:ns7="http://b2c.company.de/schema/common/request"/>
</account>
The wsdl defines a choice out of 4 elements so that only one node is
allowed to appear under account. As you can see only the first child
node is used so the other three should not appear in my request. The
server receiving this request complains about unexpected elements and
quits with an exception.
So, I want the request to be like
<account>
<ns2:identifyByIdAndBirthdate
xmlns:ns2="http://b2c.company.de/schema/common/request">
<ns3:accountNumber
xmlns:ns3="http://b2c.company.de/schema/common">783536</ns3:accountNumber>
<ns4:customerCompany
xmlns:ns4="http://b2c.company.de/schema/common">1</ns4:customerCompany>
<ns2:birthdate>2008-01-25</ns2:birthdate>
</ns2:identifyByIdAndBirthdate>
</account>
Is there a way to configure axis not using null elements in the serializer?
Thank you for any clue ;) Mirco
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]