Author: kidz
Date: Tue Aug  2 07:04:27 2005
New Revision: 227007

URL: http://svn.apache.org/viewcvs?rev=227007&view=rev
Log:
Support for muse-ext properties, addec complete operation, refactored for home 
interface changes

Modified:
    
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeCustomOperationsPortType.java
    
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeHome.java
    
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypePropertyQNames.java
    
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
    
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeService.java
    
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl

Modified: 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeCustomOperationsPortType.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeCustomOperationsPortType.java?rev=227007&r1=227006&r2=227007&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeCustomOperationsPortType.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeCustomOperationsPortType.java
 Tue Aug  2 07:04:27 2005
@@ -15,7 +15,6 @@
  
*=============================================================================*/

 package org.apache.ws.muse.example.businessprocesstype;

 

-

 /**

  * **** WARNING: This file will be overwritten during generation ****

  *

@@ -27,30 +26,9 @@
 public interface BusinessprocesstypeCustomOperationsPortType

 {

 

-   /**

-    * DOCUMENT_ME

-    *

-    * @param requestDoc DOCUMENT_ME

-    *

-    * @return DOCUMENT_ME

-    */

-   public 
org.apache.ws.muse.example.businessprocesstype.properties.ResumeResponseDocument
 Resume( 
org.apache.ws.muse.example.businessprocesstype.properties.ResumeDocument 
requestDoc );

-

-   /**

-    * DOCUMENT_ME

-    *

-    * @param requestDoc DOCUMENT_ME

-    *

-    * @return DOCUMENT_ME

-    */

-   public 
org.apache.ws.muse.example.businessprocesstype.properties.SuspendResponseDocument
 Suspend( 
org.apache.ws.muse.example.businessprocesstype.properties.SuspendDocument 
requestDoc );

+      public 
org.apache.ws.muse.example.businessprocesstype.properties.TerminateResponseDocument
 Terminate( 
org.apache.ws.muse.example.businessprocesstype.properties.TerminateDocument 
requestDoc ) ;

+      public 
org.apache.ws.muse.example.businessprocesstype.properties.ResumeResponseDocument
 Resume( 
org.apache.ws.muse.example.businessprocesstype.properties.ResumeDocument 
requestDoc ) ;

+      public 
org.apache.ws.muse.example.businessprocesstype.properties.CompleteResponseDocument
 Complete( 
org.apache.ws.muse.example.businessprocesstype.properties.CompleteDocument 
requestDoc ) ;

+      public 
org.apache.ws.muse.example.businessprocesstype.properties.SuspendResponseDocument
 Suspend( 
org.apache.ws.muse.example.businessprocesstype.properties.SuspendDocument 
requestDoc ) ;

 

-   /**

-    * DOCUMENT_ME

-    *

-    * @param requestDoc DOCUMENT_ME

-    *

-    * @return DOCUMENT_ME

-    */

-   public 
org.apache.ws.muse.example.businessprocesstype.properties.TerminateResponseDocument
 Terminate( 
org.apache.ws.muse.example.businessprocesstype.properties.TerminateDocument 
requestDoc );

-}
\ No newline at end of file
+}


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeHome.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeHome.java?rev=227007&r1=227006&r2=227007&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeHome.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeHome.java
 Tue Aug  2 07:04:27 2005
@@ -16,7 +16,6 @@
 package org.apache.ws.muse.example.businessprocesstype;

 

 import org.apache.ws.addressing.EndpointReference;

-import org.apache.ws.muse.example.ExampleConstants;

 import org.apache.ws.muse.example.resourceadmin.properties.CreateParamsType;

 import org.apache.ws.resource.Resource;

 import org.apache.ws.resource.ResourceContext;

