Hi there,
 
I have a jaxb java bean which extends the following class below.  The
problem is that Axis2 includes this class as part of the WSDL as well as
underlying logic.  I had this problem with JAXB 2.1.6 when it marshalled
the object - adding @XmlTransient solved that problem.
 
@XmlTransient
public class JaxbInternalMsg implements InternalMsg {
  
  public String getEchoData() {
    return null;
  }
 
  public String getMsgType() throws GenericException {
    return null;
  }
  
  public void setEchoData(String echoData) {
  }
 
  public byte[] toExternal() throws GenericException {
    return null;
  }
 
  public String verboseToString() {
    return null;
  }
 
}
 
But when AXIS 2 generates the WSDL, it doesn't take @XmlTransient into
account. I even added @XmlTransient to each method and that didn't work
either.  I don't want this class to be included in the WSDL and
underlying logic at all. i.e. AXIS2 must not publish the class at all.

 
I even added a modified WSDL into my aar file too.  I got the modified
version of the WSDL when I called ?wsdl, but when I called the web
service, things went pearshaped because Axis2 still sent msgType and
echoData from this class in the SOAP message.
 
Is there a way to solve this?  
Thanks
~Glen
 

Reply via email to