There's also an error in the binding definition:

Your input and output elements must reference the portType input and
output definitions by name rather than by message. So assuming the
corrected portType in the message below, the <binding> should look
like this:

<binding name="ITHitchHikerbinding" type="tns:ITHitchHiker">
    <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"; />
    <operation name="TheAnswer">
       <soap:operation soapAction="urn:THitchHikerIntf-ITHitchHiker#TheAnswer" 
           style="rpc" /> 
       <input name="TheAnswerInput">
           <soap:body use="encoded" 
               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
               namespace="urn:THitchHikerIntf-ITHitchHiker" /> 
       </input>
       <output name="TheAnswerOutput">
            <soap:body use="encoded" 
                encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
                namespace="urn:THitchHikerIntf-ITHitchHiker" /> 
       </output>
     </operation>
     <operation name="TheQuestion">
         <soap:operation
soapAction="urn:THitchHikerIntf-ITHitchHiker#TheQuestion"
             style="rpc" /> 
         <input name="TheQuestionInput">
             <soap:body use="encoded" 
                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
                 namespace="urn:THitchHikerIntf-ITHitchHiker" /> 
         </input>
         <output name="TheQuestionOutput">
             <soap:body use="encoded" 
                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
                 namespace="urn:THitchHikerIntf-ITHitchHiker" /> 
         </output>
      </operation>
  </binding>


Anne

On 5/21/05, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> 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
> >
> >
>

Reply via email to