You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by don t <do...@verizonwireless.com> on 2008/09/24 00:51:07 UTC

Common fault used by multiple WSDL files

Our application is composed of several Web services. Each service has its own
target namespace and Java package. Each service also have some common
methods with the same signatures. The problem is Axis2 wsdl2java generates
Fault classes in each service's target namespace instead of some common
namespace. We're forced to redundantly implement the common methods for each
service like this because wsdl2java creates a different Fault class for each
service.

public class ServiceA extends CommonService implements ServiceAInterface {
	public String getVersion() throws a.Fault { ... }
}

public class ServiceB extends CommonService implements ServiceBInterface {
	public String getVersion() throws b.Fault { ... }
}


Ideally we want to refactor common methods to a parent class like this.

public class CommonService {
	public String getVersion() throws common.Fault { ... }
}

Is this doable with Axis2, or if not are there other better ways to refactor
this?
-- 
View this message in context: http://www.nabble.com/Common-fault-used-by-multiple-WSDL-files-tp19638471p19638471.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org