I depends a lot on which parameters you ar using with
java2WSDL.
You should check for extraclasses parameter.
For instance, I use ant task with these params :
<target name="java2wsdl">
<axis-java2wsdl classname="${appClassName}"
classpath="${build.dir}" // this is very important
methods=<My service operations>
extraClasses
="${appExtraclass}" // Beans describing complex types
output="${appOutputWSDL}" // Name of output WSDL
location="${appLocation}" // Service URL : http://...
namespace="${appNamespace}" //
namespaceImpl="${appNamespaceImpl}" //urn:..
style="WRAPPED"/>
</target>
And all my attributes are nillable='true'.
You should check in Axis ejb samples for a build.xml
containing a j2w ant task and change it to your
convenience (by adding style parameter).
--- "Jalenak, Jerry" <[EMAIL PROTECTED]> a écrit :
> I'm wrapping an existing class and exposing it as a
> Document Literal
> Wrapped webservice. When I generate the WSDL with
> Java2WSDL, the
> generated WSDL contains 'created' class definitions
> for the new object
> that 'wraps' my input attributes. Is there a way to
> force
> 'nillable=true' to be added to these definitions?
>
>
>
> i.e., I get this -
>
>
>
> <element name="replaceCPE">
>
> <complexType>
>
> <sequence>
>
> <element name="in0"
> type="impl:CpeIdentifier"/>
>
> <element name="in1"
> type="impl:CpeProperties"/>
>
> <element name="in2" type="impl:EventSink"/>
>
> </sequence>
>
> </complexType>
>
> </element>
>
>
>
> But I want this -
>
>
>
> <element name="replaceCPE">
>
> <complexType>
>
> <sequence>
>
> <element name="in0" nillable="true"
> type="impl:CpeIdentifier"/>
>
> <element name="in1" nillable="true"
> type="impl:CpeProperties"/>
>
> <element name="in2" nillable="true"
> type="impl:EventSink"/>
>
> </sequence>
>
> </complexType>
>
> </element>
>
>
>
> Thanks!
>
>
>
> Jerry Jalenak
>
> Software Engineer
>
> Netopia, Inc.
>
>
>
>
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com