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 sh_santosh <sa...@gmail.com> on 2009/09/30 20:54:34 UTC

Emitter failure. There is an undefined binding (HelloBinding) in the WSDL document. Hint: make sure is fully qualified.

Dear All,

I have a wsdl file and i am generating WSDL2Java from this wsdl file.
I am getting this IOException  - 
Emitter failure.  There is an undefined binding (HelloBinding) in the WSDL
document.
Hint: make sure <port binding=".."> is fully qualified.

Please advise on this.

Please find the WSDL file -

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://test.com" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <types/>
   <message name="HelloHeader">
      <part name="header" type="xs:string"/>
   </message>
   <message name="HelloMessage">
      <part name="body" type="xs:string"/>
   </message>
   <message name="HelloMessageResponse"/>
   <portType name="HelloPortType">
      <operation name="sayHello">
         <input message="tns:HelloMessage"/>
         <output message="tns:HelloMessageResponse"/>
         </operation>
      </portType>
      <binding name="HelloBinding" type="tns:HelloPortType">
         <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
         <operation name="sayHello">
         <soap:operation soapAction="" />
            <input>
               <soap:body use="literal"/>
               <!--the SOAP header must be defined here x
               <soap:header message="tns:HelloHeader" part="header"
use="literal"/> -->
         </input>
         <output>
            <soap:body use="literal"/>
         </output>
      </operation>
   </binding>
   <service name="HelloService">
      <port binding="tns:HelloBinding" name="HelloPort">
         <soap:address
location="http://localhost:8080/hello-service/hello-service"/>
      </port>
   </service>
</definitions>


Exception details -
java.io.IOException: Emitter failure.  There is an undefined binding
(HelloBinding) in the WSDL document.
Hint: make sure <port binding=".."> is fully qualified.
	at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:570)
	at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:715)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
	at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
	at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
	at java.lang.Thread.run(Thread.java:619)


Regards,
Santosh
-- 
View this message in context: http://www.nabble.com/Emitter-failure.--There-is-an-undefined-binding-%28HelloBinding%29-in-the-WSDL-document.-Hint%3A-make-sure-%3Cport-binding%3D%22..%22%3E-is-fully-qualified.-tp25686826p25686826.html
Sent from the Axis - User mailing list archive at Nabble.com.


Re: Emitter failure. There is an undefined binding (HelloBinding) in the WSDL document. Hint: make sure is fully qualified.

Posted by Amila Suriarachchi <am...@gmail.com>.
On Thu, Oct 1, 2009 at 12:24 AM, sh_santosh <sa...@gmail.com> wrote:

>
> Dear All,
>
> I have a wsdl file and i am generating WSDL2Java from this wsdl file.
> I am getting this IOException  -
> Emitter failure.  There is an undefined binding (HelloBinding) in the WSDL
> document.
> Hint: make sure <port binding=".."> is fully qualified.
>
> Please advise on this.
>
> Please find the WSDL file -
>
> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:tns="http://test.com"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
>

try adding targetNamespace="http://test.com" at the definitions element

thanks,
Amila.

>   <types/>
>   <message name="HelloHeader">
>      <part name="header" type="xs:string"/>
>   </message>
>   <message name="HelloMessage">
>      <part name="body" type="xs:string"/>
>   </message>
>   <message name="HelloMessageResponse"/>
>   <portType name="HelloPortType">
>      <operation name="sayHello">
>         <input message="tns:HelloMessage"/>
>         <output message="tns:HelloMessageResponse"/>
>         </operation>
>      </portType>
>      <binding name="HelloBinding" type="tns:HelloPortType">
>         <soap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http" />
>         <operation name="sayHello">
>         <soap:operation soapAction="" />
>            <input>
>               <soap:body use="literal"/>
>               <!--the SOAP header must be defined here x
>               <soap:header message="tns:HelloHeader" part="header"
> use="literal"/> -->
>         </input>
>         <output>
>            <soap:body use="literal"/>
>         </output>
>      </operation>
>   </binding>
>   <service name="HelloService">
>      <port binding="tns:HelloBinding" name="HelloPort">
>         <soap:address
> location="http://localhost:8080/hello-service/hello-service"/>
>      </port>
>   </service>
> </definitions>
>
>
> Exception details -
> java.io.IOException: Emitter failure.  There is an undefined binding
> (HelloBinding) in the WSDL document.
> Hint: make sure <port binding=".."> is fully qualified.
>        at
>
> org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:570)
>        at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:715)
>        at
> org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
>        at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>        at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>        at java.lang.Thread.run(Thread.java:619)
>
>
> Regards,
> Santosh
> --
> View this message in context:
> http://www.nabble.com/Emitter-failure.--There-is-an-undefined-binding-%28HelloBinding%29-in-the-WSDL-document.-Hint%3A-make-sure-%3Cport-binding%3D%22..%22%3E-is-fully-qualified.-tp25686826p25686826.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/