You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by sc...@apache.org on 2006/06/02 19:33:13 UTC

svn commit: r411218 [17/34] - in /webservices/muse: branches/1.0/ branches/1.0/src/examples/broker/ branches/1.0/src/examples/broker/WEB-INF/ branches/1.0/src/examples/consumer/ branches/1.0/src/examples/consumer/epr/ branches/1.0/src/examples/consumer...

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,88 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_06.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * LOG-DONE An operation provider for wsrp:GetMultipleResourceProperties.
+ *
+ * @author Ian P. Springer
+ */
+public class GetMultipleResourcePropertiesPortTypeImpl
+   extends AbstractGetResourcePropertiesPortType
+   implements GetMultipleResourcePropertiesPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link GetMultipleResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetMultipleResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:GetMultipleResourceProperties operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws InvalidResourcePropertyQNameFaultException
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    */
+   public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc )
+   {
+      GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument(  );
+      QName[]                                       propNames =
+         requestDoc.getGetMultipleResourceProperties(  ).getResourcePropertyArray(  );
+      ResourceProperty[]                            props = getMultipleProperties( propNames );
+      addPropertiesToResponse( props,
+                               responseDoc.getGetMultipleResourcePropertiesResponse(  ) );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetMultipleResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      GetMultipleResourcePropertiesResponseDocument responseDoc =
+         GetMultipleResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetMultipleResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/GetResourcePropertyPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,100 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_06.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType;
+import org.apache.ws.util.i18n.Messages;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * An operation provider for wsrp:GetResourceProperty.
+ *
+ * @author Ian P. Springer
+ */
+public class GetResourcePropertyPortTypeImpl
+   extends AbstractGetResourcePropertiesPortType
+   implements GetResourcePropertyPortType
+{
+   private static final Log                    LOG = LogFactory.getLog( GetResourcePropertyPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link GetResourcePropertyPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetResourcePropertyPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:GetResourceProperty operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws InvalidResourcePropertyQNameFaultException
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    */
+   public GetResourcePropertyResponseDocument getResourceProperty( GetResourcePropertyDocument requestDoc )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.GET_RP_REQ,
+                                    requestDoc.toString(  ) ) );
+      }
+
+      GetResourcePropertyResponseDocument responseDoc = createResponseDocument(  );
+      QName                               propName = requestDoc.getGetResourceProperty(  );
+      ResourceProperty                    prop     = getProperty( propName );
+      addPropertyToResponse( prop,
+                             responseDoc.getGetResourcePropertyResponse(  ) );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetResourcePropertyResponseDocument createResponseDocument(  )
+   {
+      GetResourcePropertyResponseDocument responseDoc =
+         GetResourcePropertyResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetResourcePropertyResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/QueryResourcePropertiesPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,167 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_06.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.faults.InvalidQueryExpressionFaultException;
+import org.apache.ws.resource.properties.faults.QueryEvaluationErrorFaultException;
+import org.apache.ws.resource.properties.faults.UnknownQueryExpressionDialectFaultException;
+import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
+import org.apache.ws.resource.properties.query.InvalidQueryExpressionException;
+import org.apache.ws.resource.properties.query.QueryEngine;
+import org.apache.ws.resource.properties.query.QueryEvaluationErrorException;
+import org.apache.ws.resource.properties.query.UnknownQueryExpressionDialectException;
+import org.apache.ws.resource.properties.query.impl.QueryEngineImpl;
+import org.apache.ws.resource.properties.query.impl.XmlBeansQueryExpression;
+import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.porttype.QueryResourcePropertiesPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryExpressionType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryResourcePropertiesResponseDocument;
+import java.lang.reflect.Array;
+
+/**
+ * LOG-DONE An operation provider for wsrp:QueryResourceProperties.
+ *
+ * TODO (v1.1): factor out a common base class to be shared across spec versions
+ *
+ * @author Ian P. Springer
+ */
+public class QueryResourcePropertiesPortTypeImpl
+   extends AbstractResourcePropertiesPortType
+   implements QueryResourcePropertiesPortType
+{
+   private static final Log                    LOG =
+      LogFactory.getLog( QueryResourcePropertiesPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+   private static final QueryEngine            QUERY_ENGINE  = new QueryEngineImpl(  );
+
+   /**
+    * Creates a new {@link QueryResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public QueryResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:QueryResourceProperties operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    *
+    * @throws org.apache.ws.resource.properties.faults.UnknownQueryExpressionDialectFaultException
+    *          if query dialect is unsupported.
+    * @throws org.apache.ws.resource.properties.faults.QueryEvaluationErrorFaultException
+    *          if query evaluation fails.
+    * @throws org.apache.ws.resource.properties.faults.InvalidQueryExpressionFaultException
+    *          if query expression is invalid.
+    */
+   public QueryResourcePropertiesResponseDocument queryResourceProperties( QueryResourcePropertiesDocument requestDoc )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
+                                    requestDoc.toString(  ) ) );
+      }
+
+      QueryResourcePropertiesResponseDocument responseDoc   = createResponseDocument(  );
+      QueryExpressionType                     queryExprType =
+         requestDoc.getQueryResourceProperties(  ).getQueryExpression(  );
+      XmlBeansQueryExpression                 queryExpr = new XmlBeansQueryExpression( queryExprType );
+      refreshAllProperties(  );
+      Object result = null;
+      try
+      {
+         result = QUERY_ENGINE.executeQuery( queryExpr,
+                                             getProperties(  ) );
+      }
+      catch ( UnknownQueryExpressionDialectException uqede )
+      {
+         throw new UnknownQueryExpressionDialectFaultException( NAMESPACE_SET,
+                                                                uqede.getDialect(  ) );
+      }
+      catch ( QueryEvaluationErrorException qeee )
+      {
+         throw new QueryEvaluationErrorFaultException( NAMESPACE_SET,
+                                                       qeee.getMessage(  ) );
+      }
+      catch ( InvalidQueryExpressionException iqee )
+      {
+         throw new InvalidQueryExpressionFaultException( NAMESPACE_SET, queryExpr );
+      }
+
+      QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
+         responseDoc.getQueryResourcePropertiesResponse(  );
+      if ( result.getClass(  ).isArray(  ) )
+      {
+         for ( int i = 0; i < Array.getLength( result ); i++ )
+         {
+            Object    resultItem  = Array.get( result, i );
+            XmlObject resultXBean = null;
+            try
+            {
+               resultXBean = XmlBeanUtils.toXmlObject( resultItem );
+            }
+            catch ( Exception e )
+            {
+               throw new RuntimeException( "Unable to convert query result object to XmlObject.", e );
+            }
+
+            XmlBeanUtils.addChildElement( responseElem, resultXBean );
+         }
+      }
+      else
+      {
+         XmlBeanUtils.setValue( responseElem,
+                                result.toString(  ) );
+      }
+
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private QueryResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      QueryResourcePropertiesResponseDocument responseDoc =
+         QueryResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewQueryResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_06/porttype/impl/SetResourcePropertiesPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,178 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_06.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.faults.DeleteResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.InsertResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.InvalidInsertResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.InvalidUpdateResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.SetResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.UpdateResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_06.impl.XmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_06.porttype.SetResourcePropertiesPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.DeleteType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.InsertType;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesResponseDocument;
+import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.UpdateType;
+
+/**
+ * LOG-DONE An operation provider for wsrp:SetResourceProperties.
+ *
+ * @author Ian P. Springer
+ */
+public class SetResourcePropertiesPortTypeImpl
+   extends AbstractSetResourcePropertiesPortType
+   implements SetResourcePropertiesPortType
+{
+   private static final Log                    LOG = LogFactory.getLog( SetResourcePropertiesPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link SetResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public SetResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:SetResourceProperties operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    *
+    */
+   public SetResourcePropertiesResponseDocument setResourceProperties( SetResourcePropertiesDocument requestDoc )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.SET_RP_REQ, requestDoc ) );
+      }
+
+      SetResourcePropertiesResponseDocument               responseDoc = createResponseDocument(  );
+      SetResourcePropertiesDocument.SetResourceProperties requestElem = requestDoc.getSetResourceProperties(  );
+
+      InsertType[]                                        insertElems = requestElem.getInsertArray(  );
+      for ( int i = 0; i < insertElems.length; i++ )
+      {
+         XmlObject[] propElemsToBeInserted = XmlBeanUtils.getChildElements( insertElems[i] );
+         try
+         {
+            insertResourceProperty( propElemsToBeInserted );
+         }
+         catch ( InsertResourcePropertyRequestFailedFaultException fault )
+         {
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      fault.getFaultString(  ) );
+         }
+         catch ( InvalidInsertResourcePropertiesRequestContentFaultException fault )
+         {
+            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                fault.getFaultString(  ) );
+         }
+      }
+
+      DeleteType[] deleteElems = requestElem.getDeleteArray(  );
+      for ( int i = 0; i < deleteElems.length; i++ )
+      {
+         try
+         {
+            deleteResourceProperty( deleteElems[i].getResourceProperty(  ) );
+         }
+         catch ( DeleteResourcePropertyRequestFailedFaultException fault )
+         {
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      fault.getFaultString(  ) );
+         }
+      }
+
+      UpdateType[] updateElems = requestElem.getUpdateArray(  );
+      for ( int i = 0; i < updateElems.length; i++ )
+      {
+         XmlObject[] newPropElems = XmlBeanUtils.getChildElements( updateElems[i] );
+         try
+         {
+            updateResourceProperty( newPropElems );
+         }
+         catch ( UpdateResourcePropertyRequestFailedFaultException fault )
+         {
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      fault.getFaultString(  ) );
+         }
+         catch ( InvalidUpdateResourcePropertiesRequestContentFaultException fault )
+         {
+            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                fault.getFaultString(  ) );
+         }
+      }
+
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                                                                   Object[] newValue )
+   {
+      return new XmlBeansResourcePropertyValueChangeEvent( oldValue, newValue );
+   }
+
+   private SetResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      SetResourcePropertiesResponseDocument responseDoc =
+         SetResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewSetResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/ResourcePropertiesConstants.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,51 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11;
+
+import org.apache.ws.resource.v2004_11.WsrfConstants;
+import javax.xml.namespace.QName;
+
+/**
+ * Constants for namespaces defined by the 2004/11 version of the WSRF ResourceProperties specification.
+ */
+public interface ResourcePropertiesConstants
+{
+   /**
+    * Namespace URI for WS-ResourceProperties schema.
+    */
+   String NSURI_WSRP_SCHEMA = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ResourceProperties-1.2-draft-05.xsd";
+
+   /**
+    * Namespace prefix for WS-ResourceProperties schema.
+    */
+   String NSPREFIX_WSRP_SCHEMA = "wsrf-rp";
+
+   /**
+    * Namespace URI for WS-ResourceProperties WSDL.
+    */
+   String NSURI_WSRP_WSDL = WsrfConstants.BASE_URI_WSRF + "wsrf-WS-ResourceProperties-1.2-draft-05.wsdl";
+
+   /**
+    * Namespace prefix for WS-ResourceProperties WSDL.
+    */
+   String NSPREFIX_WSRP_WSDL = "wsrf-rpw";
+
+   /**
+    * QName of the "ResourceProperties" portType attribute.
+    */
+   QName RESOURCE_PROPERTIES_PORTTYPE_ATTRIB =
+      new QName( NSURI_WSRP_SCHEMA, "ResourceProperties", NSPREFIX_WSRP_SCHEMA );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/NamespaceVersionHolderImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,91 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.impl;
+
+import org.apache.ws.resource.faults.v2004_11.FaultsConstants;
+import org.apache.ws.resource.lifetime.v2004_11.ResourceLifetimeConstants;
+import org.apache.ws.resource.metadataexchange.v2004_09.MetadataExchangeConstants;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.apache.ws.resource.servicegroup.v2004_11.ServiceGroupConstants;
+import org.apache.ws.addressing.v2004_08_10.AddressingConstants;
+
+/**
+ * @author Sal Campana
+ */
+public class NamespaceVersionHolderImpl
+   implements NamespaceVersionHolder
+{
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getAddressingNamespace(  )
+   {
+      return AddressingConstants.NSURI_ADDRESSING_SCHEMA;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getBaseFaultsXsdNamespace(  )
+   {
+      return FaultsConstants.NSURI_BASEFAULTS_SCHEMA;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getLifetimeXsdNamespace(  )
+   {
+      return ResourceLifetimeConstants.NSURI_WSRL_SCHEMA;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getMetadataExchangeNamespace(  )
+   {
+      return MetadataExchangeConstants.NSURI;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getPropertiesXsdNamespace(  )
+   {
+      return ResourcePropertiesConstants.NSURI_WSRP_SCHEMA;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getServiceGroupsXsdNamespace(  )
+   {
+      return ServiceGroupConstants.NSURI_WSSG_SCHEMA;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/impl/XmlBeansResourcePropertyValueChangeEvent.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,91 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.impl;
+
+import org.apache.ws.XmlObjectWrapper;
+import org.apache.ws.resource.properties.ResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.ResourcePropertyValueChangeNotificationDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.ResourcePropertyValueChangeNotificationType;
+
+/**
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public class XmlBeansResourcePropertyValueChangeEvent
+   extends AbstractXmlBeansResourcePropertyValueChangeEvent
+   implements ResourcePropertyValueChangeEvent,
+              XmlObjectWrapper
+{
+   /**
+    * Creates a new {@link XmlBeansResourcePropertyValueChangeEvent} object.
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    */
+   public XmlBeansResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                    Object[] newValue )
+   {
+      super( oldValue, newValue );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected XmlObject buildPropValueChangeNotifDocXmlBean( Object[] oldValue,
+                                                            Object[] newValue )
+   {
+      ResourcePropertyValueChangeNotificationDocument      propValueChangeNotifDocXBean =
+         ResourcePropertyValueChangeNotificationDocument.Factory.newInstance(  );
+      ResourcePropertyValueChangeNotificationType          propValueChangeNotifXBean =
+         propValueChangeNotifDocXBean.addNewResourcePropertyValueChangeNotification(  );
+      ResourcePropertyValueChangeNotificationType.OldValue oldValueXBean =
+         propValueChangeNotifXBean.addNewOldValue(  );
+      if ( oldValue != null )
+      {
+         for ( int i = 0; i < oldValue.length; i++ )
+         {
+            XmlBeanUtils.addChildElement( oldValueXBean, (XmlObject) oldValue[i] );
+         }
+      }
+      else
+      {
+         oldValueXBean.setNil(  );
+      }
+
+      ResourcePropertyValueChangeNotificationType.NewValue newValueXBean =
+         propValueChangeNotifXBean.addNewNewValue(  );
+      if ( newValue != null )
+      {
+         for ( int i = 0; i < oldValue.length; i++ )
+         {
+            XmlBeanUtils.addChildElement( newValueXBean, (XmlObject) newValue[i] );
+         }
+      }
+      else
+      {
+         newValueXBean.setNil(  );
+      }
+
+      return propValueChangeNotifDocXBean;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/DeleteResourcePropertiesPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,43 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP DeleteResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface DeleteResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "DeleteResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   DeleteResourcePropertiesResponseDocument deleteResourceProperties( DeleteResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetMultipleResourcePropertiesPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,43 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP GetMultipleResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface GetMultipleResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "GetMultipleResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyDocumentPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,43 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentDocument1;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP GetResourcePropertyDocument portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface GetResourcePropertyDocumentPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "GetResourcePropertyDocument",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument( GetResourcePropertyDocumentDocument1 requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/GetResourcePropertyPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,43 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP GetResourceProperty portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface GetResourcePropertyPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "GetResourceProperty",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   GetResourcePropertyResponseDocument getResourceProperty( GetResourcePropertyDocument requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/InsertResourcePropertiesPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,43 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP InsertResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface InsertResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "InsertResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   InsertResourcePropertiesResponseDocument insertResourceProperties( InsertResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/QueryResourcePropertiesPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,48 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP QueryResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface QueryResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "QueryResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /** DOCUMENT_ME */
+   QName PROP_QNAME_QUERY_EXPRESSION_DIALECT =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_SCHEMA, "QueryExpressionDialect",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   QueryResourcePropertiesResponseDocument queryResourceProperties( QueryResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/SetResourcePropertiesPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,43 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP SetResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface SetResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "SetResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   SetResourcePropertiesResponseDocument setResourceProperties( SetResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/UpdateResourcePropertiesPortType.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,43 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype;
+
+import org.apache.ws.resource.properties.v2004_11.ResourcePropertiesConstants;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * The WSRF-RP UpdateResourceProperties portType.
+ *
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public interface UpdateResourcePropertiesPortType
+{
+   /** DOCUMENT_ME */
+   QName NAME =
+      new QName( ResourcePropertiesConstants.NSURI_WSRP_WSDL, "UpdateResourceProperties",
+                 ResourcePropertiesConstants.NSPREFIX_WSRP_SCHEMA );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   UpdateResourcePropertiesResponseDocument updateResourceProperties( UpdateResourcePropertiesDocument requestDoc );
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/DeleteResourcePropertiesPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,97 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.porttype.DeleteResourcePropertiesPortType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Ian Springer
+ */
+public class DeleteResourcePropertiesPortTypeImpl
+   extends AbstractSetResourcePropertiesPortType
+   implements DeleteResourcePropertiesPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link DeleteResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public DeleteResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public DeleteResourcePropertiesResponseDocument deleteResourceProperties( DeleteResourcePropertiesDocument requestDoc )
+   {
+      DeleteResourcePropertiesResponseDocument                  responseDoc = createResponseDocument(  );
+      DeleteResourcePropertiesDocument.DeleteResourceProperties requestElem =
+         requestDoc.getDeleteResourceProperties(  );
+      QName                                                     nameOfPropToBeDeleted =
+         requestElem.getDelete(  ).getResourceProperty(  );
+      deleteResourceProperty( nameOfPropToBeDeleted );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                                                                   Object[] newValue )
+   {
+      return new XmlBeansResourcePropertyValueChangeEvent( oldValue, newValue );
+   }
+
+   private DeleteResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      DeleteResourcePropertiesResponseDocument responseDoc =
+         DeleteResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewDeleteResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetMultipleResourcePropertiesPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,82 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.GetMultipleResourcePropertiesPortType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Ian Springer
+ */
+public class GetMultipleResourcePropertiesPortTypeImpl
+   extends AbstractGetResourcePropertiesPortType
+   implements GetMultipleResourcePropertiesPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link GetMultipleResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetMultipleResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc )
+   {
+      GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument(  );
+      QName[]                                       propNames =
+         requestDoc.getGetMultipleResourceProperties(  ).getResourcePropertyArray(  );
+      ResourceProperty[]                            props = getMultipleProperties( propNames );
+      addPropertiesToResponse( props,
+                               responseDoc.getGetMultipleResourcePropertiesResponse(  ) );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetMultipleResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      GetMultipleResourcePropertiesResponseDocument responseDoc =
+         GetMultipleResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetMultipleResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyDocumentPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,91 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyDocumentPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentDocument1;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument;
+
+/**
+ * @author Sal Campana
+ */
+public class GetResourcePropertyDocumentPortTypeImpl
+   extends AbstractResourcePropertiesPortType
+   implements GetResourcePropertyDocumentPortType
+{
+   private static final Log                    LOG =
+      LogFactory.getLog( GetMultipleResourcePropertiesPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link AbstractResourcePropertiesPortType} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetResourcePropertyDocumentPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    * @return DOCUMENT_ME
+    */
+   public GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument( GetResourcePropertyDocumentDocument1 requestDoc )
+   {
+      GetResourcePropertyDocumentResponseDocument                                     responseDocument =
+         createResponseDocument(  );
+      GetResourcePropertyDocumentResponseDocument.GetResourcePropertyDocumentResponse responseDoc =
+         responseDocument.getGetResourcePropertyDocumentResponse(  );
+      XmlBeansResourcePropertySet                                                     properties =
+         (XmlBeansResourcePropertySet) getProperties(  );
+
+      XmlBeanUtils.addChildElement( responseDoc,
+                                    properties.toXmlObject(  ) );
+      return responseDocument;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetResourcePropertyDocumentResponseDocument createResponseDocument(  )
+   {
+      GetResourcePropertyDocumentResponseDocument responseDoc =
+         GetResourcePropertyDocumentResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetResourcePropertyDocumentResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/GetResourcePropertyPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,88 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.impl.AbstractGetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyPortType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument;
+import javax.xml.namespace.QName;
+
+/**
+ * An operation provider for wsrp:GetResourceProperty.
+ *
+ * @author Ian P. Springer
+ */
+public class GetResourcePropertyPortTypeImpl
+   extends AbstractGetResourcePropertiesPortType
+   implements GetResourcePropertyPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link GetResourcePropertyPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public GetResourcePropertyPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:GetResourceProperty operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws InvalidResourcePropertyQNameFaultException
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    *
+    */
+   public GetResourcePropertyResponseDocument getResourceProperty( GetResourcePropertyDocument requestDoc )
+   {
+      GetResourcePropertyResponseDocument responseDoc = createResponseDocument(  );
+      QName                               propName = requestDoc.getGetResourceProperty(  );
+      ResourceProperty                    prop     = getProperty( propName );
+      addPropertyToResponse( prop,
+                             responseDoc.getGetResourcePropertyResponse(  ) );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private GetResourcePropertyResponseDocument createResponseDocument(  )
+   {
+      GetResourcePropertyResponseDocument responseDoc =
+         GetResourcePropertyResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewGetResourcePropertyResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/InsertResourcePropertiesPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,98 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.impl.AbstractSetResourcePropertiesPortType;
+import org.apache.ws.resource.properties.impl.AbstractXmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.impl.XmlBeansResourcePropertyValueChangeEvent;
+import org.apache.ws.resource.properties.v2004_11.porttype.InsertResourcePropertiesPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument;
+
+/**
+ * @author Sal Campana
+ */
+public class InsertResourcePropertiesPortTypeImpl
+   extends AbstractSetResourcePropertiesPortType
+   implements InsertResourcePropertiesPortType
+{
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+
+   /**
+    * Creates a new {@link InsertResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public InsertResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public InsertResourcePropertiesResponseDocument insertResourceProperties( InsertResourcePropertiesDocument requestDoc )
+   {
+      InsertResourcePropertiesResponseDocument                  responseDoc = createResponseDocument(  );
+      InsertResourcePropertiesDocument.InsertResourceProperties requestElem =
+         requestDoc.getInsertResourceProperties(  );
+      XmlObject[]                                               propElemsToBeInserted =
+         XmlBeanUtils.getChildElements( requestElem.getInsert(  ) );
+      insertResourceProperty( propElemsToBeInserted );
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                                                                   Object[] newValue )
+   {
+      return new XmlBeansResourcePropertyValueChangeEvent( oldValue, newValue );
+   }
+
+   private InsertResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      InsertResourcePropertiesResponseDocument responseDoc =
+         InsertResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewInsertResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file

Added: webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java?rev=411218&view=auto
==============================================================================
--- webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java (added)
+++ webservices/muse/branches/1.0/src/java/org/apache/ws/resource/properties/v2004_11/porttype/impl/QueryResourcePropertiesPortTypeImpl.java Fri Jun  2 10:32:46 2006
@@ -0,0 +1,167 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties.v2004_11.porttype.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.faults.InvalidQueryExpressionFaultException;
+import org.apache.ws.resource.properties.faults.QueryEvaluationErrorFaultException;
+import org.apache.ws.resource.properties.faults.UnknownQueryExpressionDialectFaultException;
+import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
+import org.apache.ws.resource.properties.query.InvalidQueryExpressionException;
+import org.apache.ws.resource.properties.query.QueryEngine;
+import org.apache.ws.resource.properties.query.QueryEvaluationErrorException;
+import org.apache.ws.resource.properties.query.UnknownQueryExpressionDialectException;
+import org.apache.ws.resource.properties.query.impl.QueryEngineImpl;
+import org.apache.ws.resource.properties.query.impl.XmlBeansQueryExpression;
+import org.apache.ws.resource.properties.v2004_11.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.resource.properties.v2004_11.porttype.QueryResourcePropertiesPortType;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument;
+import java.lang.reflect.Array;
+
+/**
+ * LOG-DONE An operation provider for wsrp:QueryResourceProperties.
+ *
+ * TODO (v1.1): factor out a common base class to be shared across spec versions
+ *
+ * @author Ian P. Springer
+ */
+public class QueryResourcePropertiesPortTypeImpl
+   extends AbstractResourcePropertiesPortType
+   implements QueryResourcePropertiesPortType
+{
+   private static final Log                    LOG =
+      LogFactory.getLog( QueryResourcePropertiesPortTypeImpl.class );
+   private static final Messages               MSG           = MessagesImpl.getInstance(  );
+   private static final NamespaceVersionHolder NAMESPACE_SET = new NamespaceVersionHolderImpl(  );
+   private static final QueryEngine            QUERY_ENGINE  = new QueryEngineImpl(  );
+
+   /**
+    * Creates a new {@link QueryResourcePropertiesPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public QueryResourcePropertiesPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * Implementation of the wsrp:QueryResourceProperties operation.
+    *
+    * @param requestDoc the requestDoc XMLBean
+    *
+    * @return the response XMLBean
+    *
+    * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
+    *
+    * @throws UnknownQueryExpressionDialectFaultException
+    *          if query dialect is unsupported.
+    * @throws QueryEvaluationErrorFaultException
+    *          if query evaluation fails.
+    * @throws InvalidQueryExpressionFaultException
+    *          if query expression is invalid.
+    */
+   public QueryResourcePropertiesResponseDocument queryResourceProperties( QueryResourcePropertiesDocument requestDoc )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
+                                    requestDoc.toString(  ) ) );
+      }
+
+      QueryResourcePropertiesResponseDocument responseDoc   = createResponseDocument(  );
+      QueryExpressionType                     queryExprType =
+         requestDoc.getQueryResourceProperties(  ).getQueryExpression(  );
+      XmlBeansQueryExpression                 queryExpr = new XmlBeansQueryExpression( queryExprType );
+      refreshAllProperties(  );
+      Object result = null;
+      try
+      {
+         result = QUERY_ENGINE.executeQuery( queryExpr,
+                                             getProperties(  ) );
+      }
+      catch ( UnknownQueryExpressionDialectException uqede )
+      {
+         throw new UnknownQueryExpressionDialectFaultException( NAMESPACE_SET,
+                                                                uqede.getDialect(  ) );
+      }
+      catch ( QueryEvaluationErrorException qeee )
+      {
+         throw new QueryEvaluationErrorFaultException( NAMESPACE_SET,
+                                                       qeee.getMessage(  ) );
+      }
+      catch ( InvalidQueryExpressionException iqee )
+      {
+         throw new InvalidQueryExpressionFaultException( NAMESPACE_SET, queryExpr );
+      }
+
+      QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
+         responseDoc.getQueryResourcePropertiesResponse(  );
+      if ( result.getClass(  ).isArray(  ) )
+      {
+         for ( int i = 0; i < Array.getLength( result ); i++ )
+         {
+            Object    resultItem  = Array.get( result, i );
+            XmlObject resultXBean = null;
+            try
+            {
+               resultXBean = XmlBeanUtils.toXmlObject( resultItem );
+            }
+            catch ( Exception e )
+            {
+               throw new RuntimeException( "Unable to convert query result object to XmlObject.", e );
+            }
+
+            XmlBeanUtils.addChildElement( responseElem, resultXBean );
+         }
+      }
+      else
+      {
+         XmlBeanUtils.setValue( responseElem,
+                                result.toString(  ) );
+      }
+
+      return responseDoc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private QueryResourcePropertiesResponseDocument createResponseDocument(  )
+   {
+      QueryResourcePropertiesResponseDocument responseDoc =
+         QueryResourcePropertiesResponseDocument.Factory.newInstance(  );
+      responseDoc.addNewQueryResourcePropertiesResponse(  );
+      return responseDoc;
+   }
+}
\ No newline at end of file



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