Thanks Charitha , I have missed that on my service.xml . Now I'm getting similar error but with the element on a property error
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement badge badge was one of the property in the object. For just a brief of what I'm doing. I have a service which returns an custom object array (custom object has few properties). Steps I have followed are 1) Created a service class and the custom object (under a package structure eg., com.xyz.abc). Withing the service method I'm returning the custom object. 2) generated the wsdl file using java2wsdl utility on axis2 (with options tns, stns etc) 3) copied this wsdl to META-INF directory along with the services.xml (with the necessary params added) 4) created a .aar file using the ant build 5) deployed to tomcat using the wsdl I have generated axis stub and with a client I invoked the service, now I'm getting that error. The above service works if I'm doing the following steps: step 1 step 3 - without any wsdl step 4 step 5 using the default wsdl(the one axis2 automatically generated) I haven't generated axis stub and with a client I invoked the service - it works fine. The problem is the default wsdl doesn't have a proper target namespace/schema namespace etc., so I have decided to create custom wsdl and do the first option but it does work for returning string objects but not for the custom object and result in that unexpected subelement x... Any suggestions from your side would be welcome :)- thanks, Raj -- View this message in context: http://www.nabble.com/axis2-wsdl-issue-tp19949462p19964282.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
