Hi Milos,

I've seen that beta 2 doesn't (always) create the Holders for the complex
types. It only refers to them, so the code doesn't compile.

However beta 3 creates the Holders.

I suggest you test it with beta 3 first.

Sjaak



> -----Original Message-----
> From: Milos Cekovic [mailto:[EMAIL PROTECTED]]
> Sent: 17 July, 2002 11:02
> To: [EMAIL PROTECTED]
> Subject: fault message
> 
> 
> Hi,
> 
> In beta2 WSDL2Java generates for each fault in a portType a class that
> extends AxisFault. This class is thrown from a service call.
> 
> Since beta3 WSDL2Java does not generate this class. It just throws
> a ComplexType that is a part of a fault message which results in
> compilation
> errors.
> 
> Here is the portType definition:
> 
> <portType name="SrvDataDictionaryPortType">
>   <operation name="getDataDictionary">
>     <input message="..."/>
>     <output name="..."/>
>     <fault name="getDataDictionaryException" message
> ="datadict:DataDictionaryFault"/>
>   </operation>
> ...
> 
> And the message is:
> 
> <message name="DataDictionaryFault">
>   <part name="exception" type="mytypes:ArrayOfMyError"/>
> </message>
> 
> The array is defined as:
> 
> <complexType name="ArrayOfMyError">
>   <complexContent>
>     <restriction base="soapenc:Array">
>       <sequence>
>         <element name="item" minOccurs="0" maxOccurs="unbounded" type
> ="mytypes:MyError"/>
>       </sequence>
>       <attribute ref="soapenc:arrayType" 
> soapenc:arrayType="mytypes:MyError
> []"/>
>     </restriction>
>   </complexContent>
> </complexType>
> 
> And its elements as:
> 
> <complexType name="MyError">
>   <all>
>     <element name="code" type="xsd:string"/>
>     <element name="message" type="xsd:string"/>
>   </all>
> </complexType>
> 
> 
> In beta2 WSDL2Java generated a DataDictionaryFault class that extends
> AxisFault.
> In beta3 there s no such class, but in PortType.java service 
> throws it!
> 
> Is it a bug in WSDL2Java?
> 
> Do you have some workarounds?
> 
> Thanks in advance.
> 
> Milos Cekovic
> Basel, Switzerland
> 


-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 

Reply via email to