butek 02/03/27 10:17:43 Modified: java TODO.txt java/src/javax/xml/rpc ServiceFactory.java java/src/org/apache/axis/client ServiceFactory.java Log: I've updated javax.xml.rpc.ServiceFactory to JAX-RPC 0.8 and changed org.apache.axis.client.ServiceFactory to implement it (though I haven't filled in the implementation, yet). Revision Changes Path 1.30 +1 -0 xml-axis/java/TODO.txt Index: TODO.txt =================================================================== RCS file: /home/cvs/xml-axis/java/TODO.txt,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- TODO.txt 27 Mar 2002 16:46:54 -0000 1.29 +++ TODO.txt 27 Mar 2002 18:17:43 -0000 1.30 @@ -20,6 +20,7 @@ ! <> Implement Service.getCalls() method. (maybe) ! <> Implement generated Services' getCalls() method. ! <> Implement Service.getHandlerRegistry() method. +! <> Implement ServiceFactory.createService methods. ! <> Remove standard property constants from org.apache.axis.client.Call after beta2. ! <> Remove ParameterMode.PARAM_MODE_* constants after beta2. 1.3 +8 -1 xml-axis/java/src/javax/xml/rpc/ServiceFactory.java Index: ServiceFactory.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/javax/xml/rpc/ServiceFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ServiceFactory.java 5 Feb 2002 19:37:48 -0000 1.2 +++ ServiceFactory.java 27 Mar 2002 18:17:43 -0000 1.3 @@ -72,6 +72,13 @@ protected ServiceFactory() {} /** + * A constant representing the property used to lookup the name of a + * ServiceFactory implementation class. + */ + public static final java.lang.String SERVICEFACTORY_PROPERTY = + "javax.xml.rpc.ServiceFactory"; + + /** * Gets an instance of the ServiceFactory. * <p>Only one copy of a factory exists and is returned to the * application each time this method is called. @@ -83,7 +90,7 @@ public static ServiceFactory newInstance() throws ServiceException { String factoryImplName = System.getProperty("javax.xml.rpc.ServiceFactory", - "com.sun.xml.rpc.client.ServiceFactoryImpl"); + "org.apache.axis.client.ServiceFactory"); try { Class clazz = Class.forName(factoryImplName); return (ServiceFactory) clazz.newInstance(); 1.7 +37 -2 xml-axis/java/src/org/apache/axis/client/ServiceFactory.java Index: ServiceFactory.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/ServiceFactory.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ServiceFactory.java 11 Feb 2002 18:55:29 -0000 1.6 +++ ServiceFactory.java 27 Mar 2002 18:17:43 -0000 1.7 @@ -55,10 +55,13 @@ package org.apache.axis.client; -import org.apache.axis.EngineConfiguration; import org.apache.axis.AxisFault; +import org.apache.axis.EngineConfiguration; + import org.apache.axis.configuration.DefaultEngineConfigurationFactory; +import org.apache.axis.utils.JavaUtils; + import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.Name; @@ -69,6 +72,8 @@ import javax.naming.spi.ObjectFactory; +import javax.xml.rpc.ServiceException; + import javax.xml.rpc.namespace.QName; import java.lang.reflect.Constructor; @@ -86,7 +91,8 @@ * @author Glen Daniels ([EMAIL PROTECTED]) */ -public class ServiceFactory implements ObjectFactory { +public class ServiceFactory extends javax.xml.rpc.ServiceFactory + implements ObjectFactory { // Constants for RefAddrs in the Reference. public static final String SERVICE_CLASSNAME = "service classname"; public static final String WSDL_LOCATION = "WSDL location"; @@ -214,4 +220,33 @@ } return instance; } // getObjectInstance + + /** + * Create a Service instance. + * @param wsdlDocumentLocation URL for the WSDL document location + for the service + * @param serviceName QName for the service. + * @return Service. + * @throws ServiceException If any error in creation of the specified service + */ + public javax.xml.rpc.Service createService(URL wsdlDocumentLocation, + QName serviceName) throws ServiceException { + throw new ServiceException(JavaUtils.getMessage( + "notImplemented00", "ServiceFactory.createService")); + } // createService + + /** + * Create a Service instance. + * + * Not yet implemented. + * + * @param serviceName QName for the service + * @return Service. + * @throws ServiceException If any error in creation of the specified service + */ + public javax.xml.rpc.Service createService(QName serviceName) + throws ServiceException { + throw new ServiceException(JavaUtils.getMessage( + "notImplemented00", "ServiceFactory.createService")); + } // createService }