axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: [Axis2] ADB and optional attributes in xmlSchema
Date Wed, 21 Mar 2007 03:46:50 GMT
Please log a JIRA bug and upload your wsdl.

thanks,
dims

On 3/20/07, Mariusz Woloncewicz <marioush@o2.pl> wrote:
> Hello,
>
> I have a major problem with ADB databinding. Why does it generate empty
> attributes for optional schema attributes? For example, a following
> xmlSchema declaration:
> <xs:element name="session">
>     <complexType>
>         <xs:attribute name="timeout" type="xs:int"/>
>         <xs:attribute name="id" type="xs:string"/>
>     </xs:complexType>
> </xs:element>
>
>
> results with <session timeout=0 id=""/> in a soap message even when the
> attributes were not explicitly set in the code.
> With XMLBeans just empty <session> element goes on the wire by default and
> this is exactly what I need.
>
> Im using large schema with numerous optional attributes and such a behaviour
> is not acceptable for me. Is there any way to change it?
>
> Thanks,
> Mariusz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message