You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Omar Bennani <ba...@yahoo.fr> on 2005/05/20 16:34:19 UTC

cgi service 2

 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

Re: cgi service 2

Posted by Omar Bennani <ba...@yahoo.fr>.
Thanx for your advices, i will try now the
modification of the wsdl file, but i have to say to
you, this wsdl is generated by apache when I go to
this adress:
http://localhost:8088/cgi-bin/Project2.exe/wsdl/ITHitchHiker

I tested also this wsdl file with XMLSpy and it work
so i don't understand why i can't compile with
java org.apache.Axis.wsdl.WSDL2java 

> 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 <at...@gmail.com>
> 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 <ba...@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
> > >
> > >
> >
> 



	

	
		
_____________________________________________________________________________ 
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

Re: cgi service 2

Posted by Anne Thomas Manes <at...@gmail.com>.
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 <at...@gmail.com> 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 <ba...@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
> >
> >
>

Re: cgi service 2

Posted by Anne Thomas Manes <at...@gmail.com>.
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 <ba...@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
> 
>

Re: cgi service 2

Posted by Anne Thomas Manes <at...@gmail.com>.
No -- you don't need a closing </message> tag, because the opening
<message> tage closes itself: <message .../> What this indicates is
that the message contains no parts.

Anne

On 5/20/05, Ferruh Zamangoer <fe...@gmx.de> wrote:
> I also a newbie to Axis but I have see in your wsdl file
> <message name="TheQuestion1Request"/>
> 
> Do you not need a </message> ???
> 
> Regards
> Ferruh
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Omar Bennani [mailto:barhouf@yahoo.fr]
> Gesendet: Freitag, 20. Mai 2005 16:34
> An: axis-user@ws.apache.org
> Betreff: cgi service 2
> 
>  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
> 
>

AW: cgi service 2

Posted by Ferruh Zamangoer <fe...@gmx.de>.
I also a newbie to Axis but I have see in your wsdl file 
<message name="TheQuestion1Request"/>

Do you not need a </message> ???

Regards
Ferruh
  

-----Ursprüngliche Nachricht-----
Von: Omar Bennani [mailto:barhouf@yahoo.fr] 
Gesendet: Freitag, 20. Mai 2005 16:34
An: axis-user@ws.apache.org
Betreff: cgi service 2

 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