axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Schmidt <maulwurf-i...@gmx.de>
Subject WSDL2Java problem: Exception after switch to interface mode
Date Wed, 18 Jan 2006 18:18:31 GMT
Hi,
I've got another confusing Exception...

Earlier I generated the WSDL files using AXIS 1.2 and everything was fine.
But i need the asynchronous webservice support from axis2.
Why is it more complicated to generate the Code with the WSDL2Java Tool 
provided by AXIS2?

So here is an Exception after the tool switches to interface mode:
below i will post the wsdl file:

If someone knows some help on this problem, i would be very happy.

thanx



C:\Programmierung\AXIS2\AXIS_94\bin>WSDL2Java -uri 
parlayx_common_faults_2_0.wsdl -ss -sd -o .\showcase
Retrieving schema at 'parlayx_common_types_2_0.xsd'.
[";",<74> [25:53-25:54]]
[";",<74> [50:48-50:49]]
["{",<7> [115:95-115:96]]
["{",<7> [160:70-160:71]]
["}",<8> [172:13-172:14]]
["}",<8> [184:13-184:14]]
- Pretty print file : 
.\showcase\src\org\csapi\www\schema\parlayx\common\v2_0\ServiceException.java
[";",<74> [25:53-25:54]]
[";",<74> [50:48-50:49]]
["{",<7> [115:95-115:96]]
["{",<7> [160:70-160:71]]
["}",<8> [172:13-172:14]]
["}",<8> [184:13-184:14]]
- Pretty print file : 
.\showcase\src\org\csapi\www\schema\parlayx\common\v2_0\PolicyException.java
[";",<74> [26:101-26:102]]
["{",<7> [53:95-53:96]]
["{",<7> [84:70-84:71]]
- Pretty print file : 
.\showcase\src\org\csapi\www\schema\parlayx\common\v2_0\ServiceException0.java
[";",<74> [26:99-26:100]]
["{",<7> [53:95-53:96]]
["{",<7> [84:70-84:71]]
- Pretty print file : 
.\showcase\src\org\csapi\www\schema\parlayx\common\v2_0\PolicyException1.java
Warning -No services found - switched to the interface mode!
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: Cannot form the core class name
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:118)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: Cannot form the core class name
        at 
org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitSkeleton(MultiLanguageClientEmitter.java:644)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:107)
        ... 2 more
Caused by: java.lang.RuntimeException: Cannot form the core class name
        at 
org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.getCoreClassName(MultiLanguageClientEmitter.java:1238)
        at 
org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.createDOMDocumentForSkeleton(MultiLanguageClientEmitter.java:470)
        at 
org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.writeSkeleton(MultiLanguageClientEmitter.java:1182)
        at 
org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitSkeletonInterface(MultiLanguageClientEmitter.java:707)
        at 
org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitSkeletonAutomatic(MultiLanguageClientEmitter.java:655)
        at 
org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitSkeleton(MultiLanguageClientEmitter.java:634)
        ... 3 more







Tha WSDL file:


<?xml version="1.0" encoding="UTF-8"?>
<!-- August 13, 2004 -->
<wsdl:definitions
   name="common_faults"
   targetNamespace="http://www.csapi.org/wsdl/parlayx/common/v2_0/faults"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   
xmlns:parlayx_common_xsd="http://www.csapi.org/schema/parlayx/common/v2_0">

   <wsdl:types>
      <xsd:schema elementFormDefault="qualified">
         <xsd:import 
namespace="http://www.csapi.org/schema/parlayx/common/v2_0" 
schemaLocation="parlayx_common_types_2_0.xsd"/>
      </xsd:schema>
   </wsdl:types>

   <wsdl:message name="ServiceException">
      <wsdl:part name="ServiceException" 
element="parlayx_common_xsd:ServiceException"/>
   </wsdl:message>

   <wsdl:message name="PolicyException">
      <wsdl:part name="PolicyException" 
element="parlayx_common_xsd:PolicyException"/>
   </wsdl:message>
</wsdl:definitions>




Mime
View raw message