axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashut...@apache.org
Subject svn commit: r233141 - in /webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws: ./ security/
Date Wed, 17 Aug 2005 09:46:08 GMT
Author: ashutosh
Date: Wed Aug 17 02:45:52 2005
New Revision: 233141

URL: http://svn.apache.org/viewcvs?rev=233141&view=rev
Log:
changed jax-ws api

Added:
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/EndpointFactory.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Holder.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/RequestWrapper.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ResponseWrapper.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebEndpoint.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebServiceClient.java
Removed:
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ParameterMode.java
Modified:
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Endpoint.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ProtocolException.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ServiceFactory.java
    webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/security/MessageSecurity.java

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Endpoint.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Endpoint.java?rev=233141&r1=233140&r2=233141&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Endpoint.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Endpoint.java
Wed Aug 17 02:45:52 2005
@@ -24,9 +24,100 @@
  * @author shaas02
  * @see     EndpointFactory.createEndpoint(java.net.URI, java.lang.Object), Binding, Executor
  */
+/**
+ * @author shaas02
+ *
+ */
 public interface Endpoint {
 
 	static final java.lang.String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
 	
 	static final java.lang.String WSDL_PORT = "javax.xml.ws.wsdl.port";
+	
+	/**
+	 * Returns the binding for this endpoint.
+	 * @return The binding for this endpoing
+	 */
+	Binding getBinding();
+	
+	/**
+	 * Returns the implementation object for this endpoint.
+	 * @return The implementor for this endpoint
+	 */
+	java.lang.Object getImplementor();
+	
+	/**
+	 * Publishes this endpoint at the given address. The necessary server infrastructure will
be created and configured by the
+	 * JAX-WS implementation using some default configuration. In order to get more control
over the server configuration,
+	 * please use the javax.xml.ws.Endpoint#publish(Object) method instead.
+	 * @param address - A URI specifying the address and transport/protocol to use. By default,
a http: URI results in a
+	 * SOAP/HTTP binding being used. Implementations may support other URI schemes.
+	 */
+	void publish(java.lang.String address);
+	
+	/**
+	 * Publishes this endpoint at the provided server context. A server context encapsulates
the server infrastructure and
+	 * addressing information for a particular transport. For a call to this method to succeed,
the server context passed as an
+	 * argument to it must be compatible with the endpoint's binding.
+	 * @param serverContext - An object representing a server context to be used for publishing
the endpoint.
+	 * @throws java.lang.IllegalArgumentException - If the provided server context is not supported
by the
+	 * implementation or turns out to be unusable in conjunction with endpoint's binding.
+	 */
+	void publish(java.lang.Object serverContext) throws java.lang.IllegalArgumentException;
+	
+	/**
+	 * Stops publishing this endpoint.
+	 */
+	void stop();
+	
+	/**
+	 * Returns true if the endpoint has been published.
+	 * @return true if the endpoint has been published
+	 */
+	boolean isPublished();
+	
+	/**
+	 * Returns a list of metadata documents for the service.
+	 * @return List<javax.xml.transform.Source> A list of metadata documents for the service
+	 */
+	java.util.List<javax.xml.transform.Source> getMetadata();
+	
+	/**
+	 * Sets the metadata for this endpoint.
+	 * @param metadata - A list of XML document sources containing metadata information for
the endpoint (e.g. WSDL or
+	 * XML Schema documents)
+	 * @throws java.lang.IllegalStateException - If the endpoint has already been published.
+	 */
+	void setMetadata(java.util.List<javax.xml.transform.Source> metadata) throws java.lang.IllegalStateException;
+	
+	/**
+	 * Returns the executor for this Endpointinstance. The executor is used to dispatch an incoming
request to the implementor
+	 * object.
+	 * @return The java.util.concurrent.Executor to be used to dispatch a request.
+	 * @see Executor
+	 */
+	java.util.concurrent.Executor getExecutor();
+	
+	/**
+	 * Sets the executor for this Endpoint instance. The executor is used to dispatch an incoming
request to the implementor
+	 * object. If this Endpoint is published using the publish(Object) method and the specified
server context defines its
+	 * own threading behavior, the executor may be ignored.
+	 * @param executor - The java.util.concurrent.Executor  to be used to dispatch a request.
+	 * @throws java.lang.SecurityException - If the instance does not support setting an executor
for security reasons (e.g.
+	 *  the necessary permissions are missing).
+	 *  @see Executor
+	 */
+	void setExecutor(java.util.concurrent.Executor executor) throws java.lang.SecurityException;
+	
+	/**
+	 * Returns the property bag for this Endpoint instance.
+	 * @return Map<String,Object> The property bag associated with this instance.
+	 */
+	java.util.Map<java.lang.String,java.lang.Object> getProperties();
+	
+	/**
+	 * Sets the property bag for this Endpoint instance.
+	 * @param properties - The property bag associated with this instance.
+	 */
+	void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties);
 }

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/EndpointFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/EndpointFactory.java?rev=233141&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/EndpointFactory.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/EndpointFactory.java
Wed Aug 17 02:45:52 2005
@@ -0,0 +1,77 @@
+package javax.xml.ws;
+
+/**
+ * An abstract class that provides a factory for the creation of instances of the type javax.xml.ws.Endpoint.
This abstract class
+ * follows the abstract static factory design pattern. This enables a J2SE based client to
create a Endpoint instance in a
+ * portable manner without using the constructor of the Endpoint  implementation class.
+ * <p>
+ * The EndpointFactory implementation class is set using the system property ENDPOINTFACTORY_PROPERTY.
+ * <p>
+ * @author shaas02
+ * @since JAX-WS 2.0
+ * @see <code>Endpoint</code>
+ */
+public abstract class EndpointFactory {
+
+	public static final java.lang.String ENDPOINTFACTORY_PROPERTY = "javax.xml.ws.EndpointFactory";
+	
+	private static EndpointFactory endpointFactoryImpl = null;
+	
+	/**
+	 * 
+	 */
+	protected EndpointFactory(){
+		
+	}
+	
+	/**
+	 * Gets an instance of the EndpointFactory
+	 * <p>
+	 * Only one copy of a factory exists and is returned to the application each time this method
is called.
+	 * <p>
+	 *  The implementation class to be used can be overridden by setting the javax.xml.ws.EndpointFactory
system property.
+	 * @return
+	 */
+	public static EndpointFactory newInstance(){
+		if (endpointFactoryImpl != null)
+			return endpointFactoryImpl;
+		
+		try{
+			String endpointFactoryImplName;
+			
+			endpointFactoryImplName = "org.apache.axis2.jaxws.EndpointFactoryImpl";
+			Class loadedClass;
+			
+			loadedClass = Thread.currentThread().getContextClassLoader().loadClass(endpointFactoryImplName);
+			endpointFactoryImpl = (EndpointFactory)loadedClass.newInstance();
+		}catch(Exception e){
+			
+		}
+		return endpointFactoryImpl;
+	}
+	
+	/**
+	 * Creates and publishes an endpoint at the provided address and using the given implementation
object. Returns the created
+	 *  endpoint. The JAX-WS implementation will create all the necessary server infrastructure
using some default configuration.
+	 *  In order to get more control over the server configuration, please use the javax.xml.ws.Endpoint#publish(Object)
method
+	 *  instead.
+	 * @param address - A URI specifying the address and transport/protocol to use. By default,
a http: URI results in a
+	 * SOAP/HTTP binding being used. Implementations may support other URI schemes.
+	 * @param implementor - A service implementation object to which incoming requests will
be dispatched. The
+	 * corresponding class must be annotated with all the necessary Web service annotations.
+	 * @return The newly created endpoint.
+	 */
+	public abstract Endpoint publish(java.lang.String address,
+			java.lang.Object implementor);
+	
+	/**
+	 * Creates an endpoint object with the provided binding and implementation object. Once
published, all requests will be
+	 * dispatched to the latter.
+	 * @param bindingId - A URI specifying the desired binding (e.g. SOAP/HTTP)
+	 * @param implementor - A service implementation object to which incoming requests will
be dispatched. The
+	 * corresponding class must be annotated with all the necessary Web service annotations.
+	 * @return
+	 */
+	public abstract Endpoint createEndpoint(java.net.URI bindingId,
+			 java.lang.Object implementor);
+}

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Holder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Holder.java?rev=233141&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Holder.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/Holder.java
Wed Aug 17 02:45:52 2005
@@ -0,0 +1,26 @@
+package javax.xml.ws;
+
+/**
+ * Holds a value of type T.
+ * @author shaas02
+ * @since JAX-WS 2.0
+ */
+public class Holder<T> {
+
+	public T value;
+	
+	/**
+	 * Creates a new holder with a null value.
+	 */
+	public Holder(){
+		
+	}
+	
+	/**
+	 * Create a new holder with the specified value.
+	 * @param value - The value to be stored in the holder.
+	 */
+	public Holder(T value){
+		this.value = value;
+	}
+}

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ProtocolException.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ProtocolException.java?rev=233141&r1=233140&r2=233141&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ProtocolException.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ProtocolException.java
Wed Aug 17 02:45:52 2005
@@ -20,15 +20,15 @@
 
 /**
  * Class ProtocolException
- * The javax.xml.rpc.ProtocolException interface is a marker base class for 
+ * The javax.xml.ws.ProtocolException interface is a marker base class for 
  * exceptions related to a specific protocol binding. Subclasses are used to 
  * communicate protocol level fault information to clients and may be used on 
  * the server to control the protocol specific fault representation.
  * 
- * @version 1.0
+ * @since JAX-WS 2.0
  * @author sunja07
  */
