Why are only some of my attributes shown in the response xml of jaxws?
        Posted  
        
            by Andreas
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Andreas
        
        
        
        Published on 2010-04-27T12:32:05Z
        Indexed on 
            2010/04/27
            12:33 UTC
        
        
        Read the original article
        Hit count: 330
        
I created a jaxws webservice, but it returns only some of the attributes of my objects in the response xml.
E.g.
public class MyObject {
   private String attribute1;
   private String attribute2;
   //getter and setter
}
But the returned XML only contains
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:getVariantsResponse xmlns:ns2="mynamespace">
         <myObject>
            <attribute1>stringcontent</attribute1>
         </myObject>
             ....
        © Stack Overflow or respective owner