@@ -134,12 +133,7 @@
 

       try

       {

-         //resource = createInstance(aKey);

          resource = new BusinessprocesstypeResource( resourceId, params );

-

-         //The EPRs should be build using 
"http://schemas.xmlsoap.org/ws/2003/03/addressing"; addressing namespace. It 
introduces spec conflicts

-         //To work around thes problem the 
"http://schemas.xmlsoap.org/ws/2004/08/addressing"; is used as namespace for 
addressing

-         //EndpointReference epr = 
getEndpointReference(resourceContext.getBaseURL(  ) + "/" + 
getServiceName().getLocalPart() , null, 
SPEC_NAMESPACE_SET.getAddressingNamespace());

          EndpointReference epr =

             getEndpointReference( resourceId );

          ( (BusinessprocesstypeResource) resource ).setEndpointReference( epr 
);


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypePropertyQNames.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypePropertyQNames.java?rev=227007&r1=227006&r2=227007&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypePropertyQNames.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypePropertyQNames.java
 Tue Aug  2 07:04:27 2005
@@ -27,83 +27,46 @@
  */

 public interface BusinessprocesstypePropertyQNames

 {

-   /** DOCUMENT_ME */

-   QName TOPICEXPRESSIONDIALECTS =

-      new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,

-                 "TopicExpressionDialects", "wsnt" );

 

-   /** DOCUMENT_ME */

-   QName TOTALNUMBEROFCOMPLETEDPROCESSES =

-      new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";,

-                 "TotalNumberOfCompletedProcesses", "bpt-prop" );

+            QName TOPICEXPRESSIONDIALECTS =

+            new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,
 "TopicExpressionDialects", "wsnt");

+            QName TOTALNUMBEROFCOMPLETEDPROCESSES =

+            new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";, 
"TotalNumberOfCompletedProcesses", "bpt-prop");

+            QName RESOURCEID =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";, 
"ResourceId", "muws-p1-xs");

+            QName CUMULATIVEEXECUTIONTIME =

+            new QName( "http://ws.apache.org/muse/example/shared";, 
"CumulativeExecutionTime", "example-wsf");

+            QName CREATIONTIME =

+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"CreationTime", "ws-ext");

+            QName RESOURCEHOSTNAME =

+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"ResourceHostname", "ws-ext");

+            QName TOTALNUMBEROFTERMINATEDPROCESSES =

+            new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";, 
"TotalNumberOfTerminatedProcesses", "bpt-prop");

+            QName VERSION =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, "Version", 
"muws-p2-xs");

+            QName CAPTION =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, "Caption", 
"muws-p2-xs");

+            QName MANAGEABILITYCAPABILITY =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";, 
"ManageabilityCapability", "muws-p1-xs");

+            QName TOTALNUMBEROFABORTEDPROCESSES =

+            new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";, 
"TotalNumberOfAbortedProcesses", "bpt-prop");

+            QName NUMBEROFRUNNINGPROCESSES =

+            new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";, 
"NumberOfRunningProcesses", "bpt-prop");

+            QName DESCRIPTION =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"Description", "muws-p2-xs");

+            QName NUMBEROFSUSPENDEDPROCESSES =

+            new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";, 
"NumberOfSuspendedProcesses", "bpt-prop");

+            QName FIXEDTOPICSET =

+            new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,
 "FixedTopicSet", "wsnt");

+            QName CURRENTTIME =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"CurrentTime", "muws-p2-xs");

+            QName RESOURCETYPE =

+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"ResourceType", "ws-ext");

+            QName OWNER =

+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"Owner", "ws-ext");

+            QName RELATIONSHIP =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"Relationship", "muws-p2-xs");

+            QName TOPIC =

+            new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,
 "Topic", "wsnt");

 

-   /** DOCUMENT_ME */

-   QName RESOURCEID =

-      new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";, 
"ResourceId", "muws-p1-xs" );

-

-   /** DOCUMENT_ME */

-   QName CUMULATIVEEXECUTIONTIME =

-      new QName( "http://ws.apache.org/muse/example/shared";, 
"CumulativeExecutionTime", "example-wsf" );

-

-   /** DOCUMENT_ME */

-   QName RESOURCEHOSTNAME =

-      new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"ResourceHostname", "ws-ext" );

-

-   /** DOCUMENT_ME */

-   QName TOTALNUMBEROFTERMINATEDPROCESSES =

-      new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";,

-                 "TotalNumberOfTerminatedProcesses", "bpt-prop" );

-

-   /** DOCUMENT_ME */

-   QName VERSION =

-      new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, "Version", 
"muws-p2-xs" );

-

-   /** DOCUMENT_ME */

