axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lam, King" <>
Subject question about usage of org.apache.axis.client.Service
Date Mon, 31 Jan 2005 20:08:32 GMT

I am not sure if there will be future problem the way that I am using the Service class.

I initilized the service class as static class in the super class.

super class:
public static org.apache.axis.client.Service axisService; 
	axisService = new org.apache.axis.client.Service();                 

I am using the same axisService that was initialized from the super class to create the Stub
class that was auto-generated from the WSDL2Java in the subclasses:

binding = new CreateScheduleTransferFundsV001Stub(new, axisService);   

Is there problems the way that I am using it? I didn't use the ServiceLocator class that was
generated. The reason that I am using a static service class is that it may improve the performance
because I don't have to create the service class everytime. Not sure if this is true.

-King Lam

View raw message