oslezka wrote:

I made simplest service
class StockQuoteService  have two methods
public void subscribe(OMElement in)
public OMElement getQuote(OMElement in)
and
services.xml
<service>
<parameter name="ServiceClass" locked="false">stock.StockQuoteService</parameter>
   <operation name="getQuote">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
   </operation>
    <operation name="subscribe">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
   </operation>
</service>

When I trying cteate stub by invoke WSDL2Java.bat -uri http://localhost/axis2/services/StockQuoteService?wsdl -o E:\Projects\axis2\src\client
I take error message
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:96)
       at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
       at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: WSDLException (at /error): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.: at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
       at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
       at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
       at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:238) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:81)

Where this element expected - in services.xml?
Or what happening at all?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to