-   QName CAPTION =

-      new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, "Caption", 
"muws-p2-xs" );

-

-   /** DOCUMENT_ME */

-   QName MANAGEABILITYCAPABILITY =

-      new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";, 
"ManageabilityCapability",

-                 "muws-p1-xs" );

-

-   /** DOCUMENT_ME */

-   QName TOTALNUMBEROFABORTEDPROCESSES =

-      new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";,

-                 "TotalNumberOfAbortedProcesses", "bpt-prop" );

-

-   /** DOCUMENT_ME */

-   QName NUMBEROFRUNNINGPROCESSES =

-      new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";, 
"NumberOfRunningProcesses",

-                 "bpt-prop" );

-

-   /** DOCUMENT_ME */

-   QName DESCRIPTION =

-      new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"Description", "muws-p2-xs" );

-

-   /** DOCUMENT_ME */

-   QName NUMBEROFSUSPENDEDPROCESSES =

-      new QName( 
"http://ws.apache.org/muse/example/businessprocesstype/properties";, 
"NumberOfSuspendedProcesses",

-                 "bpt-prop" );

-

-   /** DOCUMENT_ME */

-   QName FIXEDTOPICSET =

-      new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,

-                 "FixedTopicSet", "wsnt" );

-

-   /** DOCUMENT_ME */

-   QName CURRENTTIME =

-      new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"CurrentTime", "muws-p2-xs" );

-

-   /** DOCUMENT_ME */

-   QName RESOURCETYPE =

-      new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"ResourceType", "ws-ext" );

-

-   /** DOCUMENT_ME */

-   QName RELATIONSHIP =

-      new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"Relationship", "muws-p2-xs" );

-

-   /** DOCUMENT_ME */

-   QName TOPIC =

-      new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,
 "Topic", "wsnt" );

-}
\ No newline at end of file
+}


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java?rev=227007&r1=227006&r2=227007&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
 Tue Aug  2 07:04:27 2005
@@ -15,11 +15,12 @@
  
*=============================================================================*/

 package org.apache.ws.muse.example.businessprocesstype;

 

+import org.apache.commons.logging.Log;

+import org.apache.commons.logging.LogFactory;

 import org.apache.ws.mows.v1_0.MowsConstants;

 import org.apache.ws.mows.v1_0.capability.MetricsCapability;

 import org.apache.ws.muse.example.ExampleConstants;

 import org.apache.ws.muse.example.ExampleUtils;

-import org.apache.ws.muse.example.application.ApplicationPropertyQNames;

 import 
org.apache.ws.muse.example.businessprocesstype.backend.BusinessProcessInstance;

 import 
org.apache.ws.muse.example.businessprocesstype.callback.CumulativeExecutionTimeCallback;

 import 
org.apache.ws.muse.example.businessprocesstype.callback.NumberOfRunningProcessesCallback;

@@ -47,9 +48,9 @@
 import java.util.Calendar;

 

 /**

- * 

+ *

  * @author Kinga Dziembowski

- * 

+ *

  * A Businessprocesstype WS-Resource.

  * <p/>

  * NOTE: This class is generated but IS meant to be modified.

@@ -78,6 +79,9 @@
    /** A resource variable to hold the reference for backend */

    private BusinessProcessInstance m_instance = null;

 

+   /** A log object */

+   private static final Log LOG = LogFactory.getLog( 
BusinessprocesstypeResource.class.getName() );

+

    /**

     * Creates a new [EMAIL PROTECTED] BusinessprocesstypeResource} object.

     *

@@ -130,6 +134,10 @@
 

          relationshipType.setParticipantArray( participants );

          resourceProperty.add( prop_relationship );

+         if ( LOG.isDebugEnabled() )

+         {

+             LOG.debug( "SetRelationship -   " + prop_relationship );

+         }

       }

       else

       {

@@ -159,12 +167,12 @@
                /* MUWS TopicSpace is returned by 
MuwsUtils.addRelationshipTopics - This utility operation adds relationship 
topics support. I

                 * nternaly the code :

                 * TopicSpace muwsTopicSpace = new TopicSpaceImpl( 
MuwsConstants.NSURI_MUWS_PART2_TOPICS )

-                * aSet.addTopicSpace( muwsTopicSpace ) is executed. We are 
adding more MUWS topics to this 

+                * aSet.addTopicSpace( muwsTopicSpace ) is executed. We are 
adding more MUWS topics to this

                 * TopicSpace.

-               */         

