You do not have names for the <input> and <output> definitions in the portType:
<portType name="ITHitchHiker">
<operation name="TheAnswer">
<input message="tns:TheAnswer0Request" />
<output message="tns:TheAnswer0Response" />
</operation>
<operation name="TheQuestion">
<input message="tns:TheQuestion1Request" />
<output message="tns:TheQuestion1Response" />
</operation>
</portType>
The @name attribute is required on all input and output definitions in
the <portType>. If you change the portType definition to this:
<portType name="ITHitchHiker">
<operation name="TheAnswer">
<input name="TheAnswerInput" message="tns:TheAnswer0Request" />
<output name="TheAnswerOutput" message="tns:TheAnswer0Response" />
</operation>
<operation name="TheQuestion">
<input name="TheQuestionInput" message="tns:TheQuestion1Request" />
<output name="TheQuestionOutput" message="tns:TheQuestion1Response" />
</operation>
</portType>
it should work.
Anne
On 5/20/05, Omar Bennani <[EMAIL PROTECTED]> wrote:
> I wrote a webservie with delphi, it generate this
> wsdl
> file
> but when I try to generate java client interfaces
>
> java org.apache.axis.wsdl.WSDL2Java
> ITHitchHiker.wsdl
>
> he display me an error message:
>
> WSDLException (at
> /definitions/binding/operation[1]/input):
> faultCode=INVALID_WSDL: Element '{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)
> at
> com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown
> Source)
> at
>
> com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> Source)
> at
> com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> Source)
> at
> com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> Source)
> at
> com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> Source)
> at
>
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:514)
> at
>
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493)
> at
>
> org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
> at java.lang.Thread.run(Unknown Source)
>
> please help me
>
>
>
>
>
>
> _____________________________________________________________________________
> D�couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails,
> photos et vid�os !
> Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com
>
>