The WSDL emmitter appears to have broken in last couple of days.

Problem is if a bean does not have a 'getter' for the 'public field' then
the WSDL generated is incomplete.  It is missing 'most' of the major element
types.  (i.e. <types>, <operation>, <message> etc)  
By simply adding the getMyField accessor method, this is corrected.
I tried yesterday's and todays build which both produce the malformed WSDL.
(or at least what I believe to be malformed)
I loaded 3/31and this issue does not appear there.

A follow on question:
The reason this showed up is I am investigating why a bean that has a public
field but no public accesser (getter) method for that field fails to get
serialized correctly.  Since methods aren't of any real value on an object
reference anyway, wouldn't the 'public' on the field in the Web service
class be a correct definition?
I understand that in BeanSerializer the getPd uses the
getPropertyDescriptors of the BeanInfo class requires this structure, but is
there a reason other than the implementation of the code that this is
required?

Thanks,

Chris Peake     



Reply via email to