axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21817] New: - Java2WSDL creates elements for read only bean properties
Date Tue, 22 Jul 2003 23:30:42 GMT
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;
  }
}

Mime
View raw message