This comes up from users over and over again, i've not looked into the details of whats going on but wonder isn't there something we could do so that Tuscany works out-of-the-box when using parameters that are interfaces or unannotated POJOs? There must be some way we can recognize those cases and either configure the databinding to just work or even use cglib to generate classes that workwith the databinding framework couldn't we?
...ant ---------- Forwarded message ---------- From: Raymond Feng <[email protected]> Date: Fri, Jun 5, 2009 at 4:40 PM Subject: Re: using webservices transparent To: [email protected] We use JAXB internally to support POJO for WS/XML. The POJOs are mapped to/from XML following the JAXB rules. If you have an external WSDL/XSD, you are recommended to use wsimport tool to generate the Java interface which accurately represents the WSDL/XSD. Please see an example at: https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/zipcode-jaxws/ (We actually use the same WS as you do :-). Of course you can still handcraft the POJOs, but you might have to add a few JAXB annotations to map the namespaces. To unmarshal the XML into JAXB/POJO, if a property is not found, it is ignored. That's why you see the empty data.
