Hi,
Now it works. Why message-part-type works for input/output, but doesn't
work for fault? This is problem in the code--->you have to change to support
message-part-type for fault?
------------------
Problem version:
------------------
<xsd:complexType
name="CorporateActionException">
<xsd:sequence>
<xsd:element name="cause"
type="xsd:int"/>
<xsd:element name="msgtxt"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<wsdl:message name="CorporateActionExceptionFault">
<wsdl:part name="fault"
type="tns:CorporateActionException"/>
</wsdl:message>
------------------
Working version:
------------------
<xsd:element name="CorporateActionException">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="cause"
type="xsd:int"/>
<xsd:element name="msgtxt"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<wsdl:message name="CorporateActionExceptionFault">
<wsdl:part name="fault"
element="tns:CorporateActionException"/>
</wsdl:message>
Thanks,
/Sharad
-----Original Message-----
From: Sharad Baronia [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 10:53 AM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: CodeGeneration error while using commandline batch file
WSDL2Java
Hi,
I have attached new wsdl file, which is validated with XMLSPY. Still
WSDL2Java gives error. Any thoughs!!
C:\apache\axis2v1night\bin>wsdl2Java -uri
D:\sbaronia\workspace\test\corporateac
tion.wsdl -o c:\test1 -l java -d adb -a -s -t -ss -sd -g -u -ssi
Using AXIS2_HOME: C:\apache\axis2v1night
Using JAVA_HOME: C:\j2sdk1.4.2_12
Sep 21, 2006 10:51:15 AM org.apache.axis2.schema.SchemaCompiler writeElement
WARNING: Could not find any schema type associated with the Element
'{http://www
.nexa.com/corporateaction/}GetCorporateActionsByActionTypeAndSymbolResponse'
Sep 21, 2006 10:51:15 AM org.apache.axis2.schema.SchemaCompiler writeElement
WARNING: Could not find any schema type associated with the Element
'{http://www
.nexa.com/corporateaction/}GetCorporateActionsByExDateResponse'
Sep 21, 2006 10:51:15 AM org.apache.axis2.schema.SchemaCompiler writeElement
WARNING: Could not find any schema type associated with the Element
'{http://www
.nexa.com/corporateaction/}GetCorporateActionsBySymbolResponse'
Sep 21, 2006 10:51:15 AM org.apache.axis2.schema.SchemaCompiler writeElement
WARNING: Could not find any schema type associated with the Element
'{http://www
.nexa.com/corporateaction/}GetCorporateActionsBySymbolAndExDateResponse'
Sep 21, 2006 10:51:15 AM org.apache.axis2.schema.SchemaCompiler writeElement
WARNING: Could not find any schema type associated with the Element
'{http://www
.nexa.com/corporateaction/}GetCorporateActionsByActionTypeAndSymbolAndExDate
Resp
onse'
Sep 21, 2006 10:51:15 AM org.apache.axis2.schema.SchemaCompiler writeElement
WARNING: Could not find any schema type associated with the Element
'{http://www
.nexa.com/corporateaction/}GetCorporateActionsByActionTypeResponse'
Sep 21, 2006 10:51:15 AM org.apache.axis2.schema.SchemaCompiler writeElement
WARNING: Could not find any schema type associated with the Element
'{http://www
.nexa.com/corporateaction/}GetCorporateActionsByActionTypeAndExDateResponse'
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(AxisServiceBasedMultiLanguageEmi
tter
.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
Thanks,
/Sharad
-----Original Message-----
From: Spies, Brennan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 8:54 AM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: CodeGeneration error while using commandline batch file
WSDL2Java
Darn, this "delegation" thing never works for me... ;)
Will do.
-----Original Message-----
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 6:25 PM
To: [email protected]
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: [email protected]
> 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: [email protected]
> 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: [email protected]
> 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(AxisServiceBasedMultiLanguageEmi
t
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]
___________________________________________________________________________
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.
___________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]