The WSDL isn't valid.
Per the WSDL spec, the format of the <binding> element is:
<wsdl:definitions .... >
<wsdl:binding name="nmtoken" type="qname"> *
<-- extensibility element (1) --> *
<wsdl:operation name="nmtoken"> *
<-- extensibility element (2) --> *
<wsdl:input name="nmtoken"? > ?
<-- extensibility element (3) -->
</wsdl:input>
<wsdl:output name="nmtoken"? > ?
<-- extensibility element (4) --> *
</wsdl:output>
<wsdl:fault name="nmtoken"> *
<-- extensibility element (5) --> *
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
The <input> and <output> elements should have a @name attribute,
referencing the name of the <input> and/or <output> element in the
<portType>
You'll also notice that your <portType> definitions are invalid
because they also don't specify the @name attribute. Proper format of
a <portType> is:
<wsdl:definitions .... >
<wsdl:portType .... > *
<wsdl:operation name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl:output name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl:operation>
</wsdl:portType >
</wsdl:definitions>
(And just because Axis 1.1 permitted this error, that doesn't mean
that Axis 1.2 should.)
Anne
On 8/9/05, Mayer, Roland <[EMAIL PROTECTED]> wrote:
> I want to generate Java code with the WSDL2Java tool.
>
> The wsdl file is listed below and attached to my email
>
> I just upgraded to axis1_2_1 and get the following error when i try to
>
> run the wsdl2java tool:
>
> WSDLException (at /definitions/binding/operation[1]/input):
>
> faultCode=3DINVALID_WSDL: Element
>
> '{http://schemas.xmlsoap.org/wsdl/}input
> <http://schemas.xmlsoap.org/wsdl/}input> ' contained unexpected
>
> attributes: 'message':
>
> at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
>
> at com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingInput(Unknown Source)
>
> at com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown
>
> Source)
>
> ....
>
> This message does NOT show up if I use axis_1_1
>
> The wsdl file (generated by a delphi program) is attached :
>
> Thanks for any help
>
> Roli
>
>
>
>