My mistake...

Sharad, your WSDL is probably missing a <fault> nested in your
<binding>...hence Axis is complaining about it.

Look at the example here:
http://www.gridlab.org/WorkPackages/wp-5/guide/faults.html



-----Original Message-----
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 20, 2006 6:25 PM
To: axis-user@ws.apache.org
Subject: Re: CodeGeneration error while using commandline batch file
WSDL2Java

Brennan,

Please file a JIRA bug with *your* wsdl :)

-- dims

On 9/20/06, Spies, Brennan <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Sharad,
>
>
>
> This is definitely a bug (I can reproduce using similar WSDL on the latest
> nightly). It throws a RuntimeException complaining that "Element QName is
> null for [/message/name/text()]!"
>
>
>
> You should file a JIRA issue on this:
> https://issues.apache.org/jira/browse/AXIS2.
>
>
>
>
>
> -----Original Message-----
>  From: Sharad Baronia [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, September 20, 2006 5:32 PM
>  To: axis-user@ws.apache.org
>  Subject: RE: CodeGeneration error while using commandline batch file
> WSDL2Java
>
>
>
>
>
>
> Hi,
>
>
>
> After removed the Fault Exception, and then it generates the classes. But
it
> doesn't generate classes for each operation, and classes for input, &
output
> of an operation.
>
> I thing I am missing something. !!!!! It misses the objective of code
> generation.!!!!
>
>
>
> Can anyone help me....
>
>
>
> /Sharad
>
>
>
>  ________________________________
>
>
> From: Sharad Baronia [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, September 20, 2006 4:40 PM
>  To: axis-user@ws.apache.org
>  Subject: RE: CodeGeneration error while using commandline batch file
> WSDL2Java
>
>
>
> Hi All,
>
>
>
>   Sorry for causing confusion in my previous. This is my first to email to
> this user group.
>
>
>
>   I am using Axis2 nightly build (Sept-20)
>
>
>
>   When using WSDL2Java, it generates runtime error :
java.lang.RuntimeExcept
>
> ion: Element QName is null for CorporateActionExceptionFault
[<wsdl:message
> name="CorporateActionExceptionFault">
>
>  <wsdl:part name="fault"
> type="tns:CorporateActionException"/>
>
> </wsdl:message>].
>
>
>
>  I have attached wsdl file in my previous email.
>
>
>
> /Sharad
>
>
>
>  ________________________________
>
>
> From: Sharad Baronia [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, September 20, 2006 4:13 PM
>  To: axis-user@ws.apache.org
>  Subject: CodeGeneration error while using commandline batch file WSDL2Java
>
>
>
> Hi,
>
>
>
> I was using Axis2 1.0 WS2DL2Java was working fine, but I was getting some
> runtime error. So I decided to download nightly build which is giving me
> runtime error.
>
> I have attached the wsdl file for reference.
>
> !!!!Help need!!!!!!
>
>
>
>
>
> Thanks,
>
>
>
> /Sharad
>
>
>
>
>
> C:\apache\axis2v1night\bin>wsdl2Java -uri c:\
> test1\corporateaction.wsdl -o c:\test1 -l java -a -s -t -ss -sd -g -u -ssi
>
> Using AXIS2_HOME:   C:\apache\axis2v1night
>
> Using JAVA_HOME:    C:\j2sdk1.4.2_12
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
>
> : org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeExcept
>
> ion: Element QName is null for CorporateActionExceptionFault!
>
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
>
> ationEngine.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.Runt
>
> imeException: Element QName is null for CorporateActionExceptionFault!
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
>
> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:769)
>
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
>
> ationEngine.java:206)
>
>         ... 2 more
>
> Caused by: java.lang.RuntimeException: Element QName is null for
> CorporateAction
>
> ExceptionFault!
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
>
> itter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1763)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
>
> itter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1713)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
>
> itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1430)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
>
>
itter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmit
ter
>
> .java:1352)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
>
>
itter.writeSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1297)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
>
> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:733)
>
>         ... 3 more
>
>
> ___________________________________________________________________________
>
>  All outbound Email is scanned by Nexa Technologies Email Security Systems.
> ___________________________________________________________________________
>
> ___________________________________________________________________________
>
>  Inbound Email has been scanned by Nexa Technologies Email Security
Systems.
> ___________________________________________________________________________
>
>
> ___________________________________________________________________________
>
>  All outbound Email is scanned by Nexa Technologies Email Security Systems.
> ___________________________________________________________________________
>
> ___________________________________________________________________________
>
>  Inbound Email has been scanned by Nexa Technologies Email Security
Systems.
> ___________________________________________________________________________
>
>
> ___________________________________________________________________________
>
>  All outbound Email is scanned by Nexa Technologies Email Security Systems.
> ___________________________________________________________________________
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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


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

Reply via email to