-public class ProtocolException extends RuntimeException implements 
+public class ProtocolException extends WebServiceException implements 
 Serializable {
 
 	/**

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/RequestWrapper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/RequestWrapper.java?rev=233141&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/RequestWrapper.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/RequestWrapper.java
Wed Aug 17 02:45:52 2005
@@ -0,0 +1,34 @@
+package javax.xml.ws;
+
+import java.lang.annotation.*;
+
+/**
+ * Used to annotate methods in the Service Endpoint Interface with the request wrapper bean
to be used at runtime. The default
+ * value of the localName is the operationName, as defined in WebMethod annotation and the
targetNamespace is the target
+ * namespace of the SEI.
+ * <p>
+ *  When starting from Java this annotation is used resolve overloading conflicts in document
literal mode. Only the className is
+ *  required in this case.
+ *  @since JAX-WS 2.0
+ * @author shaas02
+ * @see javax.jws.WebMethod
+ */
+@Target(value=ElementType.METHOD)
+@Retention(value=RetentionPolicy.RUNTIME)
+public @interface RequestWrapper {
+
+	/**
+	 * public abstract java.lang.String localName
+	 */
+	public abstract java.lang.String localName() default "";
+	
+	/**
+	 * Elements namespace name.
+	 */
+	public abstract java.lang.String targetNamespace() default "";
+	
+	/**
+	 * Request wrapper bean name.
+	 */
+	public abstract java.lang.String className() default "";
+}

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ResponseWrapper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ResponseWrapper.java?rev=233141&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ResponseWrapper.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ResponseWrapper.java
Wed Aug 17 02:45:52 2005
@@ -0,0 +1,34 @@
+package javax.xml.ws;
+
+import java.lang.annotation.*;
+
+/**
+ * Used to annotate methods in the Service Endpoint Interface with the response wrapper bean
to be used at runtime. The default
+ * value of the localName is the operationName as defined in WebMethod annotation appended
with Response and the
+ * targetNamespace is the target namespace of the SEI.
+ * <p>
+ *  When starting from Java this annotation is used resolve overloading conflicts in document
literal mode. Only the className is
+ *  required in this case.
+ * @author shaas02
+ * @since JAX-WS 2.0
+ * @see javax.jws.WebMethod
+ */
+@Target(value=ElementType.METHOD)
+@Retention(value=RetentionPolicy.RUNTIME)
+public @interface ResponseWrapper {
+
+	/**
+	 * public abstract java.lang.String localName
+	 */
+	public abstract java.lang.String localName() default "";
+	
+	/**
+	 * Elements namespace name.
+	 */
+	public abstract java.lang.String targetNamespace() default "";
+	
+	/**
+	 * Request wrapper bean name.
+	 */
+	public abstract java.lang.String className() default "";
+}

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ServiceFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ServiceFactory.java?rev=233141&r1=233140&r2=233141&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ServiceFactory.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/ServiceFactory.java
Wed Aug 17 02:45:52 2005
@@ -52,9 +52,8 @@
 	 * The implementation class to be used can be overridden by setting the 
 	 * javax.xml.rpc.ServiceFactory system property.
 	 * @return static instance of ServiceFactory
-	 * @throws ServiceException
 	 */
-	public static ServiceFactory newInstance() throws ServiceException {
+	public static ServiceFactory newInstance(){
 		
 		if (serviceFactoryImpl != null)
 			return serviceFactoryImpl;
@@ -65,7 +64,7 @@
 		//configuration time(?), using configuration data viz. system props
 		//or XML/properites config files or user and system preference data
 		//</TBR>		
-		try {
+		try{
 			String serviceFactoryImplName;
 			//<TBR>: Comment to be removed
 			// Here actually initialization of the name with the corresponding
@@ -78,8 +77,8 @@
 			
 			loadedClass = Thread.currentThread().getContextClassLoader().loadClass(serviceFactoryImplName);
 			serviceFactoryImpl = (ServiceFactory)loadedClass.newInstance();
-		} catch (Exception e) {
-			throw new ServiceException(e);
+		} catch(Exception e){
+			
 		}
 		return serviceFactoryImpl;
 	}
@@ -91,63 +90,45 @@
 	 * service
 	 * @param serviceName QName for the service.
 	 * @return a <code>Service</code> instance
-	 * @throws ServiceException
+	 * @throws WebServiceException
 	 */
 	public abstract Service createService(java.net.URL wsdlDocumentLocation,
-            javax.xml.namespace.QName serviceName) throws ServiceException;
+            javax.xml.namespace.QName serviceName) throws WebServiceException;
 	
 	/**
-	 * Method loadService
-	 * Create an instance of the generated service implementation class for a 
-	 * given service interface, if available.
-	 * @param serviceInterface Service interface 
-	 * @return ??? read the spec once again
-	 * @throws ServiceException If there is any error while creating the 
-	 * specified service, including the case where a generated service 
-	 * implementation class cannot be located
+	 * Create a Service instance.
+	 * @param serviceName - QName for the service
+	 * @return a <code>Service</code> instance
+	 * @throws WebServiceException - If any error in creation of the specified service
 	 */
-	public abstract Service loadService(java.lang.Class serviceInterface)
-    throws ServiceException;
+	public abstract Service createService(javax.xml.namespace.QName serviceName)
+			throws WebServiceException;
 	
 	/**
-	 * Method loadService
-	 * Create an instance of the generated service implementation class for a 
-	 * given service interface, if available. An implementation may use the 
-	 * provided wsdlDocumentLocation and properties to help locate the generated 
-	 * implementation class. If no such class is present, a ServiceException 
-	 * will be thrown.
-	 * @param wsdlDocumentLocation URL for the WSDL document location for the 
-	 * service or null
-	 * @param serviceInterface Service interface
-	 * @param properties A set of implementation-specific properties to help 
-	 * locate the generated service implementation class 
-	 * @return ??? read the spec once again
-	 * @throws ServiceException If there is any error while creating the 
-	 * specified service, including the case where a generated service 
-	 * implementation class cannot be located
+	 * Create and return an instance implementing a given service interface.
+	 * <p>
+	 * The service interface must be annotated with a @WebServiceClient annotation. If the wsdlDocumentLocation
parameter
+	 * is specified, it will take priority over the one specified by the annotation.
+	 * @param <T>
+	 * @param wsdlDocumentLocation - URL for the WSDL document location for the service or null
+	 * @param serviceInterface - Service interface
+	 * @return
+	 * @throws WebServiceException - If there is any error while creating the specified service
+	 * @see <code>WebServiceClient</code>
 	 */
-	public abstract Service loadService(java.net.URL wsdlDocumentLocation,
-            java.lang.Class serviceInterface,
-            java.util.Properties properties) throws ServiceException;
+	public abstract <T extends Service> T createService(java.net.URL wsdlDocumentLocation,
+			 java.lang.Class<T> serviceInterface) throws WebServiceException;
 	
 	/**
-	 * Method loadService
-	 * Create an instance of the generated service implementation class for a 
-	 * given service, if available. The service is uniquely identified by the 
-	 * wsdlDocumentLocation and serviceName arguments. An implementation may 
-	 * use the provided properties to help locate the generated implementation 
-	 * class. If no such class is present, a ServiceException will be thrown.
-	 * @param wsdlDocumentLocation URL for the WSDL document location for the 
-	 * service or null
-	 * @param serviceName Qualified name for the service
-	 * @param properties A set of implementation-specific properties to help 
-	 * locate the generated service implementation class 
-	 * @return ??? read the spec once again
-	 * @throws ServiceException If there is any error while creating the 
-	 * specified service, including the case where a generated service 
-	 * implementation class cannot be located
+	 * Create and return an instance implementing a given service interface.
+	 * <p>
+	 * The service interface must be annotated with a @WebServiceClient annotation specifying
a WSDL document and a
+	 * qualified name of a .
+	 * @param <T>
+	 * @param serviceInterface - Service interface
+	 * @return
+	 * @throws WebServiceException  - If there is any error while creating the specified service
+	 * @see <code>WebServiceClient</code>
 	 */
-	public abstract Service loadService(java.net.URL wsdlDocumentLocation,
-            javax.xml.namespace.QName serviceName,
-            java.util.Properties properties) throws ServiceException;
+	public abstract <T extends Service> T createService(java.lang.Class<T> serviceInterface)
throws WebServiceException;
 }

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebEndpoint.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebEndpoint.java?rev=233141&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebEndpoint.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebEndpoint.java
Wed Aug 17 02:45:52 2005
@@ -0,0 +1,21 @@
+package javax.xml.ws;
+
+import java.lang.annotation.*;
+
+/**
+ * Used to annotate the getPortName()  methods of a generated service interface.
+ * <p>
+ * The information specified in this annotation is sufficient to uniquely identify a wsdl:port
element inside a wsdl:service. The
+ * latter is determined based on the value of the WebServiceClient  annotation on the generated
service interface itself.
+ * @author shaas02
+ * @see <code>WebServiceClient</code>
+ */
+@Target(value=ElementType.METHOD)
+@Retention(value=RetentionPolicy.RUNTIME)
+public @interface WebEndpoint {
+
+	/**
+	 * The local name of the endpoint.
+	 */
+	public abstract java.lang.String name() default "";
+}

Added: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebServiceClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebServiceClient.java?rev=233141&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebServiceClient.java
(added)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/WebServiceClient.java
Wed Aug 17 02:45:52 2005
@@ -0,0 +1,31 @@
+package javax.xml.ws;
+
+import java.lang.annotation.*;
+
+/**
+ * Used to annotate a generated service interface.
+ * <p>
+ * The information specified in this annotation is sufficient to uniquely identify a wsdl:service
 element inside a WSDL document.
+ * This wsdl:service  element represents the Web service for which the generated service
interface provides a client view.
+ * @author shaas02
+ * @since JAX-WS 2.0
+ */
+@Target(value=ElementType.METHOD)
+@Retention(value=RetentionPolicy.RUNTIME)
+public @interface WebServiceClient {
+
+	/**
+	 * The local name of the Web service.
+	 */
+	public abstract java.lang.String name() default "";
+	
+	/**
+	 * The namespace for the Web service.
+	 */
+	public abstract java.lang.String targetNamespace() default "";
+	
+	/**
+	 * The location of the WSDL document for the service (a URL).
+	 */
+	public abstract java.lang.String wsdlLocation() default "";
+}

Modified: webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/security/MessageSecurity.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/security/MessageSecurity.java?rev=233141&r1=233140&r2=233141&view=diff
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/security/MessageSecurity.java
(original)
+++ webservices/axis/trunk/archive/java/scratch/ashu_jaya_venkat/jaxws/src/javax/xml/ws/security/MessageSecurity.java
Wed Aug 17 02:45:52 2005
@@ -29,13 +29,13 @@
 	 * messages.
 	 * default = "javax.xml.ws.security.default"
 	 */
-	public abstract java.lang.String inboundSecurityConfigId();
+	public abstract java.lang.String inboundSecurityConfigId() default "javax.xml.ws.security.default";
 	
 	/**
 	 * Logical identifier of the configuration entry that describes how to fulfil the requested
security features for outbound
 	 * messages.
 	 * default = "javax.xml.ws.security.default"
 	 */
-	public abstract java.lang.String outboundSecurityConfigId();
+	public abstract java.lang.String outboundSecurityConfigId() default "javax.xml.ws.security.default";
 
 }



Mime
View raw message