axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackdawson <abhishek....@gmail.com>
Subject Re: InterruptedException with Eclipse Codegen plug-in
Date Fri, 12 Sep 2008 02:16:57 GMT

Hello all,

Can anyone tell me what is wrong with this WSDL? 
Why am I getting the InterruptedException when I try to generate server side
stuff using the Axis2 Eclipse Codegen plugin wizard?

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:a.b.c.d"
	xmlns:apachesoap="http://xml.apache.org/xml-soap"
	xmlns:impl="urn:a.b.c.d"
	xmlns:intf="urn:a.b.c.d"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<wsdl:types>
		<schema elementFormDefault="qualified"
			targetNamespace="urn:a.b.c.d"
			xmlns="http://www.w3.org/2001/XMLSchema">

			<complexType name="UserType">
				<sequence>
				<!-- .... -->
				</sequence>
			</complexType>
			
			<complexType name="LoginData">
				<sequence>
					<element name="a1" nillable="true"
						type="xsd:string" />
					<element name="a2" nillable="true"
						type="xsd:string" />
					<element name="a3" nillable="true"
						type="impl:UserType" />
					<element name="a4" nillable="true"
						type="xsd:string" />					
				</sequence>
			</complexType>
			
			<complexType name="LoginResponse">
				<sequence>
					<element name="b1" nillable="true"
						type="xsd:string" />
					<element name="b2" nillable="true"
						type="impl:UserMetadataType" />					
					<element name="b3" type="xsd:boolean" />
					<element name="b4" type="xsd:long" />
					<element name="b5" nillable="true"
						type="impl:UserDetailType" />					
					<element name="b6" type="xsd:boolean" />					
				</sequence>
			</complexType>			
			
			<complexType name="UserMetadataType">
				<sequence>
				<!-- .... -->
				</sequence>
			</complexType>
			
			<complexType name="UserDetailType">
				<sequence>
				<!-- .... -->
				</sequence>
			</complexType>		

		</schema>
	</wsdl:types>
	
	<wsdl:message name="loginRequest">
		<wsdl:part name="credentials" type="impl:LoginData"/>
	</wsdl:message>

	<wsdl:message name="loginResponse">
		<wsdl:part name="loginReponse" type="impl:LoginResponse"/>
	</wsdl:message>
	
	
	<wsdl:portType name="LoginService">
		<wsdl:operation name="login">
			<wsdl:input message="impl:loginRequest" name="loginRequest" />
			<wsdl:output message="impl:loginResponse" name="loginResponse" />
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="LoginServiceSoapBinding" type="impl:LoginService">
		<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="login">
			<wsdlsoap:operation soapAction="" />
			<wsdl:input name="loginRequest">
				<wsdlsoap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="loginResponse">
				<wsdlsoap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="LoginService">
		<wsdl:port binding="impl:LoginServiceSoapBinding" name="LoginService">
			<wsdlsoap:address
location="http://localhost:8080/loginauth/services/auth" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

I appreciate for your time.

Thanks.






jackdawson wrote:
> 
> Hi,
> 
> I'm trying to generate server side stuff and server.xml from a WSDL using
> Axis2 Eclipse Codegen plug-in but when I clicked Finish on the final page
> it kicked me with this error:
> 
> An error occured while completing process- java.lang.
> http://www.nabble.com/file/p19417409/InterruptedException.doc
> InterruptedException.doc :
> No element type is defined for message loginRequest
> 
> I attached even the screenshot.
> 
> It seems that its because of the WSDL. Am I right?
> Did anyone face this issue before? Does anyone know what then ext step
> would be?
> 
> Here is the sample wsdl I used.
>  http://www.nabble.com/file/p19417409/LoginService.wsdl LoginService.wsdl 
> 
> Thanks in advance.
> 

-- 
View this message in context: http://www.nabble.com/InterruptedException-with-Eclipse-Codegen-plug-in-tp19417409p19448192.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message