wsdl2java utilisant Apache Axis2 for WSDL sans service

J’essaie de générer des classes Java à partir d’un WSDL en utilisant Apache Axis2. Mais chaque fois qu’il échoue avec les journaux suivants:

~/Downloads/axis2-1.6.1/bin $ ./wsdl2java.sh -ssi -uri ../HelloWorld.wsdl Using AXIS2_HOME: /home/prpandey/Downloads/axis2-1.6.1 Using JAVA_HOME: /softwares/jdk1.6.0_31 Resortingeving document at '../HelloWorld.wsdl'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:175) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: org.apache.axis2.AxisFault: No services found in the WSDL at file:/home/prpandey/Downloads/axis2-1.6.1/bin/../HelloWorld.wsdl with targetnamespace http://www.example.org/HelloWorld/ at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:115) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:169) ... 2 more 

Voici le fichier WSDL: http://pastie.org/3719679

Votre WSDL ne définit pas de balise wsdl:service . Serait-ce l’erreur?

S’il vous plaît append une binding et un service et réessayez.