You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-commits@ws.apache.org by sc...@apache.org on 2005/08/02 18:30:44 UTC

svn commit: r227033 [4/27] - in /webservices/wsrf/trunk: ./ src/java/org/apache/ws/ src/java/org/apache/ws/addressing/ src/java/org/apache/ws/addressing/v2003_03/ src/java/org/apache/ws/addressing/v2004_08_10/ src/java/org/apache/ws/resource/ src/java/...

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ServiceSoapMethodNameMap.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ServiceSoapMethodNameMap.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ServiceSoapMethodNameMap.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ServiceSoapMethodNameMap.java Tue Aug  2 09:28:49 2005
@@ -17,7 +17,6 @@
 
 import org.apache.commons.lang.StringUtils;
 import org.apache.ws.resource.ResourceContext;
-
 import javax.xml.namespace.QName;
 import java.util.HashMap;
 import java.util.Map;
@@ -36,27 +35,12 @@
     *
     * @param context             DOCUMENT_ME
     */
-   public ServiceSoapMethodNameMap(ResourceContext context)
+   public ServiceSoapMethodNameMap( ResourceContext context )
    {
-      m_RequestQnameToMethodNameMap = new HashMap();
+      m_RequestQnameToMethodNameMap = new HashMap(  );
       setParent( new DefaultMethodMap( new WsddSoapMethodNameMap( context ) ) );
    }
 
-    /**
-     * Adds a mapping for a SOAP Message to Java Method name
-     *
-     * @param soapMsgQname
-     * @param javaMethodName
-     */
-   public void addMapping(QName soapMsgQname, String javaMethodName)
-   {
-       m_RequestQnameToMethodNameMap.put(soapMsgQname,javaMethodName);
-   }
-
-   public void removeMapping(QName soapMsgQname)
-   {
-       m_RequestQnameToMethodNameMap.remove(soapMsgQname);
-   }
    /**
     * DOCUMENT_ME
     *
@@ -71,18 +55,41 @@
       {
          methodName = StringUtils.uncapitalize( request.getLocalPart(  ) );
       }
+
+      return methodName;
+   }
+
+   /**
+    * Adds a mapping for a SOAP Message to Java Method name
+    *
+    * @param soapMsgQname
+    * @param javaMethodName
+    */
+   public void addMapping( QName  soapMsgQname,
+                           String javaMethodName )
+   {
+      m_RequestQnameToMethodNameMap.put( soapMsgQname, javaMethodName );
+   }
+
+   /**
+    * Returns a Default name for a method based on a request's WS-Addressing Action Header.
+    *
+    * @param action String representation of WS-Addressing Action Header Value
+    * @return The name of the operation OR null if there is no Action registered.
+    */
+   public String lookupMethodNameFromAction( String action )
+   {
+      String methodName = (String) m_RequestQnameToMethodNameMap.get( action );
       return methodName;
    }
 
