Dear all,

we used to develop web service using predefined WSDL (attached) on Eclipse.
Our development tools were Eclipse (Luna R2), Tomcat 1.8.0, and Axis2
1.6.x. and it worked fine.

Now, I want to create web service based on the same WSDL file, but using
Axis2 1.7.0 instead of 1.6.4.

I got the following error during WSDL-to-code generation:
Exception occurred during code generation for the WSDL  :
java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/XmlSchema

I understand from the release note that Axis2 1.7.0 has upgraded its
XMLSchema hence it is backward incompatible with Axis2 1.6.x. But I am not
sure how can I relate this to my problem. From what I understand, Axis2
complains that XMLSchema is not present. So, I import XMLSchema jar into my
project build path. But the same error still occurs.

Would you mind to point out how to solve this problem?

Thanks!

Regards,
Arif
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="BookQuoteWS" targetNamespace="http://www.example.com/BookQuote"; xmlns:mh="http://www.example.com/BookQuote"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns="http://schemas.xmlsoap.org/wsdl/";>
	<!-- Message describes input and output parameters -->
	<message name="GetBookPriceRequest">
		<part name="isbn" type="xsd:string"/>
	</message>
	<message name="GetBookPriceResponse">
		<part name="price" type="xsd:double"/>
	</message>
	<!-- PortType describes abstract interface of Web service -->
	<portType name="BookQuote">
		<operation name="getBookPrice">
			<input name="isbn" message="mh:GetBookPriceRequest"/>
			<output name="price" message="mh:GetBookPriceResponse"/>
		</operation>
	</portType>
	<!-- Binding defines the protocols and encoding styles  -->
	<binding name="BookPriceBinding" type="mh:BookQuote">
		<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="getBookPrice">
			<soap:operation style="rpc"/>
			<input>
				<soap:body use="literal" namespace="http://www.example.com/BookQuote"; />
			</input>
			<output>
				<soap:body use="literal" namespace="http://www.example.com/BookQuote"/>
			</output>
		</operation>
	</binding>
	<!-- Service defines the address of Web service -->
	<service name="BookPriceService">
		<port name="BookPricePort" binding="mh:BookPriceBinding">
			<soap:address location="http://www.example.com/BookQuote"/>
		</port>
	</service>
</definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to