You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/07/23 01:30:42 UTC

DO NOT REPLY [Bug 21817] New: - Java2WSDL creates elements for read only bean properties

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21817>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21817

Java2WSDL creates elements for read only bean properties

           Summary: Java2WSDL creates elements for read only bean properties
           Product: Axis
           Version: 1.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: barry_schwarz@affymetrix.com


I generated WSDL with some beans that had read only properties
The type information contained elements for all properties.

Try generating WSDL for the class below.  The Corresponding
entry in the types element should have one subelement 
for "thing".  You'll get elements for "thing" and "something".

I browsed through the code and it looks like the BeanSerializer
fails to check if a property is writable when it generates the
schema and when it serializes.


public class MyBean {

  private String thing;

  public MyBean(){}

  public abstract String getSomething();

  public String getThing() {
    return thing;
  }

  public void setThing(String s) {
    thing=s;
  }
}