-    /**
-     * Returns a Default name for a method based on a request's WS-Addressing Action Header.
-     *
-     * @param action String representation of WS-Addressing Action Header Value
-     * @return The name of the operation OR null if there is no Action registered.
-     */
-    public String lookupMethodNameFromAction(String action)
-    {
-        String methodName = (String) m_RequestQnameToMethodNameMap.get( action );
-        return methodName;
-    }
+   /**
+    * DOCUMENT_ME
+    *
+    * @param soapMsgQname DOCUMENT_ME
+    */
+   public void removeMapping( QName soapMsgQname )
+   {
+      m_RequestQnameToMethodNameMap.remove( soapMsgQname );
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/SoapMethodNameMap.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/SoapMethodNameMap.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/SoapMethodNameMap.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/SoapMethodNameMap.java Tue Aug  2 09:28:49 2005
@@ -37,6 +37,15 @@
    /**
     * DOCUMENT_ME
     *
+    * @param action DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getMethodNameFromAction( String action );
+
+   /**
+    * DOCUMENT_ME
+    *
     * @param parent DOCUMENT_ME
     */
    public void setParent( SoapMethodNameMap parent );
@@ -47,6 +56,4 @@
     * @return DOCUMENT_ME
     */
    public SoapMethodNameMap getParent(  );
-
-   public String getMethodNameFromAction(String action);
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/WsddSoapMethodNameMap.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/WsddSoapMethodNameMap.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/WsddSoapMethodNameMap.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/WsddSoapMethodNameMap.java Tue Aug  2 09:28:49 2005
@@ -16,46 +16,45 @@
 package org.apache.ws.resource.handler;
 
 import org.apache.ws.resource.ResourceContext;
-
 import javax.xml.namespace.QName;
 
 /**
  * @author Sal Campana
  */
 public class WsddSoapMethodNameMap
-        extends AbstractSoapMethodNameMap
+   extends AbstractSoapMethodNameMap
 {
-    private ResourceContext m_resourceContext;
+   private ResourceContext m_resourceContext;
 
-    /**
-     * Creates a new {@link WsddSoapMethodNameMap} object.
-     *
-     * @param context DOCUMENT_ME
-     */
-    public WsddSoapMethodNameMap( ResourceContext context )
-    {
-        m_resourceContext = context;
-    }
+   /**
+    * Creates a new {@link WsddSoapMethodNameMap} object.
+    *
+    * @param context DOCUMENT_ME
+    */
+   public WsddSoapMethodNameMap( ResourceContext context )
+   {
+      m_resourceContext = context;
+   }
 
-    /**
-     * DOCUMENT_ME
-     *
-     * @param request DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public String getDefaultMethodName( QName request )
-    {
-        return (String) m_resourceContext.getProperty( request.toString() );
-    }
+   /**
+    * DOCUMENT_ME
+    *
+    * @param request DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getDefaultMethodName( QName request )
+   {
+      return (String) m_resourceContext.getProperty( request.toString(  ) );
+   }
 
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public SoapMethodNameMap getParent()
-    {
-        return null;
-    }
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public SoapMethodNameMap getParent(  )
+   {
+      return null;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/AxisResourceContext.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/AxisResourceContext.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/AxisResourceContext.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/AxisResourceContext.java Tue Aug  2 09:28:49 2005
@@ -20,7 +20,6 @@
 import org.apache.ws.resource.i18n.MessagesImpl;
 import org.apache.ws.resource.impl.AbstractResourceContext;
 import org.apache.ws.util.i18n.Messages;
-
 import javax.xml.rpc.handler.MessageContext;
 import javax.xml.rpc.handler.soap.SOAPMessageContext;
 import java.net.MalformedURLException;
@@ -37,16 +36,16 @@
 public class AxisResourceContext
    extends AbstractResourceContext
 {
-
    //private static final Log LOG = LogFactory.getLog( AxisResourceContext.class.getName(  ) );
-   private static final Messages MSG = MessagesImpl.getInstance();
+   private static final Messages MSG = MessagesImpl.getInstance(  );
 
    /**
     * Creates a new {@link AxisResourceContext} object.
     *
     * @param msgContext SOAPMessageContext
     */
-   public AxisResourceContext( SOAPMessageContext msgContext ) throws Exception
+   public AxisResourceContext( SOAPMessageContext msgContext )
+   throws Exception
    {
       super( msgContext );
       importServiceOptions( msgContext );
@@ -63,8 +62,9 @@
    {
       if ( msgContext == null )
       {
-         throw new IllegalArgumentException( MSG.getMessage(Keys.MESSAGECONTEXT_NULL) );
+         throw new IllegalArgumentException( MSG.getMessage( Keys.MESSAGECONTEXT_NULL ) );
       }
+
       org.apache.axis.MessageContext axisMsgContext = (org.apache.axis.MessageContext) msgContext;
       return axisMsgContext.getTargetService(  );
    }
@@ -83,6 +83,7 @@
       {
          throw new IllegalArgumentException( "Null parameter: msgContext" );
       }
+
       org.apache.axis.MessageContext axisMsgContext = (org.apache.axis.MessageContext) msgContext;
       try
       {
@@ -90,7 +91,8 @@
       }
       catch ( MalformedURLException murle )
       {
-         throw new RuntimeException( "Value of Axis " + org.apache.axis.MessageContext.TRANS_URL + " MessageContext property is not a valid URL.", murle );
+         throw new RuntimeException( "Value of Axis " + org.apache.axis.MessageContext.TRANS_URL
+                                     + " MessageContext property is not a valid URL.", murle );
       }
    }
 

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/GenericAxisHandler.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/GenericAxisHandler.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/GenericAxisHandler.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/GenericAxisHandler.java Tue Aug  2 09:28:49 2005
@@ -17,7 +17,6 @@
 
 import org.apache.axis.AxisFault;
 import org.apache.axis.handlers.BasicHandler;
-
 import javax.xml.namespace.QName;
 import javax.xml.rpc.handler.Handler;
 import javax.xml.rpc.handler.HandlerInfo;
@@ -28,55 +27,57 @@
  * @author Ian Springer
  */
 public class GenericAxisHandler
-        extends BasicHandler
+   extends BasicHandler
 {
-    private Handler jaxRpcHandler;
-
-    /**
-     * Creates a new {@link GenericAxisHandler} object.
-     *
-     * @param handler DOCUMENT_ME
-     */
-    public GenericAxisHandler( Handler handler )
-    {
-        jaxRpcHandler = handler;
-    }
-
-    /**
-     * Impl of {@link org.apache.axis.Handler#init()} that delegates to JAX-RPC {@link
-     * Handler#init(javax.xml.rpc.handler.HandlerInfo)}.
-     */
-    public void init()
-    {
-        HandlerInfo handlerInfo = new HandlerInfo( jaxRpcHandler.getClass(), getOptions(), new QName[0] );
-        jaxRpcHandler.init( handlerInfo );
-    }
-
-    /**
-     * Impl of {@link org.apache.axis.Handler#invoke(org.apache.axis.MessageContext)} that delegates to either JAX-RPC
-     * {@link Handler#handleRequest(javax.xml.rpc.handler.MessageContext)} or JAX-RPC {@link
-     * Handler#handleResponse(javax.xml.rpc.handler.MessageContext)}, depending upon whether the handler chain pivot has
-     * been passed yet or not.
-     */
-    public void invoke( org.apache.axis.MessageContext msgContext )
-            throws AxisFault
-    {
-        if ( !msgContext.getPastPivot() )
-        {
-            jaxRpcHandler.handleRequest( msgContext );
-        }
-        else
-        {
-            jaxRpcHandler.handleResponse( msgContext );
-        }
-    }
+   private Handler jaxRpcHandler;
 
-    /**
-     * Impl of {@link org.apache.axis.Handler#onFault(org.apache.axis.MessageContext)} that delegates to JAX-RPC {@link
-     * Handler#handleFault(javax.xml.rpc.handler.MessageContext)}.
-     */
-    public void onFault( org.apache.axis.MessageContext msgContext )
-    {
-        jaxRpcHandler.handleFault( msgContext );
-    }
+   /**
+    * Creates a new {@link GenericAxisHandler} object.
+    *
+    * @param handler DOCUMENT_ME
+    */
+   public GenericAxisHandler( Handler handler )
+   {
+      jaxRpcHandler = handler;
+   }
+
+   /**
+    * Impl of {@link org.apache.axis.Handler#init()} that delegates to JAX-RPC {@link
+    * Handler#init(javax.xml.rpc.handler.HandlerInfo)}.
+    */
+   public void init(  )
+   {
+      HandlerInfo handlerInfo = new HandlerInfo( jaxRpcHandler.getClass(  ),
+                                                 getOptions(  ),
+                                                 new QName[0] );
+      jaxRpcHandler.init( handlerInfo );
+   }
+
+   /**
+    * Impl of {@link org.apache.axis.Handler#invoke(org.apache.axis.MessageContext)} that delegates to either JAX-RPC
+    * {@link Handler#handleRequest(javax.xml.rpc.handler.MessageContext)} or JAX-RPC {@link
+    * Handler#handleResponse(javax.xml.rpc.handler.MessageContext)}, depending upon whether the handler chain pivot has
+    * been passed yet or not.
+    */
+   public void invoke( org.apache.axis.MessageContext msgContext )
+   throws AxisFault
+   {
+      if ( !msgContext.getPastPivot(  ) )
+      {
+         jaxRpcHandler.handleRequest( msgContext );
+      }
+      else
+      {
+         jaxRpcHandler.handleResponse( msgContext );
+      }
+   }
+
+   /**
+    * Impl of {@link org.apache.axis.Handler#onFault(org.apache.axis.MessageContext)} that delegates to JAX-RPC {@link
+    * Handler#handleFault(javax.xml.rpc.handler.MessageContext)}.
+    */
+   public void onFault( org.apache.axis.MessageContext msgContext )
+   {
+      jaxRpcHandler.handleFault( msgContext );
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProvider.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProvider.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProvider.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProvider.java Tue Aug  2 09:28:49 2005
@@ -35,7 +35,6 @@
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
-
 import javax.xml.namespace.QName;
 import javax.xml.rpc.handler.soap.SOAPMessageContext;
 import javax.xml.soap.SOAPBodyElement;
@@ -52,268 +51,279 @@
  * @author Ian Springer, Sal Campana
  */
 public class ResourceProvider
-        extends ResourceHandler
-        implements Handler
+   extends ResourceHandler
+   implements Handler
 {
-    private static final Log LOG = LogFactory.getLog( ResourceProvider.class );
-    private static final Messages MSG = MessagesImpl.getInstance();
-    public static final String SYSPROP_AXIS_FAULT_DEBUG = "axis.fault.debug";
-
-    private GenericAxisHandler m_axisHelperHandler = new GenericAxisHandler( this );
-
-    public void init()
-    {
-        m_axisHelperHandler.setOptions( getOptions() );
-        m_axisHelperHandler.init();
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param doc DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public Element getDeploymentData( Document doc )
-    {
-        return m_axisHelperHandler.getDeploymentData( doc );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param name DOCUMENT_ME
-     */
-    public void setName( String name )
-    {
-        m_axisHelperHandler.setName( name );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public String getName()
-    {
-        return m_axisHelperHandler.getName();
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param name  DOCUMENT_ME
-     * @param value DOCUMENT_ME
-     */
-    public void setOption( String name,
-                           Object value )
-    {
-        m_axisHelperHandler.setOption( name, value );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param name DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public Object getOption( String name )
-    {
-        return m_axisHelperHandler.getOption( name );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param opts DOCUMENT_ME
-     */
-    public void setOptions( Hashtable opts )
-    {
-        m_axisHelperHandler.setOptions( opts );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public Hashtable getOptions()
-    {
-        return m_axisHelperHandler.getOptions();
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public List getUnderstoodHeaders()
-    {
-        return m_axisHelperHandler.getUnderstoodHeaders();
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param qname DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public boolean canHandleBlock( QName qname )
-    {
-        return m_axisHelperHandler.canHandleBlock( qname );
-    }
-
-    /**
-     * DOCUMENT_ME
-     */
-    public void cleanup()
-    {
-        m_axisHelperHandler.cleanup();
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param msgContext DOCUMENT_ME
-     *
-     * @throws AxisFault DOCUMENT_ME
-     */
-    public void generateWSDL( MessageContext msgContext )
-            throws AxisFault
-    {
-        SOAPService service = msgContext.getService();
-        LOG.debug( MSG.getMessage( Keys.RECEIVED_WSDL_REQUEST, service.getName() ) );
-        service.generateWSDL( msgContext );
-    }
-
-    /**
-     * Invokes a Web service operation.
-     *
-     * @param msgContext Axis SOAP message context
-     *
-     * @throws AxisFault if a SOAP fault needs to be returned to the client
-     */
-    public void invoke( MessageContext msgContext )
-            throws AxisFault
-    {
-        try
-        {
+   private static final Log      LOG                      = LogFactory.getLog( ResourceProvider.class );
+   private static final Messages MSG                      = MessagesImpl.getInstance(  );
+
+   /** DOCUMENT_ME */
+   public static final String SYSPROP_AXIS_FAULT_DEBUG = "axis.fault.debug";
+   private GenericAxisHandler m_axisHelperHandler = new GenericAxisHandler( this );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param doc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Element getDeploymentData( Document doc )
+   {
+      return m_axisHelperHandler.getDeploymentData( doc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param name DOCUMENT_ME
+    */
+   public void setName( String name )
+   {
+      m_axisHelperHandler.setName( name );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getName(  )
+   {
+      return m_axisHelperHandler.getName(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param name  DOCUMENT_ME
+    * @param value DOCUMENT_ME
+    */
+   public void setOption( String name,
+                          Object value )
+   {
+      m_axisHelperHandler.setOption( name, value );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param name DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Object getOption( String name )
+   {
+      return m_axisHelperHandler.getOption( name );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param opts DOCUMENT_ME
+    */
+   public void setOptions( Hashtable opts )
+   {
+      m_axisHelperHandler.setOptions( opts );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Hashtable getOptions(  )
+   {
+      return m_axisHelperHandler.getOptions(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public List getUnderstoodHeaders(  )
+   {
+      return m_axisHelperHandler.getUnderstoodHeaders(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param qname DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public boolean canHandleBlock( QName qname )
+   {
+      return m_axisHelperHandler.canHandleBlock( qname );
+   }
+
+   /**
+    * DOCUMENT_ME
+    */
+   public void cleanup(  )
+   {
+      m_axisHelperHandler.cleanup(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param msgContext DOCUMENT_ME
+    *
+    * @throws AxisFault DOCUMENT_ME
+    */
+   public void generateWSDL( MessageContext msgContext )
+   throws AxisFault
+   {
+      SOAPService service = msgContext.getService(  );
+      LOG.debug( MSG.getMessage( Keys.RECEIVED_WSDL_REQUEST,
+                                 service.getName(  ) ) );
+      service.generateWSDL( msgContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    */
+   public void init(  )
+   {
+      m_axisHelperHandler.setOptions( getOptions(  ) );
+      m_axisHelperHandler.init(  );
+   }
+
+   /**
+    * Invokes a Web service operation.
+    *
+    * @param msgContext Axis SOAP message context
+    *
+    * @throws AxisFault if a SOAP fault needs to be returned to the client
+    */
+   public void invoke( MessageContext msgContext )
+   throws AxisFault
+   {
+      try
+      {
+         try
+         {
+            handleRequest( msgContext );
+            handleResponse( msgContext );
+         }
+         catch ( RuntimeException re )
+         {
+            throw AxisFault.makeFault( re );
+         }
+      }
+      catch ( AxisFault axisFault )
+      {
+         // only include hostname and stack trace in fault Detail if sysprop axis.fault.debug="true" 
+         if ( !Boolean.getBoolean( SYSPROP_AXIS_FAULT_DEBUG ) )
+         {
+            axisFault.removeHostname(  );
+            axisFault.removeFaultDetail( Constants.QNAME_FAULTDETAIL_STACKTRACE );
+         }
+
+         if ( LOG.isDebugEnabled(  ) )
+         {
             try
             {
-                handleRequest( msgContext );
-                handleResponse( msgContext );
-            }
-            catch ( RuntimeException re )
-            {
-                throw AxisFault.makeFault( re );
-            }
-        }
-        catch ( AxisFault axisFault )
-        {
-            // only include hostname and stack trace in fault Detail if sysprop axis.fault.debug="true" 
-            if ( ! Boolean.getBoolean( SYSPROP_AXIS_FAULT_DEBUG ) )
-            {
-                axisFault.removeHostname();
-                axisFault.removeFaultDetail( Constants.QNAME_FAULTDETAIL_STACKTRACE );
-            }
-            if ( LOG.isDebugEnabled() )
-            {
-                try
-                {
-                    LOG.debug( "Sending SOAP fault: \n" + toXML( axisFault, msgContext ) );
-                }
-                catch ( Exception e )
-                {
-                    LOG.error( "Failed to serialize AxisFault: " + e );
-                }
+               LOG.debug( "Sending SOAP fault: \n" + toXML( axisFault, msgContext ) );
             }
-            throw axisFault;
-        }
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param msgContext DOCUMENT_ME
-     */
-    public void onFault( MessageContext msgContext )
-    {
-        m_axisHelperHandler.onFault( msgContext );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param soapMsgContext DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    protected SOAPMessage getResponseMessage( SOAPMessageContext soapMsgContext )
-    {
-        MessageContext axisMsgContext = ( (MessageContext) soapMsgContext );
-        Message responseMsg = axisMsgContext.getResponseMessage();
-        if ( responseMsg == null )
-        {
-            responseMsg = createMessage( axisMsgContext );
-            axisMsgContext.setResponseMessage( responseMsg );
-        }
-        return responseMsg;
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param soapMsgContext DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    protected ResourceContext createResourceContext( SOAPMessageContext soapMsgContext )
-            throws Exception
-    {
-        return new AxisResourceContext( soapMsgContext );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param responseBodyElem DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    protected SOAPBodyElement[] createSOAPBodyElements( XmlObject responseBodyElem )
-    {
-        List bodyElems = new ArrayList();
-        Node node = responseBodyElem.newDomNode();
-        NodeList childNodes = node.getChildNodes();
-        for ( int i = 0; i < childNodes.getLength(); i++ )
-        {
-            Node child = childNodes.item( i );
-            //add all child elements
-            if ( child.getNodeType() == Node.ELEMENT_NODE )
+            catch ( Exception e )
             {
-                bodyElems.add( new org.apache.axis.message.SOAPBodyElement( (Element) child ) );
+               LOG.error( "Failed to serialize AxisFault: " + e );
             }
-        }
-        return (SOAPBodyElement[]) bodyElems.toArray( new SOAPBodyElement[0] );
-    }
-
-    private Message createMessage( MessageContext axisMsgContext )
-    {
-        SOAPEnvelope envelope =
-                new SOAPEnvelope( axisMsgContext.getSOAPConstants(),
-                        axisMsgContext.getSchemaVersion() );
-        return new Message( envelope );
-    }
-
-    private String toXML( AxisFault axisFault, MessageContext msgContext ) throws Exception
-    {
-        Writer writer = new StringWriter();
-        axisFault.output( new SerializationContext( writer, msgContext ) );
-        String xml = writer.toString();
-        writer.close();
-        return xml;
-    }
+         }
 
+         throw axisFault;
+      }
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param msgContext DOCUMENT_ME
+    */
+   public void onFault( MessageContext msgContext )
+   {
+      m_axisHelperHandler.onFault( msgContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param soapMsgContext DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected SOAPMessage getResponseMessage( SOAPMessageContext soapMsgContext )
+   {
+      MessageContext axisMsgContext = ( (MessageContext) soapMsgContext );
+      Message        responseMsg = axisMsgContext.getResponseMessage(  );
+      if ( responseMsg == null )
+      {
+         responseMsg = createMessage( axisMsgContext );
+         axisMsgContext.setResponseMessage( responseMsg );
+      }
+
+      return responseMsg;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param soapMsgContext DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected ResourceContext createResourceContext( SOAPMessageContext soapMsgContext )
+   throws Exception
+   {
+      return new AxisResourceContext( soapMsgContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param responseBodyElem DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected SOAPBodyElement[] createSOAPBodyElements( XmlObject responseBodyElem )
+   {
+      List     bodyElems  = new ArrayList(  );
+      Node     node       = responseBodyElem.newDomNode(  );
+      NodeList childNodes = node.getChildNodes(  );
+      for ( int i = 0; i < childNodes.getLength(  ); i++ )
+      {
+         Node child = childNodes.item( i );
+
+         //add all child elements
+         if ( child.getNodeType(  ) == Node.ELEMENT_NODE )
+         {
+            bodyElems.add( new org.apache.axis.message.SOAPBodyElement( (Element) child ) );
+         }
+      }
+
+      return (SOAPBodyElement[]) bodyElems.toArray( new SOAPBodyElement[0] );
+   }
+
+   private Message createMessage( MessageContext axisMsgContext )
+   {
+      SOAPEnvelope envelope =
+         new SOAPEnvelope( axisMsgContext.getSOAPConstants(  ),
+                           axisMsgContext.getSchemaVersion(  ) );
+      return new Message( envelope );
+   }
+
+   private String toXML( AxisFault      axisFault,
+                         MessageContext msgContext )
+   throws Exception
+   {
+      Writer writer = new StringWriter(  );
+      axisFault.output( new SerializationContext( writer, msgContext ) );
+      String xml = writer.toString(  );
+      writer.close(  );
+      return xml;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProviderFactory.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProviderFactory.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProviderFactory.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/axis/ResourceProviderFactory.java Tue Aug  2 09:28:49 2005
@@ -29,7 +29,6 @@
 public class ResourceProviderFactory
    extends WSDDProvider
 {
-
    /**
     * Provider Name for use in the server-config.wsdd file (e.g. provider="java:WSRF").
     */
@@ -50,10 +49,9 @@
                                        EngineConfiguration registry )
    throws Exception
    {
-       ResourceProvider resourceProvider = new ResourceProvider();
-       resourceProvider.setOptions( System.getProperties() );
-       resourceProvider.init();
-       return resourceProvider;
+      ResourceProvider resourceProvider = new ResourceProvider(  );
+      resourceProvider.setOptions( System.getProperties(  ) );
+      resourceProvider.init(  );
+      return resourceProvider;
    }
-
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/Keys.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/Keys.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/Keys.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/Keys.java Tue Aug  2 09:28:49 2005
@@ -15,618 +15,705 @@
  *=============================================================================*/
 package org.apache.ws.resource.i18n;
 
+
 /**
  * I18n message keys and messages for the {@link org.apache.ws.resource}
  * package and all its subpackages.
  */
 public interface Keys
 {
-
    /**
     * @msg Creating ResourcePropertySet from XmlBean whose factory is: {0} ...
     */
    String CREATING_PROPSET = "CREATING_PROPSET";
 
-    /**
-     * @msg Received request to {0}  resource with Id {1}
-     */
-    String PORTTYPE_RECEIVED_REQUEST = "PORTTYPE_RECEIVED_REQUEST";
-
-    /**
-     * @msg Resource Id {0} not found for service {1}
-     */
-    String RESOURCE_NOT_FOUND = "RESOURCE_NOT_FOUND";
-
-    /**
-     * @msg Output directory for generated files.
-     */
-    String OPT_OUTPUT_DIR_FOR_GEN_SRC = "OPT_OUTPUT_DIR_FOR_GEN_SRC";
-
-    /**
-     * @msg output directory for generated jar files.
-     */
-    String OPT_OUTPUT_DIR_FOR_GEN_JAR = "OPT_OUTPUT_DIR_FOR_GEN_JAR";
-
-    /**
-     * @msg enable verbose output.
-     */
-    String OPT_ENABLE_VERBOSE = "OPT_ENABLE_VERBOSE";
-
-    /**
-     * @msg enable debug output.
-     */
-    String OPT_ENABLE_DEBUG = "OPT_ENABLE_DEBUG";
-
-    /**
-     * @msg classpath to be passed to XMLBeans schema compiler.
-     */
-    String OPT_CLASSPATH_SENT_TO_XMLBEANS = "OPT_CLASSPATH_SENT_TO_XMLBEANS";
-
-    /**
-     * @msg No WSDL files were specified. Nothing to do.
-     */
-    String WARN_EMPTY_WSDLS = "WARN_EMPTY_WSDLS";
-
-    /**
-     * @msg Calling Wsdl2Java with: {0} wsdl files, {1} output dir.
-     */
-    String WSDL4J_PASSED_ARGUMENTS = "WSDL4J_PASSED_ARGUMENTS";
-
-    /**
-     * @msg  {0} is a required option.
-     */
-    String OPT_REQUIRED = "OPT_REQUIRED";
-
-    /**
-     * @msg Expected WS-Addressing SOAP header: {0}
-     */
-    String EXPECTED_ADDRESSING_HEADER = "EXPECTED_ADDRESSING_HEADER";
-
-    /**
-     * @msg Dialect: {0}
-     */
-    String DIALECT = "DIALECT";
-
-    /**
-     * @msg content
-     */
-    String CONTENT = "CONTENT";
-    /**
-     * @msg  name
-     */
-    String NAME = "NAME";
-    /**
-     * @msg faultCode
-     */
-    String FAULTCODE = "FAULTCODE";
-
-    /**
-     * @msg description
-     */
-    String DESCRIPTION = "DESCRIPTION";
-
-    /**
-     * @msg faultCause
-     */
-    String FAULTCAUSE = "FAULTCAUSE";
-
-    /**
-     * @msg faultString
-     */
-    String FAULTSTRING = "FAULTSTRING";
-
-    /**
-     * @msg errorCode
-     */
-    String ERRORCODE = "ERRORCODE";
-    /**
-     * @msg MessageContext was null.
-     */
-    String MESSAGECONTEXT_NULL = "MESSAGECONTEXT_NULL";
-
-    /**
-     * @msg An Exception Occurred when retrieving the ResourceHome. Cause: {0}
-     */
-    String EXCEPTION_GETTING_HOME = "EXCEPTION_GETTING_HOME";
-
-    /**
-     * @msg An Exception Occurred when Creating an instance of the Class: {0} , Cause: {1}
-     */
-    String EXCEPTION_CREATING_CLASS = "EXCEPTION_CREATING_CLASS";
-
-    /**
-     * @msg Expected type: {0}, but got: {1}
-     */
-    String EXCEPTION_EXPECTED_TYPE = "EXCEPTION_EXPECTED_TYPE";
-
-    /**
-     * @msg Received ?WSDL request for service: {0}
-     */
-    String RECEIVED_WSDL_REQUEST = "RECEIVED_WSDL_REQUEST";
-
-    /**
-     * @msg Populating WSRF JNDI context - reading JNDI configuration off classpath from {0}...
-     */
-    String POPULATING_JNDI = "POPULATING_JNDI";
-
-    /**
-     * @msg {0} is initialized.
-     */
-    String CLASS_IS_INITIALIZED = "CLASS_IS_INITIALIZED";
-
-    /**
-     * @msg Received request.
-     */
-    String RECEIVED_REQUEST = "RECEIVED_REQUEST";
-
-    /**
-     * @msg The {0} method on service class {1} threw an exception.
-     */
-    String ERROR_INVOKING_METHOD_ON_SERVICE = "ERROR_INVOKING_METHOD_ON_SERVICE";
-
-    /**
-     * @msg Internal server error occurred.
-     */
-    String INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR";
-
-    /**
-     * @msg Handling response...
-     */
-    String HANDLING_RESPONSE = "HANDLING_RESPONSE";
-
-    /**
-     * @msg Found {0} response body elements.
-     */
-    String FOUND_RESP_ELEMS = "FOUND_RESP_ELEMS";
-
-    /**
-     * @msg Retrieved service classname: {0} from resource home.
-     */
-    String RETRIEVED_SERVICE_CLASSNAME = "RETRIEVED_SERVICE_CLASSNAME";
-
-    /**
-     * @msg Required parameter {0} not defined in resource home.
-     */
-    String SERVICE_OPT_UNDEFINED_IN_HOME = "SERVICE_OPT_UNDEFINED_IN_HOME";
-
-    /**
-     * @msg Deriving the service method name from the request body element name ({0})...
-     */
-    String DERIVE_SERVICE_NAME_FROM_REQ = "DERIVE_SERVICE_NAME_FROM_REQ";
-
-    /**
-     * @msg Unrecognized request body element: {0}
-     */
-    String BAD_REQUEST_BODY_ELEMENT = "BAD_REQUEST_BODY_ELEMENT";
-
-    /**
-     * @msg Found service method: {0}
-     */
-    String FOUND_SERVICE_METHOD = "FOUND_SERVICE_METHOD";
-
-    /**
-     * @msg Failed to create SOAPMessage via MessageFactory.
-     */
-    String FAILED_TO_CREATE_SOAPMESSAGE = "FAILED_TO_CREATE_SOAPMESSAGE";
-
-    /**
-     * @msg Creating an instance of service class: {0}
-     */
-    String CREATING_INSTANCE_OF_SERVICE = "CREATING_INSTANCE_OF_SERVICE";
-
-    /**
-     * @msg Cleaning expired resources.
-     */
-    String CLEANING_EXPIRED_RESOURCES = "CLEANING_EXPIRED_RESOURCES";
-
-    /**
-     * @msg Finding resource with key {0} ...
-     */
-    String FINDING_RESOURCE_WITH_KEY = "FINDING_RESOURCE_WITH_KEY";
-
-    /**
-     * @msg ResourceKey was null.
-     */
-    String NULL_KEY = "NULL_KEY";
-
-    /**
-     * @msg Initializing Home
-     */
-    String INIT_HOME = "INIT_HOME";
-
-    /**
-     * @msg The ResourceKey name was null, please check the jndi-config.xml file.
-     */
-    String RESOURCE_KEYNAME_NULL = "RESOURCE_KEYNAME_NULL";
-
-    /**
-     * @msg The Resource Class name was null, please check the jndi-config.xml file.
-     */
-    String RESOURCE_CLASSNAME_NULL = "RESOURCE_CLASSNAME_NULL";
-
-    /**
-     * @msg Failed to destroy resource: {0} Cause: {1}
-     */
-    String FAILED_TO_DESTROY_RESOURCE = "FAILED_TO_DESTROY_RESOURCE";
-
-    /**
-     * @msg Removed the resource {0} with key: {1}
-     */
-    String REMOVED_RESOURCE_WITH_KEY = "REMOVED_RESOURCE_WITH_KEY";
-    /**
-     * @msg Creating instance for ResourceKey: {0}
-     */
-    String CREATING_INSTANCE_WITH_KEY = "CREATING_INSTANCE_WITH_KEY";
-
-    /**
-     * @msg Calling init() in the Resource Instance: {0}
-     */
-    String INIT_RESOURCE_LIFECYCLE_INSTANCE = "INIT_RESOURCE_LIFECYCLE_INSTANCE";
-    /**
-     * @msg Failed to initialize resource: {0} Cause: {1}
-     */
-    String FAILED_TO_INIT_RESOURCE = "FAILED_TO_INIT_RESOURCE";
-    /**
-     * @msg Loading Resource from persistence for ResourceKey: {0}
-     */
-    String LOADING_RESOURCE_FROM_PERSISTENCE = "LOADING_RESOURCE_FROM_PERSISTENCE";
-    /**
-     * @msg The Resource class {0} was not found. Please check your classpath and WSRF JNDI config.
-     */
-    String RESOURCE_CLASS_NOT_FOUND = "RESOURCE_CLASS_NOT_FOUND";
-    /**
-     * @msg Adding resource with identifier {0} to {1} ...
-     */
-    String ADDING_RESOURCE_WITH_ID = "ADDING_RESOURCE_WITH_ID";
-    /**
-     * @msg Attempting to lookup resource with identifier {0} from {1} ...
-     */
-    String GETTING_RESOURCE_WITH_ID = "GETTING_RESOURCE_WITH_ID";
-    /**
-     * @msg Looking up default timer using JNDI name {0} ...
-     */
-    String TIMER_LOOKUP_WITH_JNDI_NAME = "TIMER_LOOKUP_WITH_JNDI_NAME";
-    /**
-     * @msg Scheduling resource sweeper ...
-     */
-    String SCHEDULE_RESOURCE_SWEEPER = "SCHEDULE_RESOURCE_SWEEPER";
-    /**
-     * @msg Cancelling resource sweeper ...
-     */
-    String CANCEL_RESOURCE_SWEEPER = "CANCEL_RESOURCE_SWEEPER";
-    /**
-     * @msg The SOAPMessageContext was null.
-     */
-    String NULL_SOAPMSGCTX = "NULL_SOAPMSGCTX";
-    /**
-     * @msg  Looking up resource with key: {0} ...
-     */
-    String LOOKUP_RESOURCE_FOR_KEY = "LOOKUP_RESOURCE_FOR_KEY";
-    /**
-     * @msg Found resource: {0}
-     */
-    String FOUND_RESOURCE = "FOUND_RESOURCE";
-
-    /**
-     * @msg The JNDI home location is: {0}
-     */
-    String JNDI_HOME_LOCATION = "JNDI_HOME_LOCATION";
-    /**
-     * @msg The ResourceKey is: {0}
-     */
-    String RESOURCE_KEY = "RESOURCE_KEY";
-
-    /**
-     * @msg Resource key name is null.
-     */
-    String NULL_RESOURCE_NAME = "NULL_RESOURCE_NAME";
-    /**
-     * @msg Attempting to retrieve ResourceKeyHeader for ResourceKey name: {0}
-     */
-    String GET_RESOURCEKEY_HEADER = "GET_RESOURCEKEY_HEADER";
-    /**
-     * @msg The ResourceKey Name was null.
-     */
-    String NULL_RESOURCEKEY_QNAME = "NULL_RESOURCEKEY_QNAME";
-    /**
-     * @msg Retrieving the ServiceURL from the Addressing Headers.  Service URL is: {0}
-     */
-    String GET_SERVICE_URL_FROM_ADDR_HDR = "GET_SERVICE_URL_FROM_ADDR_HDR";
-    /**
-     * @msg  Destroying {0} resource with Id {1}
-     */
-    String DESTROYING_RESOURCE = "DESTROYING_RESOURCE";
-    /**
-     * @msg Unable to set termination time for {0} resource with Id {1}
-     */
-    String UNABLE_TO_SET_TERM_TIME = "UNABLE_TO_SET_TERM_TIME";
-    /**
-     * @msg {0} resource with Id {1} could not be destroyed.
-     */
-    String UNABLE_TO_DESTROY_RESOURCE = "UNABLE_TO_DESTROY_RESOURCE";
-    /**
-     * @msg Resource Id {0} not found for service {1}
-     */
-    String RESOURCEID_NOT_FOUND_FOR_SERVICE = "RESOURCEID_NOT_FOUND_FOR_SERVICE";
-    /**
-     * @msg Setting property: {0} with time: {1}
-     */
-    String SET_PROP_TIME = "SET_PROP_TIME";
-    /**
-     * @msg Read-only property: {0}
-     */
-    String READ_ONLY_PROP = "READ_ONLY_PROP";
-    /**
-     * @msg Invalid expression: {0}
-     */
-    String INVALID_EXPRESSION = "INVALID_EXPRESSION";
-    /**
-     * @msg Invalid property name: {0}
-     */
-    String INVALID_PROP_NAME = "INVALID_PROP_NAME";
-    /**
-     * @msg The {0} property cannot be cleared - its schema requires it to contain at least {1} elements.
-     */
-    String CANNOT_CLEAR_SCHEMA_CONSTRAINT = "CANNOT_CLEAR_SCHEMA_CONSTRAINT";
-    /**
-     * @msg This resource property already contains {0} elements, which is the maximum allowed by its schema.
-     */
-    String MAX_ALLOWED_BY_SCHEMA = "MAX_ALLOWED_BY_SCHEMA";
-    /**
-     * @msg Property element to add must be named {0}
-     */
-    String PROP_MUST_BE_NAMED = "PROP_MUST_BE_NAMED";
-    /**
-     * @msg Unable to convert specified object to an XmlObject.
-     */
-    String UNABLE_TO_CONVERT_TO_XMLOBJECT = "UNABLE_TO_CONVERT_TO_XMLOBJECT";
-    /**
-     * @msg Property element to remove must be named {0}
-     */
-    String PROP_ELEM_TO_REMOVE_MST_B_NAMED = "PROP_ELEM_TO_REMOVE_MST_B_NAMED";
-    /**
-     * @msg Property element to set must be named {0}
-     */
-    String PROP_SET_MST_B_NAMED = "PROP_SET_MST_B_NAMED";
-    /**
-     * @msg Specified index must be >=0 and < {0}
-     */
-    String INDEX_MST_B_GTR0 = "INDEX_MST_B_GTR0";
-    /**
-     * @msg Specified schema type must be of document type.
-     */
-    String SCHEMA_MUST_BE_DOC = "SCHEMA_MUST_BE_DOC";
-    /**
-     * @msg Specified XMLBean ({0}) is not a document type.
-     */
-    String XMLOBJECT_DOC = "XMLOBJECT_DOC";
-    /**
-     * @msg Properties that are explicitly defined in the RP doc schema cannot be removed from the property set.
-     */
-    String NON_ANY_PROP_CANNOT_BE_REMOVED = "NON_ANY_PROP_CANNOT_BE_REMOVED";
-    /**
-     * @msg The resource properties document already contains a resource property named {0}
-     */
-    String PROP_DOC_ALREADY_CONTAINS_PROPERTY = "PROP_DOC_ALREADY_CONTAINS_PROPERTY";
-    /**
-     * @msg Clearing the PropertSet.
-     */
-    String CLEAR_PROP_SET = "CLEAR_PROP_SET";
-    /**
-     * @msg Removing property from ResourcePropertySet, property: {0}
-     */
-    String REMOVING_PROP = "REMOVING_PROP";
-    /**
-     * @msg Adding property to ResourcePropertySet, property: {0}
-     */
-    String ADDING_PROP = "ADDING_PROP";
-    /**
-     * @msg Processing SetResourceProperties request: {0} ...
-     */
-    String SET_RP_REQ = "SET_RP_REQ";
-    /**
-     * @msg Deleting resource property: {0} ...
-     */
-    String DEL_RP_REQ = "DEL_RP_REQ";
-    /**
-     * @msg wsrp:Delete element is missing the required ResourceProperty attribute.
-     */
-    String DEL_MISSING_RP_ATTRIB = "DEL_MISSING_RP_ATTRIB";
-    /**
-     * @msg Inserting resource property...
-     */
-    String INSERT_RP_REQ = "INSERT_RP_REQ";
-    /**
-     * @msg Property {0} cannot be deleted because its minOccurs is greater than zero.
-     */
-    String ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA = "ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA";
-    /**
-     * @msg Element {0} cannot be inserted because maxOccurs for property {1} would be exceeded.
-     */
-    String ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA = "ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA";
-    /**
-     * @msg Updating resource property...
-     */
-    String UPDATE_RP_REQ = "UPDATE_RP_REQ";
-    /**
-     * @msg Elements cannot be inserted because maxOccurs for property {0} would be exceeded.
-     */
-    String ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA = "ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA";
-    /**
-     * @msg Getting Resource Property with name: {0}
-     */
-    String GET_RP_WITH_NAME = "GET_RP_WITH_NAME";
-    /**
-     * @msg Query ResourceProperties request: {0}
-     */
-    String QUERY_RP_REQ = "QUERY_RP_REQ";
-    /**
-     * @msg Failed to extract SOAP envelope from resource context. Cause: {0}
-     */
-    String FAILED_TO_EXTRACT_SOAP_ENV = "FAILED_TO_EXTRACT_SOAP_ENV";
-    /**
-     * @msg Attempting to get resource property: {0} ...
-     */
-    String GET_RP_REQ = "GET_RP_REQ";
-    /**
-     * @msg GetMultipleResourceProperties request: {0}
-     */
-    String GET_MULTI_RP_REQ = "GET_MULTI_RP_REQ";
-    /**
-     * @msg Attempt to call a WSRP operation on a WS-Resource that has no properties.
-     */
-    String CALL_WSRP_OP_ON_NOPROP = "CALL_WSRP_OP_ON_NOPROP";
-    /**
-     * @msg Unsupported dialect: {0}
-     */
-    String UNSUPP_DIALECT = "UNSUPP_DIALECT";
-    /**
-     * @msg value
-     */
-    String VALUE = "VALUE";
-    /**
-     * @msg namespaceContext
-     */
-    String NMSPCECTX = "NMSPCECTX";
-    /**
-     * @msg Constructed XPathExpression: {0}
-     */
-    String CONSTR_XPATH_EXPR = "CONSTR_XPATH_EXPR";
-    /**
-     * @msg XPath expression: {0}
-     */
-    String XPATH = "XPATH";
-    /**
-     * @msg Properties document: {0}
-     */
-    String PROP_DOC = "PROP_DOC";
-    /**
-     * @msg Xalan XPath expression evaluator (Xalan version is {0})
-     */
-    String XALAN_EVALUATOR = "XALAN_EVALUATOR";
-    /**
-     * @msg Jaxen XPath expression evaluator
-     */
-    String JAXEN_EVALUATOR = "JAXEN_EVALUATOR";
-    /**
-     * @msg XPath Expression was null.
-     */
-    String NULL_XPATH = "NULL_XPATH";
-    /**
-     * @msg Evaluating XPath expression [{0}] over context [{1}]
-     */
-    String EVAL_XPATH = "EVAL_XPATH";
-    /**
-     * @msg XPath query failed: {0}  Cause: {1}
-     */
-    String XPATH_FAILED = "XPATH_FAILED";
-    /**
-     * @msg Namespace context on XPathExpression is null or is not a DomNamespaceContext.
-     */
-    String BAD_XPATH_NAMESPACE_CONTEXT = "BAD_XPATH_NAMESPACE_CONTEXT";
-    /**
-     * @msg QueryEngine encountered an error during a refresh. Cause: {0}
-     */
-    String QUERY_ENG_INIT_ERROR = "QUERY_ENG_INIT_ERROR";
-    /**
-     * @msg Executing Query
-     */
-    String EXEC_QUERY = "EXEC_QUERY";
-    /**
-     * @msg  on ResourcePropertySet:
-     */
-    String ON_RP_SET = "ON_RP_SET";
-    /**
-     * @msg All property elements in Insert request must have the same name.
-     */
-    String ERROR_INSERT_ELEMS_NOT_HOMOGENOUS = "ERROR_INSERT_ELEMS_NOT_HOMOGENOUS";
-    /**
-     * @msg All property elements in Update request must have the same name.
-     */
-    String ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS = "ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS";
-    /**
-     * @msg XML Beans XPath expression evaluator
-     */
-    String XMLBEANS_XPATH_EVAL = "XMLBEANS_XPATH_EVAL";
-    /**
-     * @msg The XMLBeanXPathExpressionEvaluator#evaluate() requires that the specified ResourcePropertySet be an instance of XmlBeansResourcePropertySet. Cause: {0}
-     */
-    String ERROR_XPATH_EXPR_REQ_XMLBEANRPSET = "ERROR_XPATH_EXPR_REQ_XMLBEANRPSET";
-    /**
-     * @msg Query failed: {0} Cause: {1}
-     */
-    String QUERY_FAILED = "QUERY_FAILED";
-    /**
-     * @msg Failed to initialize query expression dialect. Cause: {0}
-     */
-    String FAILED_INIT_DIALECT = "FAILED_INIT_DIALECT";
-    /**
-     * @msg As per the WS-RP schema, a query expression element can only have up to one child node.
-     */
-    String QUERY_ONLY_ONE_NODE = "QUERY_ONLY_ONE_NODE";
-    /**
-     * @msg As per the WS-RP schema, a query expression element must contain either one element or one text node.
-     */
-    String QUERY_MUST_HAVE_ELEM_OR_TXT = "QUERY_MUST_HAVE_ELEM_OR_TXT";
-    /**
-     * @msg The QueryExpression is: {0}
-     */
-    String QUERY_EXPR = "QUERY_EXPR";
-    /**
-     * @msg Invoking service method: {0}
-     */
-    String INVOKING_SERVICE_METHOD ="INVOKING_SERVICE_METHOD";
-    /**
-     * @msg  for Dialect:
-     */
-    String FOR_DIALECT = "FOR_DIALECT";
-
-    /**
-     * @msg Wsdl2Java expects the WSDL files to have the extension .wsdl the passed-in file was named: {0}
-     */
-    String ERROR_ONLY_WSDLS = "ERROR_ONLY_WSDLS";
-
-    /**
-     * @msg Retrieving the Action from the Addressing Headers.  Action is: {0}
-     */
-    String GET_ACTION_FROM_ADDR_HDR = "GET_ACTION_FROM_ADDR_HDR";
-
-    /**
-     * @msg Received request with no WS-Addressing Action header.
-     */
-    String NO_WSA_ACTION = "NO_WSA_ACTION";
-
-    /**
-     * @msg Received request with no WS-Addressing headers.
-     */
-    String NO_WSA_HEADERS = "NO_WSA_HEADERS";
-
-    /**
-     * @msg There was an error when calling the insertProperty operation on the callback {0}
-     */
-    String ERROR_DURING_INSERT_CALLBACK = "ERROR_DURING_INSERT_CALLBACK";
-    /**
-     * @msg There was an error when calling the updateProperty operation on the callback {0}
-     */
-    String ERROR_DURING_UPDATE_CALLBACK = "ERROR_DURING_UPDATE_CALLBACK";
-    /**
-     * @msg There was an error when calling the deleteProperty operation on the callback {0}
-     */
-    String ERROR_DURING_DELETE_CALLBACK = "ERROR_DURING_DELETE_CALLBACK";
-    /**
-     * @msg Error occurred during delete property operation.
-     */
-    String ERROR_DURING_DELETE = "ERROR_DURING_DELETE";
-    /**
-     * @msg Error occurred during insert property operation.
-     */
-    String ERROR_DURING_INSERT = "ERROR_DURING_INSERT";
-    /**
-     * @msg Error occurred during update property operation.
-     */
-    String ERROR_DURING_UPDATE = "ERROR_DURING_UPDATE";
-    /**
-     * @msg Unrecognized request body element.
-     */
-    String BAD_REQUEST_BODY_ELEMENT_NOPARAM = "BAD_REQUEST_BODY_ELEMENT_NOPARAM";
+   /**
+    * @msg Received request to {0}  resource with Id {1}
+    */
+   String PORTTYPE_RECEIVED_REQUEST = "PORTTYPE_RECEIVED_REQUEST";
+
+   /**
+    * @msg Resource Id {0} not found for service {1}
+    */
+   String RESOURCE_NOT_FOUND = "RESOURCE_NOT_FOUND";
+
+   /**
+    * @msg Output directory for generated files.
+    */
+   String OPT_OUTPUT_DIR_FOR_GEN_SRC = "OPT_OUTPUT_DIR_FOR_GEN_SRC";
+
+   /**
+    * @msg output directory for generated jar files.
+    */
+   String OPT_OUTPUT_DIR_FOR_GEN_JAR = "OPT_OUTPUT_DIR_FOR_GEN_JAR";
+
+   /**
+    * @msg enable verbose output.
+    */
+   String OPT_ENABLE_VERBOSE = "OPT_ENABLE_VERBOSE";
+
+   /**
+    * @msg enable debug output.
+    */
+   String OPT_ENABLE_DEBUG = "OPT_ENABLE_DEBUG";
+
+   /**
+    * @msg classpath to be passed to XMLBeans schema compiler.
+    */
+   String OPT_CLASSPATH_SENT_TO_XMLBEANS = "OPT_CLASSPATH_SENT_TO_XMLBEANS";
+
+   /**
+    * @msg No WSDL files were specified. Nothing to do.
+    */
+   String WARN_EMPTY_WSDLS = "WARN_EMPTY_WSDLS";
+
+   /**
+    * @msg Calling Wsdl2Java with: {0} wsdl files, {1} output dir.
+    */
+   String WSDL4J_PASSED_ARGUMENTS = "WSDL4J_PASSED_ARGUMENTS";
+
+   /**
+    * @msg  {0} is a required option.
+    */
+   String OPT_REQUIRED = "OPT_REQUIRED";
+
+   /**
+    * @msg Expected WS-Addressing SOAP header: {0}
+    */
+   String EXPECTED_ADDRESSING_HEADER = "EXPECTED_ADDRESSING_HEADER";
+
+   /**
+    * @msg Dialect: {0}
+    */
+   String DIALECT = "DIALECT";
+
+   /**
+    * @msg content
+    */
+   String CONTENT = "CONTENT";
+
+   /**
+    * @msg  name
+    */
+   String NAME = "NAME";
+
+   /**
+    * @msg faultCode
+    */
+   String FAULTCODE = "FAULTCODE";
+
+   /**
+    * @msg description
+    */
+   String DESCRIPTION = "DESCRIPTION";
+
+   /**
+    * @msg faultCause
+    */
+   String FAULTCAUSE = "FAULTCAUSE";
+
+   /**
+    * @msg faultString
+    */
+   String FAULTSTRING = "FAULTSTRING";
+
+   /**
+    * @msg errorCode
+    */
+   String ERRORCODE = "ERRORCODE";
+
+   /**
+    * @msg MessageContext was null.
+    */
+   String MESSAGECONTEXT_NULL = "MESSAGECONTEXT_NULL";
+
+   /**
+    * @msg An Exception Occurred when retrieving the ResourceHome. Cause: {0}
+    */
+   String EXCEPTION_GETTING_HOME = "EXCEPTION_GETTING_HOME";
+
+   /**
+    * @msg An Exception Occurred when Creating an instance of the Class: {0} , Cause: {1}
+    */
+   String EXCEPTION_CREATING_CLASS = "EXCEPTION_CREATING_CLASS";
+
+   /**
+    * @msg Expected type: {0}, but got: {1}
+    */
+   String EXCEPTION_EXPECTED_TYPE = "EXCEPTION_EXPECTED_TYPE";
+
+   /**
+    * @msg Received ?WSDL request for service: {0}
+    */
+   String RECEIVED_WSDL_REQUEST = "RECEIVED_WSDL_REQUEST";
+
+   /**
+    * @msg Populating WSRF JNDI context - reading JNDI configuration off classpath from {0}...
+    */
+   String POPULATING_JNDI = "POPULATING_JNDI";
+
+   /**
+    * @msg {0} is initialized.
+    */
+   String CLASS_IS_INITIALIZED = "CLASS_IS_INITIALIZED";
+
+   /**
+    * @msg Received request.
+    */
+   String RECEIVED_REQUEST = "RECEIVED_REQUEST";
+
+   /**
+    * @msg The {0} method on service class {1} threw an exception.
+    */
+   String ERROR_INVOKING_METHOD_ON_SERVICE = "ERROR_INVOKING_METHOD_ON_SERVICE";
+
+   /**
+    * @msg Internal server error occurred.
+    */
+   String INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR";
+
+   /**
+    * @msg Handling response...
+    */
+   String HANDLING_RESPONSE = "HANDLING_RESPONSE";
+
+   /**
+    * @msg Found {0} response body elements.
+    */
+   String FOUND_RESP_ELEMS = "FOUND_RESP_ELEMS";
+
+   /**
+    * @msg Retrieved service classname: {0} from resource home.
+    */
+   String RETRIEVED_SERVICE_CLASSNAME = "RETRIEVED_SERVICE_CLASSNAME";
+
+   /**
+    * @msg Required parameter {0} not defined in resource home.
+    */
+   String SERVICE_OPT_UNDEFINED_IN_HOME = "SERVICE_OPT_UNDEFINED_IN_HOME";
+
+   /**
+    * @msg Deriving the service method name from the request body element name ({0})...
+    */
+   String DERIVE_SERVICE_NAME_FROM_REQ = "DERIVE_SERVICE_NAME_FROM_REQ";
+
+   /**
+    * @msg Unrecognized request body element: {0}
+    */
+   String BAD_REQUEST_BODY_ELEMENT = "BAD_REQUEST_BODY_ELEMENT";
+
+   /**
+    * @msg Found service method: {0}
+    */
+   String FOUND_SERVICE_METHOD = "FOUND_SERVICE_METHOD";
+
+   /**
+    * @msg Failed to create SOAPMessage via MessageFactory.
+    */
+   String FAILED_TO_CREATE_SOAPMESSAGE = "FAILED_TO_CREATE_SOAPMESSAGE";
+
+   /**
+    * @msg Creating an instance of service class: {0}
+    */
+   String CREATING_INSTANCE_OF_SERVICE = "CREATING_INSTANCE_OF_SERVICE";
+
+   /**
+    * @msg Cleaning expired resources.
+    */
+   String CLEANING_EXPIRED_RESOURCES = "CLEANING_EXPIRED_RESOURCES";
+
+   /**
+    * @msg Finding resource with key {0} ...
+    */
+   String FINDING_RESOURCE_WITH_KEY = "FINDING_RESOURCE_WITH_KEY";
+
+   /**
+    * @msg ResourceKey was null.
+    */
+   String NULL_KEY = "NULL_KEY";
+
+   /**
+    * @msg Initializing Home
+    */
+   String INIT_HOME = "INIT_HOME";
+
+   /**
+    * @msg The ResourceKey name was null, please check the jndi-config.xml file.
+    */
+   String RESOURCE_KEYNAME_NULL = "RESOURCE_KEYNAME_NULL";
+
+   /**
+    * @msg The Resource Class name was null, please check the jndi-config.xml file.
+    */
+   String RESOURCE_CLASSNAME_NULL = "RESOURCE_CLASSNAME_NULL";
+
+   /**
+    * @msg Failed to destroy resource: {0} Cause: {1}
+    */
+   String FAILED_TO_DESTROY_RESOURCE = "FAILED_TO_DESTROY_RESOURCE";
+
+   /**
+    * @msg Removed the resource {0} with key: {1}
+    */
+   String REMOVED_RESOURCE_WITH_KEY = "REMOVED_RESOURCE_WITH_KEY";
+
+   /**
+    * @msg Creating instance for ResourceKey: {0}
+    */
+   String CREATING_INSTANCE_WITH_KEY = "CREATING_INSTANCE_WITH_KEY";
+
+   /**
+    * @msg Calling init() in the Resource Instance: {0}
+    */
+   String INIT_RESOURCE_LIFECYCLE_INSTANCE = "INIT_RESOURCE_LIFECYCLE_INSTANCE";
+
+   /**
+    * @msg Failed to initialize resource: {0} Cause: {1}
+    */
+   String FAILED_TO_INIT_RESOURCE = "FAILED_TO_INIT_RESOURCE";
+
+   /**
+    * @msg Loading Resource from persistence for ResourceKey: {0}
+    */
+   String LOADING_RESOURCE_FROM_PERSISTENCE = "LOADING_RESOURCE_FROM_PERSISTENCE";
+
+   /**
+    * @msg The Resource class {0} was not found. Please check your classpath and WSRF JNDI config.
+    */
+   String RESOURCE_CLASS_NOT_FOUND = "RESOURCE_CLASS_NOT_FOUND";
+
+   /**
+    * @msg Adding resource with identifier {0} to {1} ...
+    */
+   String ADDING_RESOURCE_WITH_ID = "ADDING_RESOURCE_WITH_ID";
+
+   /**
+    * @msg Attempting to lookup resource with identifier {0} from {1} ...
+    */
+   String GETTING_RESOURCE_WITH_ID = "GETTING_RESOURCE_WITH_ID";
+
+   /**
+    * @msg Looking up default timer using JNDI name {0} ...
+    */
+   String TIMER_LOOKUP_WITH_JNDI_NAME = "TIMER_LOOKUP_WITH_JNDI_NAME";
+
+   /**
+    * @msg Scheduling resource sweeper ...
+    */
+   String SCHEDULE_RESOURCE_SWEEPER = "SCHEDULE_RESOURCE_SWEEPER";
+
+   /**
+    * @msg Cancelling resource sweeper ...
+    */
+   String CANCEL_RESOURCE_SWEEPER = "CANCEL_RESOURCE_SWEEPER";
+
+   /**
+    * @msg The SOAPMessageContext was null.
+    */
+   String NULL_SOAPMSGCTX = "NULL_SOAPMSGCTX";
+
+   /**
+    * @msg  Looking up resource with key: {0} ...
+    */
+   String LOOKUP_RESOURCE_FOR_KEY = "LOOKUP_RESOURCE_FOR_KEY";
+
+   /**
+    * @msg Found resource: {0}
+    */
+   String FOUND_RESOURCE = "FOUND_RESOURCE";
+
+   /**
+    * @msg The JNDI home location is: {0}
+    */
+   String JNDI_HOME_LOCATION = "JNDI_HOME_LOCATION";
+
+   /**
+    * @msg The ResourceKey is: {0}
+    */
+   String RESOURCE_KEY = "RESOURCE_KEY";
+
+   /**
+    * @msg Resource key name is null.
+    */
+   String NULL_RESOURCE_NAME = "NULL_RESOURCE_NAME";
+
+   /**
+    * @msg Attempting to retrieve ResourceKeyHeader for ResourceKey name: {0}
+    */
+   String GET_RESOURCEKEY_HEADER = "GET_RESOURCEKEY_HEADER";
+
+   /**
+    * @msg The ResourceKey Name was null.
+    */
+   String NULL_RESOURCEKEY_QNAME = "NULL_RESOURCEKEY_QNAME";
+
+   /**
+    * @msg Retrieving the ServiceURL from the Addressing Headers.  Service URL is: {0}
+    */
+   String GET_SERVICE_URL_FROM_ADDR_HDR = "GET_SERVICE_URL_FROM_ADDR_HDR";
+
+   /**
+    * @msg  Destroying {0} resource with Id {1}
+    */
+   String DESTROYING_RESOURCE = "DESTROYING_RESOURCE";
+
+   /**
+    * @msg Unable to set termination time for {0} resource with Id {1}
+    */
+   String UNABLE_TO_SET_TERM_TIME = "UNABLE_TO_SET_TERM_TIME";
+
+   /**
+    * @msg {0} resource with Id {1} could not be destroyed.
+    */
+   String UNABLE_TO_DESTROY_RESOURCE = "UNABLE_TO_DESTROY_RESOURCE";
+
+   /**
+    * @msg Resource Id {0} not found for service {1}
+    */
+   String RESOURCEID_NOT_FOUND_FOR_SERVICE = "RESOURCEID_NOT_FOUND_FOR_SERVICE";
+
+   /**
+    * @msg Setting property: {0} with time: {1}
+    */
+   String SET_PROP_TIME = "SET_PROP_TIME";
+
+   /**
+    * @msg Read-only property: {0}
+    */
+   String READ_ONLY_PROP = "READ_ONLY_PROP";
+
+   /**
+    * @msg Invalid expression: {0}
+    */
+   String INVALID_EXPRESSION = "INVALID_EXPRESSION";
+
+   /**
+    * @msg Invalid property name: {0}
+    */
+   String INVALID_PROP_NAME = "INVALID_PROP_NAME";
+
+   /**
+    * @msg The {0} property cannot be cleared - its schema requires it to contain at least {1} elements.
+    */
+   String CANNOT_CLEAR_SCHEMA_CONSTRAINT = "CANNOT_CLEAR_SCHEMA_CONSTRAINT";
+
+   /**
+    * @msg This resource property already contains {0} elements, which is the maximum allowed by its schema.
+    */
+   String MAX_ALLOWED_BY_SCHEMA = "MAX_ALLOWED_BY_SCHEMA";
+
+   /**
+    * @msg Property element to add must be named {0}
+    */
+   String PROP_MUST_BE_NAMED = "PROP_MUST_BE_NAMED";
+
+   /**
+    * @msg Unable to convert specified object to an XmlObject.
+    */
+   String UNABLE_TO_CONVERT_TO_XMLOBJECT = "UNABLE_TO_CONVERT_TO_XMLOBJECT";
+
+   /**
+    * @msg Property element to remove must be named {0}
+    */
+   String PROP_ELEM_TO_REMOVE_MST_B_NAMED = "PROP_ELEM_TO_REMOVE_MST_B_NAMED";
+
+   /**
+    * @msg Property element to set must be named {0}
+    */
+   String PROP_SET_MST_B_NAMED = "PROP_SET_MST_B_NAMED";
+
+   /**
+    * @msg Specified index must be >=0 and < {0}
+    */
+   String INDEX_MST_B_GTR0 = "INDEX_MST_B_GTR0";
+
+   /**
+    * @msg Specified schema type must be of document type.
+    */
+   String SCHEMA_MUST_BE_DOC = "SCHEMA_MUST_BE_DOC";
+
+   /**
+    * @msg Specified XMLBean ({0}) is not a document type.
+    */
+   String XMLOBJECT_DOC = "XMLOBJECT_DOC";
+
+   /**
+    * @msg Properties that are explicitly defined in the RP doc schema cannot be removed from the property set.
+    */
+   String NON_ANY_PROP_CANNOT_BE_REMOVED = "NON_ANY_PROP_CANNOT_BE_REMOVED";
+
+   /**
+    * @msg The resource properties document already contains a resource property named {0}
+    */
+   String PROP_DOC_ALREADY_CONTAINS_PROPERTY = "PROP_DOC_ALREADY_CONTAINS_PROPERTY";
+
+   /**
+    * @msg Clearing the PropertSet.
+    */
+   String CLEAR_PROP_SET = "CLEAR_PROP_SET";
+
+   /**
+    * @msg Removing property from ResourcePropertySet, property: {0}
+    */
+   String REMOVING_PROP = "REMOVING_PROP";
+
+   /**
+    * @msg Adding property to ResourcePropertySet, property: {0}
+    */
+   String ADDING_PROP = "ADDING_PROP";
+
+   /**
+    * @msg Processing SetResourceProperties request: {0} ...
+    */
+   String SET_RP_REQ = "SET_RP_REQ";
+
+   /**
+    * @msg Deleting resource property: {0} ...
+    */
+   String DEL_RP_REQ = "DEL_RP_REQ";
+
+   /**
+    * @msg wsrp:Delete element is missing the required ResourceProperty attribute.
+    */
+   String DEL_MISSING_RP_ATTRIB = "DEL_MISSING_RP_ATTRIB";
+
+   /**
+    * @msg Inserting resource property...
+    */
+   String INSERT_RP_REQ = "INSERT_RP_REQ";
+
+   /**
+    * @msg Property {0} cannot be deleted because its minOccurs is greater than zero.
+    */
+   String ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA = "ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA";
+
+   /**
+    * @msg Element {0} cannot be inserted because maxOccurs for property {1} would be exceeded.
+    */
+   String ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA = "ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA";
+
+   /**
+    * @msg Updating resource property...
+    */
+   String UPDATE_RP_REQ = "UPDATE_RP_REQ";
+
+   /**
+    * @msg Elements cannot be inserted because maxOccurs for property {0} would be exceeded.
+    */
+   String ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA = "ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA";
+
+   /**
+    * @msg Getting Resource Property with name: {0}
+    */
+   String GET_RP_WITH_NAME = "GET_RP_WITH_NAME";
+
+   /**
+    * @msg Query ResourceProperties request: {0}
+    */
+   String QUERY_RP_REQ = "QUERY_RP_REQ";
+
+   /**
+    * @msg Failed to extract SOAP envelope from resource context. Cause: {0}
+    */
+   String FAILED_TO_EXTRACT_SOAP_ENV = "FAILED_TO_EXTRACT_SOAP_ENV";
+
+   /**
+    * @msg Attempting to get resource property: {0} ...
+    */
+   String GET_RP_REQ = "GET_RP_REQ";
+
+   /**
+    * @msg GetMultipleResourceProperties request: {0}
+    */
+   String GET_MULTI_RP_REQ = "GET_MULTI_RP_REQ";
+
+   /**
+    * @msg Attempt to call a WSRP operation on a WS-Resource that has no properties.
+    */
+   String CALL_WSRP_OP_ON_NOPROP = "CALL_WSRP_OP_ON_NOPROP";
+
+   /**
+    * @msg Unsupported dialect: {0}
+    */
+   String UNSUPP_DIALECT = "UNSUPP_DIALECT";
+
+   /**
+    * @msg value
+    */
+   String VALUE = "VALUE";
+
+   /**
+    * @msg namespaceContext
+    */
+   String NMSPCECTX = "NMSPCECTX";
+
+   /**
+    * @msg Constructed XPathExpression: {0}
+    */
+   String CONSTR_XPATH_EXPR = "CONSTR_XPATH_EXPR";
+
+   /**
+    * @msg XPath expression: {0}
+    */
+   String XPATH = "XPATH";
+
+   /**
+    * @msg Properties document: {0}
+    */
+   String PROP_DOC = "PROP_DOC";
+
+   /**
+    * @msg Xalan XPath expression evaluator (Xalan version is {0})
+    */
+   String XALAN_EVALUATOR = "XALAN_EVALUATOR";
+
+   /**
+    * @msg Jaxen XPath expression evaluator
+    */
+   String JAXEN_EVALUATOR = "JAXEN_EVALUATOR";
+
+   /**
+    * @msg XPath Expression was null.
+    */
+   String NULL_XPATH = "NULL_XPATH";
+
+   /**
+    * @msg Evaluating XPath expression [{0}] over context [{1}]
+    */
+   String EVAL_XPATH = "EVAL_XPATH";
+
+   /**
+    * @msg XPath query failed: {0}  Cause: {1}
+    */
+   String XPATH_FAILED = "XPATH_FAILED";
+
+   /**
+    * @msg Namespace context on XPathExpression is null or is not a DomNamespaceContext.
+    */
+   String BAD_XPATH_NAMESPACE_CONTEXT = "BAD_XPATH_NAMESPACE_CONTEXT";
+
+   /**
+    * @msg QueryEngine encountered an error during a refresh. Cause: {0}
+    */
+   String QUERY_ENG_INIT_ERROR = "QUERY_ENG_INIT_ERROR";
+
+   /**
+    * @msg Executing Query
+    */
+   String EXEC_QUERY = "EXEC_QUERY";
+
+   /**
+    * @msg  on ResourcePropertySet:
+    */
+   String ON_RP_SET = "ON_RP_SET";
+
+   /**
+    * @msg All property elements in Insert request must have the same name.
+    */
+   String ERROR_INSERT_ELEMS_NOT_HOMOGENOUS = "ERROR_INSERT_ELEMS_NOT_HOMOGENOUS";
+
+   /**
+    * @msg All property elements in Update request must have the same name.
+    */
+   String ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS = "ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS";
+
+   /**
+    * @msg XML Beans XPath expression evaluator
+    */
+   String XMLBEANS_XPATH_EVAL = "XMLBEANS_XPATH_EVAL";
+
+   /**
+    * @msg The XMLBeanXPathExpressionEvaluator#evaluate() requires that the specified ResourcePropertySet be an instance of XmlBeansResourcePropertySet. Cause: {0}
+    */
+   String ERROR_XPATH_EXPR_REQ_XMLBEANRPSET = "ERROR_XPATH_EXPR_REQ_XMLBEANRPSET";
+
+   /**
+    * @msg Query failed: {0} Cause: {1}
+    */
+   String QUERY_FAILED = "QUERY_FAILED";
+
+   /**
+    * @msg Failed to initialize query expression dialect. Cause: {0}
+    */
+   String FAILED_INIT_DIALECT = "FAILED_INIT_DIALECT";
+
+   /**
+    * @msg As per the WS-RP schema, a query expression element can only have up to one child node.
+    */
+   String QUERY_ONLY_ONE_NODE = "QUERY_ONLY_ONE_NODE";
+
+   /**
+    * @msg As per the WS-RP schema, a query expression element must contain either one element or one text node.
+    */
+   String QUERY_MUST_HAVE_ELEM_OR_TXT = "QUERY_MUST_HAVE_ELEM_OR_TXT";
+
+   /**
+    * @msg The QueryExpression is: {0}
+    */
+   String QUERY_EXPR = "QUERY_EXPR";
+
+   /**
+    * @msg Invoking service method: {0}
+    */
+   String INVOKING_SERVICE_METHOD = "INVOKING_SERVICE_METHOD";
+
+   /**
+    * @msg  for Dialect:
+    */
+   String FOR_DIALECT = "FOR_DIALECT";
+
+   /**
+    * @msg Wsdl2Java expects the WSDL files to have the extension .wsdl the passed-in file was named: {0}
+    */
+   String ERROR_ONLY_WSDLS = "ERROR_ONLY_WSDLS";
+
+   /**
+    * @msg Retrieving the Action from the Addressing Headers.  Action is: {0}
+    */
+   String GET_ACTION_FROM_ADDR_HDR = "GET_ACTION_FROM_ADDR_HDR";
+
+   /**
+    * @msg Received request with no WS-Addressing Action header.
+    */
+   String NO_WSA_ACTION = "NO_WSA_ACTION";
+
+   /**
+    * @msg Received request with no WS-Addressing headers.
+    */
+   String NO_WSA_HEADERS = "NO_WSA_HEADERS";
+
+   /**
+    * @msg There was an error when calling the insertProperty operation on the callback {0}
+    */
+   String ERROR_DURING_INSERT_CALLBACK = "ERROR_DURING_INSERT_CALLBACK";
+
+   /**
+    * @msg There was an error when calling the updateProperty operation on the callback {0}
+    */
+   String ERROR_DURING_UPDATE_CALLBACK = "ERROR_DURING_UPDATE_CALLBACK";
+
+   /**
+    * @msg There was an error when calling the deleteProperty operation on the callback {0}
+    */
+   String ERROR_DURING_DELETE_CALLBACK = "ERROR_DURING_DELETE_CALLBACK";
+
+   /**
+    * @msg Error occurred during delete property operation.
+    */
+   String ERROR_DURING_DELETE = "ERROR_DURING_DELETE";
+
+   /**
+    * @msg Error occurred during insert property operation.
+    */
+   String ERROR_DURING_INSERT = "ERROR_DURING_INSERT";
+
+   /**
+    * @msg Error occurred during update property operation.
+    */
+   String ERROR_DURING_UPDATE = "ERROR_DURING_UPDATE";
+
+   /**
+    * @msg Unrecognized request body element.
+    */
+   String BAD_REQUEST_BODY_ELEMENT_NOPARAM = "BAD_REQUEST_BODY_ELEMENT_NOPARAM";
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/MessagesImpl.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/MessagesImpl.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/MessagesImpl.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/i18n/MessagesImpl.java Tue Aug  2 09:28:49 2005
@@ -27,8 +27,10 @@
 public class MessagesImpl
    extends AbstractMessages
 {
+   /** DOCUMENT_ME */
+   public static final String PROJECT_PACKAGE_NAME  = "org.apache.ws.resource";
 
-   public static final String PROJECT_PACKAGE_NAME = "org.apache.ws.resource";
+   /** DOCUMENT_ME */
    public static final String RESOURCE_PACKAGE_NAME = "org.apache.ws.resource.i18n";
    private static Messages    s_ourInstance = new MessagesImpl(  );
 
@@ -61,5 +63,4 @@
    {
       return RESOURCE_PACKAGE_NAME;
    }
-   
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/impl/AbstractResourceContext.java Tue Aug  2 09:28:49 2005
@@ -31,7 +31,6 @@
 import org.apache.ws.resource.i18n.Keys;
 import org.apache.ws.resource.i18n.MessagesImpl;
 import org.apache.ws.util.i18n.Messages;
-
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import javax.xml.rpc.handler.MessageContext;
@@ -49,310 +48,321 @@
  * An abstract implementation of a resource context.
  */
 public abstract class AbstractResourceContext
-        implements ResourceContext
+   implements ResourceContext
 {
-
-    private static final Log LOG = LogFactory.getLog( AbstractResourceContext.class.getName() );
-    private static final Messages MSG = MessagesImpl.getInstance();
-
-    private SOAPMessage m_msg;
-    private ResourceHome m_home;
-    private String m_serviceName;
-    private URL m_serviceURL;
-    private Map m_propsMap = Collections.synchronizedMap( new HashMap() );
-    private String m_baseURL;
-    private String m_action;
-    private SOAPMessageContext m_msgContext;
-
-    /**
-     * Creates a new {@link AbstractResourceContext} object.
-     *
-     * @param soapMsgContext DOCUMENT_ME
-     */
-    public AbstractResourceContext( SOAPMessageContext soapMsgContext ) throws Exception
-    {
-        if ( soapMsgContext == null )
-        {
-            throw new IllegalArgumentException( MSG.getMessage( Keys.NULL_SOAPMSGCTX ) );
-        }
-        m_msgContext = soapMsgContext;
-        m_msg = soapMsgContext.getMessage();
-        extractFields( soapMsgContext );
-        try
-        {
-            m_home = (ResourceHome) new InitialContext().lookup( getResourceHomeLocation() );
-        }
-        catch ( NamingException ne )
-        {
-            ne.printStackTrace();
-            throw new ResourceContextException( ne );
-        }
-        if ( m_home instanceof AbstractResourceHome )
-        {
-            AbstractResourceHome abstractResourceHome = ( (AbstractResourceHome) m_home );
-
-            //check if home has been initialized
-            synchronized (abstractResourceHome)
-            {
-                if( !abstractResourceHome.isInitialized())
-                {
-                    abstractResourceHome.init();
-                }
-            }
-        }
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param name  DOCUMENT_ME
-     * @param value DOCUMENT_ME
-     */
-    public void setProperty( String name,
-                             Object value )
-    {
-        m_propsMap.put( name, value );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param name DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public Object getProperty( String name )
-    {
-        return this.m_propsMap.get( name );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public Iterator getPropertyNames()
-    {
-        return this.m_propsMap.keySet().iterator();
-    }
-
-    /**
-     * @see org.apache.ws.resource.ResourceContext#getResource()
-     */
-    public Resource getResource() throws ResourceException
-    {
-        ResourceHome home = getResourceHome();
-        Object id = home.extractResourceIdentifier( this );
-        return home.find( id );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public ResourceHome getResourceHome()
-    {
-        return m_home;
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public synchronized String getResourceHomeLocation()
-    {
-        String homeLocation = JndiConstants.CONTEXT_NAME_SERVICES + "/" + getServiceName() + "/" +
-                JndiConstants.ATOMIC_NAME_HOME;
-        LOG.debug( MSG.getMessage( Keys.JNDI_HOME_LOCATION, homeLocation ) );
-        return homeLocation;
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public SOAPMessage getSOAPMessage()
-    {
-        return m_msg;
-    }
-
-    /**
-     * Returns target m_serviceName associated with this context.
-     *
-     * @return the target m_serviceName that was set with {@link #setServiceName(String) setService()}. If set to
-     *         <code>null</code> or not set at all, by default it returns the target m_serviceName associated with the
-     *         underlying SOAP m_msg context.
-     */
-    public String getServiceName()
-    {
-        return m_serviceName;
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public URL getServiceURL()
-    {
-        return m_serviceURL;
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param name DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public boolean containsProperty( String name )
-    {
-        return this.m_propsMap.containsKey( name );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param name DOCUMENT_ME
-     */
-    public void removeProperty( String name )
-    {
-        this.m_propsMap.remove( name );
-    }
-
-    /**
-     * Sets the target m_serviceName of this context.
-     *
-     * @param serviceName m_serviceName name.
-     */
-    protected void setServiceName( String serviceName )
-    {
-        m_serviceName = serviceName;
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param msgContext DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    protected String getServiceName( MessageContext msgContext )
-    {
-        URL serviceURL = ( m_serviceURL != null ) ? m_serviceURL : getServiceURL();
-        return serviceURL.getFile();
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param msgContext SAAJ message context; may not be null
-     *
-     * @return DOCUMENT_ME
-     */
-    protected URL getServiceURL( MessageContext msgContext )
-    {
-        AddressingHeaders wsaHeaders =
-                (AddressingHeaders) msgContext.getProperty(
-                        org.apache.axis.message.addressing.Constants.ENV_ADDRESSING_REQUEST_HEADERS );
-        try
-        {
-            String serviceUrl = wsaHeaders.getTo().toString();
-            LOG.debug( MSG.getMessage( Keys.GET_SERVICE_URL_FROM_ADDR_HDR, serviceUrl ) );
-            return new URL( serviceUrl );
-        }
-        catch ( MalformedURLException murle )
-        {
-            throw new RuntimeException( "Value of wsa:To SOAP header element is not a valid URL.", murle );
-        }
-    }
-
-    /**
-     * Returns the WS-Addressing Action Header
-     *
-     * @param msgContext SAAJ message context; may not be null
-     *
-     * @return
-     */
-    protected String getAddressingAction( MessageContext msgContext )
-    {
-        AddressingHeaders addrHeaders =
-                (AddressingHeaders) msgContext.getProperty(
-                        org.apache.axis.message.addressing.Constants.ENV_ADDRESSING_REQUEST_HEADERS );
-        if ( addrHeaders == null )
-        {
-            LOG.debug( MSG.getMessage( Keys.NO_WSA_HEADERS ) );
-            throw new FaultException( Soap1_1Constants.FAULT_CLIENT, "This endpoint requires WS-Addressing headers." );
-        }
-        Action wsaAction = addrHeaders.getAction();
-        if ( wsaAction == null )
-        {
-            LOG.debug( MSG.getMessage( Keys.NO_WSA_ACTION ) );
-            throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
-                    "The WS-Addressing Action header is required by this endpoint." );
-        }
-        LOG.debug( MSG.getMessage( Keys.GET_ACTION_FROM_ADDR_HDR, wsaAction ) );
-        return wsaAction.toString();
-    }
-
-    private void extractFields( MessageContext msgContext )
-    {
-        m_serviceURL = getServiceURL( msgContext );
-        m_serviceName = getServiceName( msgContext );
-        m_baseURL = getBaseURL( m_serviceURL );
-        m_action = getAddressingAction( msgContext );
-        extractProperties( msgContext );
-    }
-
-    private String getBaseURL( URL serviceURL )
-    {
-        String s = serviceURL.toString();
-        s = s.substring( 0, s.lastIndexOf( "/" ) );
-        return s;
-    }
-
-    private void extractProperties( MessageContext msgContext )
-    {
-        Iterator propertyNames = msgContext.getPropertyNames();
-        while ( propertyNames.hasNext() )
-        {
-            String keyName = (String) propertyNames.next();
-            m_propsMap.put( keyName,
-                    msgContext.getProperty( keyName ) );
-        }
-    }
-
-    public String getBaseURL()
-    {
-        return m_baseURL;
-    }
-
-    public String getRequestAction()
-    {
-        return m_action;
-    }
-
-    /**
-     * @see ResourceContext#setResponseAction(java.net.URI)
-     */
-    public void setResponseAction( URI action )
-    {
-        if ( action != null )
-        {
-            AddressingHeaders responseAddrHeaders =
-                    AddressingUtils.getResponseHeaders( m_msgContext );
-            try
+   private static final Log      LOG = LogFactory.getLog( AbstractResourceContext.class.getName(  ) );
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private SOAPMessage           m_msg;
+   private ResourceHome          m_home;
+   private String                m_serviceName;
+   private URL                   m_serviceURL;
+   private Map                   m_propsMap = Collections.synchronizedMap( new HashMap(  ) );
+   private String                m_baseURL;
+   private String                m_action;
+   private SOAPMessageContext    m_msgContext;
+
+   /**
+    * Creates a new {@link AbstractResourceContext} object.
+    *
+    * @param soapMsgContext DOCUMENT_ME
+    */
+   public AbstractResourceContext( SOAPMessageContext soapMsgContext )
+   throws Exception
+   {
+      if ( soapMsgContext == null )
+      {
+         throw new IllegalArgumentException( MSG.getMessage( Keys.NULL_SOAPMSGCTX ) );
+      }
+
+      m_msgContext    = soapMsgContext;
+      m_msg           = soapMsgContext.getMessage(  );
+      extractFields( soapMsgContext );
+      try
+      {
+         m_home = (ResourceHome) new InitialContext(  ).lookup( getResourceHomeLocation(  ) );
+      }
+      catch ( NamingException ne )
+      {
+         ne.printStackTrace(  );
+         throw new ResourceContextException( ne );
+      }
+
+      if ( m_home instanceof AbstractResourceHome )
+      {
+         AbstractResourceHome abstractResourceHome = ( (AbstractResourceHome) m_home );
+
+         //check if home has been initialized
+         synchronized ( abstractResourceHome )
+         {
+            if ( !abstractResourceHome.isInitialized(  ) )
             {
-                responseAddrHeaders.setAction( action.toString() );
+               abstractResourceHome.init(  );
             }
-            catch ( Exception e )
-            {
-                throw new RuntimeException( "Failed to set wsa:Action for response.", e );
-            }
-        }
-    }
-
-}
+         }
+      }
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getBaseURL(  )
+   {
+      return m_baseURL;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param name  DOCUMENT_ME
+    * @param value DOCUMENT_ME
+    */
+   public void setProperty( String name,
+                            Object value )
+   {
+      m_propsMap.put( name, value );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param name DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Object getProperty( String name )
+   {
+      return this.m_propsMap.get( name );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Iterator getPropertyNames(  )
+   {
+      return this.m_propsMap.keySet(  ).iterator(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getRequestAction(  )
+   {
+      return m_action;
+   }
+
+   /**
+    * @see org.apache.ws.resource.ResourceContext#getResource()
+    */
+   public Resource getResource(  )
+   throws ResourceException
+   {
+      ResourceHome home = getResourceHome(  );
+      Object       id = home.extractResourceIdentifier( this );
+      return home.find( id );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public ResourceHome getResourceHome(  )
+   {
+      return m_home;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public synchronized String getResourceHomeLocation(  )
+   {
+      String homeLocation =
+         JndiConstants.CONTEXT_NAME_SERVICES + "/" + getServiceName(  ) + "/" + JndiConstants.ATOMIC_NAME_HOME;
+      LOG.debug( MSG.getMessage( Keys.JNDI_HOME_LOCATION, homeLocation ) );
+      return homeLocation;
+   }
+
+   /**
+    * @see ResourceContext#setResponseAction(java.net.URI)
+    */
+   public void setResponseAction( URI action )
+   {
+      if ( action != null )
+      {
+         AddressingHeaders responseAddrHeaders = AddressingUtils.getResponseHeaders( m_msgContext );
+         try
+         {
+            responseAddrHeaders.setAction( action.toString(  ) );
+         }
+         catch ( Exception e )
+         {
+            throw new RuntimeException( "Failed to set wsa:Action for response.", e );
+         }
+      }
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public SOAPMessage getSOAPMessage(  )
+   {
+      return m_msg;
+   }
+
+   /**
+    * Returns target m_serviceName associated with this context.
+    *
+    * @return the target m_serviceName that was set with {@link #setServiceName(String) setService()}. If set to
+    *         <code>null</code> or not set at all, by default it returns the target m_serviceName associated with the
+    *         underlying SOAP m_msg context.
+    */
+   public String getServiceName(  )
+   {
+      return m_serviceName;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public URL getServiceURL(  )
+   {
+      return m_serviceURL;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param name DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public boolean containsProperty( String name )
+   {
+      return this.m_propsMap.containsKey( name );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param name DOCUMENT_ME
+    */
+   public void removeProperty( String name )
+   {
+      this.m_propsMap.remove( name );
+   }
+
+   /**
+    * Returns the WS-Addressing Action Header
+    *
+    * @param msgContext SAAJ message context; may not be null
+    *
+    * @return
+    */
+   protected String getAddressingAction( MessageContext msgContext )
+   {
+      AddressingHeaders addrHeaders =
+         (AddressingHeaders) msgContext.getProperty( org.apache.axis.message.addressing.Constants.ENV_ADDRESSING_REQUEST_HEADERS );
+      if ( addrHeaders == null )
+      {
+         LOG.debug( MSG.getMessage( Keys.NO_WSA_HEADERS ) );
+         throw new FaultException( Soap1_1Constants.FAULT_CLIENT, "This endpoint requires WS-Addressing headers." );
+      }
+
+      Action wsaAction = addrHeaders.getAction(  );
+      if ( wsaAction == null )
+      {
+         LOG.debug( MSG.getMessage( Keys.NO_WSA_ACTION ) );
+         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
+                                   "The WS-Addressing Action header is required by this endpoint." );
+      }
+
+      LOG.debug( MSG.getMessage( Keys.GET_ACTION_FROM_ADDR_HDR, wsaAction ) );
+      return wsaAction.toString(  );
+   }
+
+   /**
+    * Sets the target m_serviceName of this context.
+    *
+    * @param serviceName m_serviceName name.
+    */
+   protected void setServiceName( String serviceName )
+   {
+      m_serviceName = serviceName;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param msgContext DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected String getServiceName( MessageContext msgContext )
+   {
+      URL serviceURL = ( m_serviceURL != null ) ? m_serviceURL : getServiceURL(  );
+      return serviceURL.getFile(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param msgContext SAAJ message context; may not be null
+    *
+    * @return DOCUMENT_ME
+    */
+   protected URL getServiceURL( MessageContext msgContext )
+   {
+      AddressingHeaders wsaHeaders =
+         (AddressingHeaders) msgContext.getProperty( org.apache.axis.message.addressing.Constants.ENV_ADDRESSING_REQUEST_HEADERS );
+      try
+      {
+         String serviceUrl = wsaHeaders.getTo(  ).toString(  );
+         LOG.debug( MSG.getMessage( Keys.GET_SERVICE_URL_FROM_ADDR_HDR, serviceUrl ) );
+         return new URL( serviceUrl );
+      }
+      catch ( MalformedURLException murle )
+      {
+         throw new RuntimeException( "Value of wsa:To SOAP header element is not a valid URL.", murle );
+      }
+   }
+
+   private String getBaseURL( URL serviceURL )
+   {
+      String s = serviceURL.toString(  );
+      s = s.substring( 0,
+                       s.lastIndexOf( "/" ) );
+      return s;
+   }
+
+   private void extractFields( MessageContext msgContext )
+   {
+      m_serviceURL     = getServiceURL( msgContext );
+      m_serviceName    = getServiceName( msgContext );
+      m_baseURL        = getBaseURL( m_serviceURL );
+      m_action         = getAddressingAction( msgContext );
+      extractProperties( msgContext );
+   }
+
+   private void extractProperties( MessageContext msgContext )
+   {
+      Iterator propertyNames = msgContext.getPropertyNames(  );
+      while ( propertyNames.hasNext(  ) )
+      {
+         String keyName = (String) propertyNames.next(  );
+         m_propsMap.put( keyName,
+                         msgContext.getProperty( keyName ) );
+      }
+   }
+}
\ No newline at end of file