[jboss-user] [JBossWS] - Re: enumerations in jboss ws...
do-not-reply at jboss.com
Wed Jan 31 02:56:23 EST 2007
It's like when you're trying to break into a house - you assume the door is locked and can't figure out why you can't open it!
Well turns out that all that mapping stuff for the enum is surplus to requirements as far as jboss is concerned. You just remove it and it works fine!
| <root-type-qname xmlns:rtq="http://sanlam.co.za/employeebenefits/dto/1">rtq:IncomeTypeEnum</root-type-qname>
I took a simple remote interface which took as a parameter an object following the enum pattern and generated the wsdl and mapping file with jboss and no mappings for the values in the enumeration were generated.
The lines in red above are not necessary in jboss, and it uses the fromValue method to resolve the enum data type. Very impressive.
What I didn't mention is that the jaxrpc mapping file was generated by wsdl2java from WAS which generates mapping files which have this stuff included. I'm not so sure why it even bothers as that information is available from the wsdl. I removed the mapping and tested my simple web service and it behaved just fine.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008677#4008677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008677
More information about the jboss-user