HomeDigital EditionSys-Con RadioSearch Web Services Cd
B2B Beginning WS Business Process Management Case Studies Content Management Distributing Computing e-Business Electronic Data Interchange Enterprise Industry Insight Integration Interviews Java & Web Services .NET Portal Product Reviews Scalability & Performance Security SOAP Source Code UDDI Wireless WS Standards WS Tips & Techniques WSDL WS Editorials XML

Introducing Open Grid Services by Dr. Savas Parastatidis
WSJ Vol 03 Issue 08 - pg.14



Listing 1: Grid service description of the simple workflow execution Grid service

<wsdl:definitions
   xmlns:ogsi="http://www.gridforum.org/namespaces/2003/03/OGSI"
   xmlns:gwsdl="http://www.gridforum.org/namespaces/2003/03/gridWSDLExtensions"
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process"
   xmlns:wf="http://example.com/workflow"
   targetNamespace="http://example.com/workflow ">
   
   <wsdl:types/>

   <wsdl:message name="executeWorkflowMsg">
      <wsdl:part name="process" element="bpel:process"/>
   </wsdl:message>

   <gwsdl:portType name="workflowExecutionPortType"
                   extends="ogsi:GridService">
      <wsdl:operation name="executeWorkflow">
         <wsdl:input message="executeWorkflowMsg"/>
      </wsdl:operation>
   </gwsdl:portType>
</wsdl:definitions>

Listing 2: Grid service description with service data declarations
of the simple workflow execution Grid service

<wsdl:definitions
   xmlns:ogsi="http://www.gridforum.org/namespaces/2003/03/OGSI"
   xmlns:sd="http://www.gridforum.org/namespaces/2003/03/serviceData"

   xmlns:gwsdl="http://www.gridforum.org/namespaces/2003/03/gridWSDLExtensions"
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process"
   xmlns:wf ="http://example.com/workflow"
   targetNamespace="http://example.com/workflow">
   
   <wsdl:types>
     <xsd:schema>
      <xsd:complexType name="status">
       <xsd:choice>
        <xsd:element name="running"/>
               <xsd:element name="paused"/>
        <xsd:element name="completed"/>
            </xsd:choice>
         </xsd:complexType>
     </xsd:schema>
   </wsdl:types>

   <wsdl:message name="executeWorkflowMsg">
      <wsdl:part name="process" element="bpel:process"/>
   </wsdl:message>

   <gwsdl:portType name="workflowExecutionPortType"
                   extends="ogsi:GridService">
      <wsdl:operation name="executeWorkflow">
         <wsdl:input message="executeWorkflowMsg"/>
      </wsdl:operation>

      <sd:serviceData name="status" type="wf:status"
        minOccurs="1" maxOccurs="1"
                      mutability="mutable"/>
   </gwsdl:portType>
</wsdl:definitions>