Guys,
I'm trying to use wsdl2java from the latest nightly snapshot (axis2)
and I'm still having errors. The wsdl file is attached.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.axis2.schema.ExtensionUtility
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException:
java.lang.ClassNotFoundException:
org.apache.axis2.schema.ExtensionUtility
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:52)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:188)
... 2 more
Caused by: java.lang.ClassNotFoundException:
org.apache.axis2.schema.ExtensionUtility
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:44)
... 3 more
thank you,
bruno.
<?xml version="1.0"?>
<!-- root element wsdl:definitions defines set of related services -->
<wsdl:definitions xmlns:tns="http://example.com/stockquote.wsdl" xmlns:xsd1="http://example.com/stockquote.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.com/stockquote.wsdl" name="StockQuote">
<wsdl:types>
<xsd:schema targetNamespace="http://example.com/stockquote.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- xsd definition: TradePriceRequest [... tickerSymbol string ...] -->
<xsd:element name="TradePriceRequest">
<xsd:complexType>
<xsd:all>
<xsd:element name="tickerSymbol" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
<!-- xsd definition: TradePrice [... price float ...] -->
<xsd:element name="TradePrice">
<xsd:complexType>
<xsd:all>
<xsd:element name="price" type="xsd:float"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="GetLastTradePriceInput">
<wsdl:part name="body" element="xsd1:TradePriceRequest"/>
</wsdl:message>
<wsdl:message name="GetLastTradePriceOutput">
<wsdl:part name="body" element="xsd1:TradePrice"/>
</wsdl:message>
<wsdl:portType name="StockQuotePortType">
<!-- the value of wsdl:operation eludes me -->
<wsdl:operation name="GetLastTradePrice">
<wsdl:input message="tns:GetLastTradePriceInput"/>
<wsdl:output message="tns:GetLastTradePriceOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at the soap binding) -->
<!-- semi-opaque container of network transport details classed by soap:binding above @@@ -->
<wsdl:operation name="GetLastTradePrice">
<!-- again bind to SOAP? @@@ -->
<soap:operation soapAction="http://example.com/GetLastTradePrice"/>
<!-- furthur specify that the messages in the wsdl:operation "" use SOAP? @@@ -->
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="StockQuoteService">
<wsdl:documentation>My first service</wsdl:documentation>
<!-- connect it to the binding "StockQuoteBinding" above -->
<wsdl:port name="StockQuotePort" binding="tns:StockQuoteSoapBinding">
<soap:address location="http://example.com/stockquote"/>
<!-- give the binding an network address -->
</wsdl:port>
</wsdl:service>
<!-- wsdl:types encapsulates schema definitions of communication types; here using xsd -->
<!-- request GetLastTradePriceInput is of type TradePriceRequest -->
<!-- request GetLastTradePriceOutput is of type TradePrice -->
<!-- wsdl:portType describes messages in an operation -->
<!-- wsdl:binding states a serialization protocol for this service -->
<!-- wsdl:service names a new service "StockQuoteService" -->
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]