+               */

          TopicSpace muwsTopicSpace = MuwsUtils.addRelationshipTopics( aSet );

 

-        

+

          ManagementEventTopic identityCapability =

             new XmlBeansManagementEventTopicImpl( 
IdentityCapability.TOPIC_NAME );

          muwsTopicSpace.addTopic( identityCapability );

@@ -266,7 +274,7 @@
          resourceProperty.addChangeListener( muwsDescriptionCapability );

 

          // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability
 Resource Property

-         resourceProperty = resourcePropertySet.get( 
ApplicationPropertyQNames.MANAGEABILITYCAPABILITY );

+         resourceProperty = resourcePropertySet.get( 
BusinessprocesstypePropertyQNames.MANAGEABILITYCAPABILITY );

          
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument
 prop_manageabilitycapability =

             
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory

             .newInstance(  );

@@ -357,7 +365,7 @@
          resourceProperty.add( prop_resourcetype );

 

          // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship 
Resource Property

-        

+

 

          // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime 
ResourceProperty

          resourceProperty = resourcePropertySet.get( 
BusinessprocesstypePropertyQNames.CURRENTTIME );

@@ -366,6 +374,22 @@
          resourceProperty.add( currentTimeDocument );

          resourceProperty.setCallback( new 
org.apache.ws.resource.lifetime.callback.CurrentTimeCallback(  ) );

          resourceProperty.addChangeListener( metricCapability );

+

+        // init the {http://ws.apache.org/namespaces/muse/muws-ext-1.xsd}Owner 
Resource Property

+         resourceProperty = 
resourcePropertySet.get(BusinessprocesstypePropertyQNames.OWNER);

+               org.apache.ws.namespaces.muse.muwsExt1.OwnerDocument prop_owner 
= org.apache.ws.namespaces.muse.muwsExt1.OwnerDocument.Factory.newInstance();

+               org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString 
oString =  LangString.Factory.newInstance(  );

+               oString.setStringValue( ExampleConstants.BUSINESS_P_OWNER );

+               oString.setLang( "en" );

+         prop_owner.setOwner( oString );

+               resourceProperty.add(prop_owner);

+

+               // init the 
{http://ws.apache.org/namespaces/muse/muws-ext-1.xsd}CreationTime Resource 
Property

+               resourceProperty = 
resourcePropertySet.get(BusinessprocesstypePropertyQNames.CREATIONTIME);

+               org.apache.ws.namespaces.muse.muwsExt1.CreationTimeDocument 
prop_creationtime = 
org.apache.ws.namespaces.muse.muwsExt1.CreationTimeDocument.Factory.newInstance();

+               prop_creationtime.setCreationTime(Calendar.getInstance(  ));

+               resourceProperty.add(prop_creationtime);

+

       }

       catch ( Exception e )

       {

@@ -444,6 +468,17 @@
       m_instance.suspend( processId );

       return;

    }

+   

+   /**

+    * DOCUMENT_ME

+    *

+    * @param processId DOCUMENT_ME

+    */

+   public void complete( String processId )

+   {

+      m_instance.complete( processId );

+      return;

+   }

 

    /**

     * DOCUMENT_ME

@@ -471,9 +506,9 @@
       }

       catch ( java.net.UnknownHostException uhe )

       {

-         System.out.println( "Error getting HostName" );

+       uhe.printStackTrace();

       }

 

       return name;

    }

-}
\ No newline at end of file
+}


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeService.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeService.java?rev=227007&r1=227006&r2=227007&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeService.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeService.java
 Tue Aug  2 07:04:27 2005
@@ -15,6 +15,8 @@
  
*=============================================================================*/

 package org.apache.ws.muse.example.businessprocesstype;

 

+import 
org.apache.ws.muse.example.businessprocesstype.properties.CompleteDocument;

