Hmmm.. Disturbing news indeed. I'm surprised to hear that the document/literal case failed (we added the wrapping support for codegen long time ago but I'm not sure whether its pre-0.92). Unfortunaltely I cannot recommend the newer version ( 0.93) since we discovered a serious bug in one of the templates in the distribution (which means codegen would not work properly for WSDL's with SOAPActions).
Will get back to you once I run the codegen with the attached WSDL

 
On 12/17/05, Jaliya Ekanayake <[EMAIL PROTECTED]> wrote:
Hi All,

This was a feedback I got from some of my collegues in
pervasivetechnologyabs when they tried to use Axis2.
Attached is the wsdl they use and the generated classes relating to the
problem.

Thanks,

Jaliya
----- Original Message -----
From: "sima patel" < [EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 16, 2005 11:59 AM
Subject: Axis 2 Error


> Hi,
>
> I am getting following errors:
> I have one java interface and i wanted to generate wsdl file.
> I used axis1.2RC2 version to generate wsdl. and axis0.92 to generated
> stubs
> and skeletons.
> I want to point out following things.
> During wsdl generation, first i used -y"DOCUMENT" and -u"ENCODED"
> during java generation i got error that does not support "use:encoded"
> then i used -y"DOCUMENT" and -u"LITERAL"
> during java generation i got error stating "we dont support multiple
> elements
> in part"
> finally i used -y"RPC" and -u"LITERAL"
> i was able to generate java stubs and skeletons successfully
> but I got 19 compilation errors..
> According to me.. it generates faulty code
> Example: In the code there is
> OMElement.newXMLStreamReader() which does not exist
> also
> org.apache.axis2.om.OMElement emptyObject= org.apach
> e.axis2.om.OMElement.Factory.newInstance(); where Factory.newInstance()
> does
> not exist
>
> thanks
> sima
>
> ***************************
> compile:
>    [javac] Compiling 232 source files to C:\sima\votable3\classes
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveFieldDe
> tailsDatabindingSupporter.java:32: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 return
> org.apache.axis2.om.OMElement.Factory.parse
> (p
> aram.getXMLStreamReader()) ;
>    [javac]                                                     ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveFieldDe
> tailsDatabindingSupporter.java :47: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 org.apache.axis2.om.OMElement emptyObject=
> org.apach
> e.axis2.om.OMElement.Factory.newInstance();
>    [javac]
>                    ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveFieldDe
> tailsDatabindingSupporter.java :52: incompatible types
>    [javac] found   : org.apache.axis2.om.OMElement
>    [javac] required: org.apache.xmlbeans.XmlObject
>    [javac]                 return emptyObject;
>    [javac]                        ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveFieldNa
> mesDatabindingSupporter.java:12: cannot resolve symbol
>    [javac] symbol  : method newXMLStreamReader ()
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]
> (org.apache.axis2.om.OMAbstractFactory.getOMFactory(),new
> or
> g.apache.axis2.clientapi.StreamWrapper(param.newXMLStreamReader ())) ;
>    [javac]
>                                            ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveFieldNa
> mesDatabindingSupporter.java:31: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 return
> org.apache.axis2.om.OMElement.Factory.parse
> (p
> aram.getXMLStreamReader()) ;
>    [javac]                                                     ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveFieldNa
> mesDatabindingSupporter.java :46: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 org.apache.axis2.om.OMElement emptyObject=
> org.apach
> e.axis2.om.OMElement.Factory.newInstance();
>    [javac]
>                    ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveFieldNa
> mesDatabindingSupporter.java :51: incompatible types
>    [javac] found   : org.apache.axis2.om.OMElement
>    [javac] required: org.apache.xmlbeans.XmlObject
>    [javac]                 return emptyObject;
>    [javac]                        ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveResourc
> eNamesDatabindingSupporter.java:12: cannot resolve symbol
>    [javac] symbol  : method newXMLStreamReader ()
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]
> (org.apache.axis2.om.OMAbstractFactory.getOMFactory(),new
> or
> g.apache.axis2.clientapi.StreamWrapper(param.newXMLStreamReader ())) ;
>    [javac]
>                                            ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveResourc
> eNamesDatabindingSupporter.java:31: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 return
> org.apache.axis2.om.OMElement.Factory.parse
> (p
> aram.getXMLStreamReader()) ;
>    [javac]                                                     ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveResourc
> eNamesDatabindingSupporter.java :46: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 org.apache.axis2.om.OMElement emptyObject=
> org.apach
> e.axis2.om.OMElement.Factory.newInstance();
>    [javac]
>                    ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveResourc
> eNamesDatabindingSupporter.java :51: incompatible types
>    [javac] found   : org.apache.axis2.om.OMElement
>    [javac] required: org.apache.xmlbeans.XmlObject
>    [javac]                 return emptyObject;
>    [javac]                        ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableDa
> taDatabindingSupporter.java:12: cannot resolve symbol
>    [javac] symbol  : method newXMLStreamReader ()
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]
> (org.apache.axis2.om.OMAbstractFactory.getOMFactory(),new
> or
> g.apache.axis2.clientapi.StreamWrapper(param.newXMLStreamReader ())) ;
>    [javac]
>                                            ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableDa
> taDatabindingSupporter.java:31: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 return
> org.apache.axis2.om.OMElement.Factory.parse
> (p
> aram.getXMLStreamReader()) ;
>    [javac]                                                     ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableDa
> taDatabindingSupporter.java :46: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 org.apache.axis2.om.OMElement emptyObject=
> org.apach
> e.axis2.om.OMElement.Factory.newInstance();
>    [javac]
>                    ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableDa
> taDatabindingSupporter.java :51: incompatible types
>    [javac] found   : org.apache.axis2.om.OMElement
>    [javac] required: org.apache.xmlbeans.XmlObject
>    [javac]                 return emptyObject;
>    [javac]                        ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableNa
> mesDatabindingSupporter.java:12: cannot resolve symbol
>    [javac] symbol  : method newXMLStreamReader ()
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]
> (org.apache.axis2.om.OMAbstractFactory.getOMFactory(),new
> or
> g.apache.axis2.clientapi.StreamWrapper(param.newXMLStreamReader ())) ;
>    [javac]
>                                            ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableNa
> mesDatabindingSupporter.java:31: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 return
> org.apache.axis2.om.OMElement.Factory.parse
> (p
> aram.getXMLStreamReader()) ;
>    [javac]                                                     ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableNa
> mesDatabindingSupporter.java :46: cannot resolve symbol
>    [javac] symbol  : variable Factory
>    [javac] location: interface org.apache.axis2.om.OMElement
>    [javac]                 org.apache.axis2.om.OMElement emptyObject=
> org.apach
> e.axis2.om.OMElement.Factory.newInstance();
>    [javac]
>                    ^
>    [javac] C:\sima\votable3\example1
> \codegen\databinding\VotableretrieveTableNa
> mesDatabindingSupporter.java :51: incompatible types
>    [javac] found   : org.apache.axis2.om.OMElement
>    [javac] required: org.apache.xmlbeans.XmlObject
>    [javac]                 return emptyObject;
>    [javac]                        ^
>    [javac] 19 errors
>
> BUILD FAILED
>





--
Ajith Ranabahu

Reply via email to