users@jax-rpc.java.net

Bug in wscompile (jwsdp-1.4)

From: Sami Lakka <sami.lakka_at_tut.fi>
Date: Thu, 7 Oct 2004 09:55:44 +0300

Hi,

 

When I'm generating Java classes from a WSDL- file (see attachment) the
wscompile doesn't take the

nillable- attribute into account in some cases. This happens for example in
the SubscribeRequestItem- element (see below)

where the wscompile generates primitive types for the Deadband,
EnableBuffering and RequestedSamplingRate attributes.

Surprisingly the wscompile generates correct types for the
SubscribeRequestItemList.

 

The bug seems to surface when complexType contains sequence of other
complexTypes. The wscompile doesn't see the

nillable- attributes in the sequence of complexTypes.

 

I''m generating the classes using following command: wscompile -keep -import
-model testModel.xml.gz server.xml

IThe bug is visible at least in the classes SubscribeRequestItem and
ReadRequestItem.

 

The ability of JWSDP to generate wrappers for primitive types is necessary
for our project so if someone has a suggestion for

a workaround for this bug please let me know.

 

 

(WSDL-snippet)

<s:complexType name="SubscribeRequestItemList">

        <s:sequence>

          <s:element minOccurs="0" maxOccurs="unbounded" name="Items"
type="s0:SubscribeRequestItem" />

        </s:sequence>

        <s:attribute name="ItemPath" type="s:string" />

        <s:attribute name="ReqType" type="s:QName" nillable="true" />

        <s:attribute name="Deadband" nillable="true" type="s:float" />

        <s:attribute name="RequestedSamplingRate" nillable="true"
type="s:int"/>

        <s:attribute name="EnableBuffering" nillable="true"
type="s:boolean"/>

</s:complexType>

<s:complexType name="SubscribeRequestItem">

        <s:attribute name="ItemPath" type="s:string" />

        <s:attribute name="ReqType" nillable="true" type="s:QName"/>

        <s:attribute name="ItemName" type="s:string" />

        <s:attribute name="ClientItemHandle" type="s:string" />

        <s:attribute name="Deadband" nillable="true" type="s:float"/>

        <s:attribute name="RequestedSamplingRate" nillable="true"
type="s:int"/>

        <s:attribute name="EnableBuffering" nillable="true"
type="s:boolean"/>

</s:complexType>

 

 

 

Best Regards,

 

- Sami




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net