Hi ,
i use Axis2 1.4 version and i have to expose some POJO methods as a web
service. Some of those methods take Enum type as method arguments , once i
expose those methods i notice following issues.
1) . The automatically generated WSDL file does not contain appropriate
schema structure for Enum .
as a sample for
public enum MessageType {
SIMPLE_MSG,
COMPLEX_MSG
}
it only generate following type without Enum values
<xs:complexType name="MessageType">
<xs:complexContent>
<xs:extension base="xs:Enum">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
So is there any way to correct this behaviour ..?
if i provide a original WSDL file with "useOriginalwsdl" parameter , how can
i map above Enum to Schema in order to call my methods properly ..?
2.) I used WSDL2JAVA to generate the Clint codes , it generate a class for
Enum type but without values.so how can i handle in client side without
using primary API..?
It is a great help if some one can give right direction for this ..
Thanks ,
--
Sagara Gunathunga
Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/