May be your wsdl file is malformed. Please validate your wsdl using a tool like eclipse wsdl validator. If possible post your wsdl file...
thanks, Thilina On Mon, May 19, 2008 at 1:32 PM, skpathi <[EMAIL PROTECTED]> wrote: > > hi > i am getting following exception while to generate a stub using WSDL2Java > > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: Element QName is null for WebServiceException! > > > > Any help is very much appreciated. > > Thanks & Regards > skpathi > > the command is > > java -cp > C:\ccss\WA_PA_ST3\ProvOne\ProvOneComp\WAMMIS\JavaSource\LIB\axis-lib.jar > org.apache.axis2.wsdl.WSDL2Java -d xmlbeans -o C:\TTMP\WS_CLIENTS\PA_SXC -p > com.ecams.priorauth.handler.stub -uri > C:\TTMP\WS_CLIENTS\PA_SXC\PARequestCreate.wsdl > > > > here is the stack trace > > > C:\TTMP\WS_CLIENTS\PA_SXC>java -cp > C:\ccss\WA_PA_ST3\ProvOne\ProvOneComp\WAMMIS\JavaSource\LIB\axis-lib.jar > org.apache.axis2.wsdl.WSDL2Java -d xmlbeans -p > com.ecams.priorauth.handler.stub -uri PARequestCreate.wsdl > Retrieving document at 'exception.wsdl', relative to > 'file:/C:/TTMP/WS_CLIENTS/PA_SXC/'. > Retrieving schema at 'user_common.xsd', relative to > 'file:/C:/TTMP/WS_CLIENTS/PA_SXC/'. > Retrieving schema at 'sxc_common.xsd', relative to > 'file:/C:/TTMP/WS_CLIENTS/PA_SXC/'. > May 19, 2008 2:30:23 PM > org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver > resolveEntity INFO: > Resolving schema with publicId [http://common.webservice.sxc.com] and > systemId [sxc_common.xsd] > May 19, 2008 2:30:23 PM > org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver > resolveEntity INFO: > Resolving schema with publicId [http://common.user.webservice.sxc.com] and > systemId [user_common.xsd] > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: Element QName is null for WebServiceException! > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: Element QName is null for WebServiceException! > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:295) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213) > ... 2 more > Caused by: java.lang.RuntimeException: Element QName is null for > WebServiceException! > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1864) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1795) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1546) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1463) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:688) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:663) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:270) > ... 3 more > C:\TTMP\WS_CLIENTS\PA_SXC> > > -- > View this message in context: > http://www.nabble.com/WSDL2Java-tp17325168p17325168.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thilina Gunarathne - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]