+import 
org.apache.ws.muse.example.businessprocesstype.properties.CompleteResponseDocument;

 import org.apache.ws.resource.ResourceContext;

 

 /**

@@ -60,12 +62,11 @@
     */

    public 
org.apache.ws.muse.example.businessprocesstype.properties.ResumeResponseDocument
 Resume( 
org.apache.ws.muse.example.businessprocesstype.properties.ResumeDocument 
requestDoc )

    {

-      
org.apache.ws.muse.example.businessprocesstype.properties.ResumeResponseDocument
                responseDocument =

+      
org.apache.ws.muse.example.businessprocesstype.properties.ResumeResponseDocument
  responseDocument =

          
org.apache.ws.muse.example.businessprocesstype.properties.ResumeResponseDocument.Factory.newInstance(
  );

       
org.apache.ws.muse.example.businessprocesstype.properties.ResumeResponseDocument.ResumeResponse
 response  =

          responseDocument.addNewResumeResponse(  );

-      BusinessprocesstypeResource                                              
                       aResource =

-         (BusinessprocesstypeResource) getResource(  );

+      BusinessprocesstypeResource aResource =(BusinessprocesstypeResource) 
getResource(  );

       aResource.resume( requestDoc.getResume(  ) );

       return responseDocument;

    }

@@ -119,4 +120,18 @@
    {

       return SPEC_NAMESPACE_SET;

    }

+

+/* (non-Javadoc)

+ * @see 
org.apache.ws.muse.example.businessprocesstype.BusinessprocesstypeCustomOperationsPortType#Complete(org.apache.ws.muse.example.businessprocesstype.properties.CompleteDocument)

+ */

+public CompleteResponseDocument Complete(CompleteDocument requestDoc) {

+       
org.apache.ws.muse.example.businessprocesstype.properties.CompleteResponseDocument
 responseDocument =

+        
org.apache.ws.muse.example.businessprocesstype.properties.CompleteResponseDocument.Factory.newInstance(
  );

+     
org.apache.ws.muse.example.businessprocesstype.properties.CompleteResponseDocument.CompleteResponse
 response  =

+        responseDocument.addNewCompleteResponse(  );

+     BusinessprocesstypeResource aResource = (BusinessprocesstypeResource) 
getResource(  );

+     aResource.complete( requestDoc.getComplete(  ) );

+

+     return responseDocument;

+}

 }

Modified: 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl?rev=227007&r1=227006&r2=227007&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl
 Tue Aug  2 07:04:27 2005
@@ -140,6 +140,8 @@
                   

                   <element ref="ws-ext:ResourceType" minOccurs="1" 
maxOccurs="1" /> 

                   <element ref="ws-ext:ResourceHostname" minOccurs="1" 
maxOccurs="1" /> 

+                  <element ref="ws-ext:CreationTime" minOccurs="1" 
maxOccurs="1" /> 

+                  <element ref="ws-ext:Owner" minOccurs="1" maxOccurs="1" /> 

                   

                   <!--   SPECIFIC PROPERTIES DEFINED IN 
BUSINESSPROCESSTYPE.XSD -->

                   

@@ -191,6 +193,12 @@
             <part name="TerminateResponse" 
element="bpt-prop:TerminateResponse"/>

    </message>

    

+   <message name="CompleteRequest">

+            <part name="CompleteRequest" element="bpt-prop:Complete"/>

+      </message>

+      <message name="CompleteResponse">

+            <part name="CompleteResponse" element="bpt-prop:CompleteResponse"/>

+   </message>

    

 

    <!-- *** Add message definitions for custom request/response/fault types 
here *** -->         

@@ -329,6 +337,11 @@
         <output message="tns:TerminateResponse" /> 

       </operation>

       

+      <operation name="Complete">

+              <input message="tns:CompleteRequest" /> 

+              <output message="tns:CompleteResponse" /> 

+      </operation>

+      

 

    </portType>

 

@@ -584,6 +597,15 @@
                </output>

       </operation> 

       

+      <operation name="Complete">

+                     <soap:operation style="document"/>

+                     <input>

+                   <soap:body use="literal"/>

+                     </input>

+                     <output>

+                   <soap:body use="literal"/>

+                     </output>

+      </operation> 

       

    </binding>

 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to