axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NITESH GUPTA <nitesh.gu...@epfl.ch>
Subject java.io.IOException: Emitter failure. There is an undefined binding (HelloServerBinding) in the WSDL document.
Date Tue, 01 Jun 2004 10:14:45 GMT
Hi,

I got the error  :

java.io.IOException: Emitter failure.  There is an undefined binding (HelloServerBinding)
in the WSDL document.
Hint: make sure <port binding=".."> is fully qualified.

I checked my WSDL file and everything seems ok. I'm not able to figure out why I am getting
this error.

I have included the WSDL file below.

Any help is appreciated.
Thanks in advance,
Nitesh


<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HelloServer"
	targetnamespace="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
	xmlns="http://schemas.xmlsoap.org/wsdl/"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:tns="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:xsd1="http://craft.epfl.ch/schema">
	
	<types>
		<xsd:schema
			targetnamespace="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
			xmlns="http://www.w3.org/2001/XMLSchema"
			xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
			xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
			
			<xsd:complexType name="ArrayOfString">
				<xsd:complexContent>
					<xsd:restriction base="soapenc:Array">
						<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="string[]"/>
					</xsd:restriction>
				</xsd:complexContent>
			</xsd:complexType>
			
			<xsd:complexType name="HelloUser">
				<xsd:sequence>
					<xsd:element name="userID" type="xsd:int"/>
					<xsd:element name="userName" nillable="true" type="xsd:string"/>
					<xsd:element maxOccurs="unbounded" name="userAdd" nillable="true" type="xsd:string"/>
				</xsd:sequence>
			</xsd:complexType>
		</xsd:schema>
	</types>
	
	<message name="addRequest">
		<part name="num1" type="xsd:int"/>
		<part name="num2" type="xsd:int"/>
	</message>
				
	<message name="addResponse">
		<part name="result" type="xsd:int"/>
	</message>

	<message name="sayHellToRequest">
		<part name="name" type="xsd:string"/>
	</message>

	<message name="sayHellToResponse">
		<part name="reply" type="xsd:string"/>
	</message>

	<message name="sayHellTo1Request">
		<part name="names" type="xsd1:ArrayOfString"/>
	</message>
					
	<message name="sayHellTo1Resonse">
		<part name="reply" type="xsd:string"/>
	</message>

	<message name="testUserRequest">
		<part name="user" type="xsd1:HelloUser"/>
	</message>
	
	<message name="testUserResponse">
	</message>

	<portType name="HelloServer">
		<operation name="add" parameterOrder="num1 num2">
			<input message="tns:addRequest" name="addRequest"/>
			<output message="tns:addResponse" name="addResponse"/>
		</operation>
		
		<operation name="sayHelloTo">
			<input message="tns:sayHelloToRequest" name="sayHelloToRequest"/>
			<output message="tns:sayHelloToResponse" name="sayHelloToResponse"/>
		</operation>
		
		<operation name="sayHelloTo1">
			<input message="tns:sayHelloTo1Request" name="sayHelloTo1Request"/>
			<output message="tns:sayHelloTo1Response" name="sayHelloTo1Response"/>
		</operation>
		
		<operation name="testUser">
			<input message="tns:testUserRequest" name="testUserRequest"/>
			<output message="tns:testUserResponse" name="testUserResponse"/>
		</operation>
	</portType>
	
	<binding name="HelloServerBinding" type="tns:HelloServer">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
	
		<operation name="add">
			<soap:operation soapAction=""/>
			<input name="addRequest">
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</input>
			<output name="addResponse"> 
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</output>	
		</operation>
	
		<operation name="sayHelloTo">
			<soap:operation soapAction=""/>
			<input name="sayHelloToRequest">
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</input>
			<output name="sayHelloToResponse"> 
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</output>	
		</operation>
	
		<operation name="sayHelloTo1">
			<soap:operation soapAction=""/>
			<input name="sayHelloTo1Request">
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</input>
			<output name="sayHelloTo1Response"> 
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</output>	
		</operation>
	
		<operation name="testUser">
			<soap:operation soapAction=""/>
			<input name="testUserRequest">
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</input>
			<output name="testUserResponse"> 
				<soap:body
					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
					namesapce="http://craft.epfl.ch/wsdl/HelloServer.wsdl"
					use="literal"/>
			</output>	
		</operation>
	
	</binding>
	
	<service name="HelloServerService">
		<port name="HelloServerPort" binding="tns:HelloServerBinding">
			<soap:address location="http//:craftgepc18.epfl.ch:8080/axis/services/helloserver"/>
		</port>
	</service>
	
</definitions>


Mime
View raw message