axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meeusen, Christopher W." <Meeusen.Christop...@mayo.edu>
Subject RE: inheritance in axis2
Date Mon, 26 Apr 2010 19:22:43 GMT
Update:  When I moved the ServiceResponse class to the same package as
the child class, everything works fine.  My client then sees the fields
populated correctly.  This defeats the point of using inheritance
because I will have to have a copy of this class in each of my packages,
so using in this fashion is not an option.  Has anyone ran into a
similar problem with inheritance of java beans in the returned bean?

 

Thanks,

Chris

 

From:
java-user-return-82788-Meeusen.Christopher=mayo.edu@axis.apache.org
[mailto:java-user-return-82788-Meeusen.Christopher=mayo.edu@axis.apache.
org] On Behalf Of Meeusen, Christopher W.
Sent: Monday, April 26, 2010 12:20 PM
To: axis-user@ws.apache.org
Subject: RE: inheritance in axis2

 

Is this the correct mailing list for this question? 

 

Thanks,

Chris 

 

From: Meeusen, Christopher W. 
Sent: Monday, April 26, 2010 11:38 AM
To: axis-user@ws.apache.org
Subject: inheritance in axis2

 

Hi,

 

We are using axis2.4 we generate our services code first then use the
axis2 service archiver eclipse plugin to generate our WSDLs.  We are
having an issue when we try to use inheritance on our return objects.
We have several fields which will be returned by all of our service
methods, I've thrown those fields in a base class and extend that class
from other classes.  

 

Here is my base class:

 

public class ServiceResponse 

{

      private String advisoryMessage, replyCode;

      private boolean success;

 

      public ServiceResponse(String advisoryMessage, String replyCode,
boolean success) 

      {

            super();

            this.advisoryMessage = advisoryMessage;

            this.replyCode = replyCode;

            this.success = success;

      }

      public ServiceResponse()

      {

            

      }

      public String getAdvisoryMessage() {

            return advisoryMessage;

      }

      public void setAdvisoryMessage(String advisoryMessage) {

            this.advisoryMessage = advisoryMessage;

      }

      public String getReplyCode() {

            return replyCode;

      }

      public void setReplyCode(String replyCode) {

            this.replyCode = replyCode;

      }

      public boolean isSuccess() {

            return success;

      }

      public void setSuccess(boolean successful) {

            this.success = successful;

      }

}

 

Here is my subclass:

public class ImmunizationReportResult extends ServiceResponse

{

 

      public ImmunizationReportResult() 

      {

            super();

            // TODO Auto-generated constructor stub

      }

 

      public ImmunizationReportResult(String advisoryMessage, String
replyCode, boolean success) 

      {

            super(advisoryMessage, replyCode, success);

            // TODO Auto-generated constructor stub

      }

 

}

 

The two classes are in separate packages, there is no exception being
thrown, the issue is that my client apps can't see any of the fields in
the ImmunizationReportResult object.  The values for those fields are
the initial values even though I populate them in the service and SOAPUI
sees the fields being populated correctly.  I suspect there might be an
issue in the generated wsdl, does anyone know how to resolve this issue?

 

Thanks,

 

Chris


Mime
View raw message