Hi Sagara ,
I am sorry Axis2 does not support enum , but we have a plan to implement
that in very near future.

Deepal
> 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 <http://ssagara.blogspot.com>
> Web - http://sagaras.awardspace.com/

-- 
Thank you!


http://blogs.deepal.org


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

Reply via email to