axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Thomas Manes <atma...@gmail.com>
Subject Re: cgi service 2
Date Sat, 21 May 2005 12:21:07 GMT
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 <barhouf@yahoo.fr> 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
> 
>

Mime
View raw message