Hello, I've been using Axis2 successfully to generate client stubs for several commercial products such as HP Service Manager to integrate our monitoring tool with those products using web services. My problem is that the commercial tools allow for some customization of the web services so they expose some additional fields. When I generate the stubs using a vanilla system, and then give my code to another customer that has exposed a user-defined field, I always get the "org.apache.axis2.databinding.ADBException: Unexpected subelement" exception. My code does not need those user-defined fields, and always leaves them empty.
I would really like to share the same code with all customers, but this exception makes it impossible. Does anyone have any tips for me? I've considered putting the stubs in a dynamically loaded class, and generating them at each customer. Would that work? Is there an easier way? Thanks, Remko Dobber
