[MOBY-guts] biomoby commit

José Manuel Rodríguez Carrasco jmrc at dev.open-bio.org
Wed Jul 18 10:47:35 UTC 2007


jmrc
Wed Jul 18 06:47:24 EDT 2007
Update of /home/repository/moby/moby-live/Perl/MOBY
In directory dev.open-bio.org:/tmp/cvs-serv28328/Perl/MOBY

Modified Files:
	Central.pm 
Log Message:
Description:

Perl/MOBY/Makefile.PL
We try to add WSRF::Lite version (0.8.2.1) 
but it is not declared in the proper way there.

Perl/MOBY/Central.pm
The WSDL template has been remade for asynchronous services.
In the last version, it had a mix of RPC/encoded and document/literal in the only binding it had.
The solution has been distributing the operations on two disjunctive port types and bindings,
one for RPC/encoded operations and the other for document/literal operations.
In that way, the service has two ports, one for MOBY and the other for WSRF, both of them using the same endpoint.

The namespaces have been modified for the communication operations (SOAP,
WSRF, and MOBY).


Perl/MOBY/Async/*

The methods have been modified to use RPC/encoded for both input and output.

They accept namespaces from new asynchronous WSDL.



Date:
2007-07-18

Developers:
Jose Maria Fernandez (jmfernandez at cnio.es),
Jose Manuel Rodriguez (jmrodriguez at cnio.es) -
INB GN2 (CNIO, Spain).



moby-live/Perl/MOBY Central.pm,1.284,1.285
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY/Central.pm,v
retrieving revision 1.284
retrieving revision 1.285
diff -u -r1.284 -r1.285
--- /home/repository/moby/moby-live/Perl/MOBY/Central.pm	2007/06/14 13:44:52	1.284
+++ /home/repository/moby/moby-live/Perl/MOBY/Central.pm	2007/07/18 10:47:24	1.285
@@ -4116,169 +4116,201 @@
 
 $WSDL_ASYNC_TEMPLATE = <<END;
 <?xml version="1.0"?>
-	<definitions name="MOBY_Central_Generated_WSDL"
-		targetNamespace="http://biomoby.org/Central.wsdl"
-            	    xmlns:tns="http://biomoby.org/Central.wsdl"
-	                xmlns:xsd1="http://biomoby.org/CentralXSDs.xsd" 
-            	    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
-            	    xmlns:wsoap="http://schemas.xmlsoap.org/soap/envelope/" 
-	                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-      	          xmlns="http://schemas.xmlsoap.org/wsdl/"
-            	    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
-			    xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
-      	          xmlns:wsrpw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"
-            	    xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"
-	                xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex"
-      	          xmlns:wsa04="http://schemas.xmlsoap.org/ws/2004/08/addressing">
-
-   <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
-   <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"/>
-   <import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex"/>
-   <types>
-      <schema elementFormDefault="qualified"
-              targetNamespace="http://www.biomoby.org/Central.wsdl"
-              xmlns="http://www.w3.org/2001/XMLSchema"
-              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-              xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
-              xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd">
-         <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"/>
-         <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"/>
-         <NOT_YET_IMPLEMENTED_INPUT_XSD />
-         <NOT_YET_IMPLEMENTED_OUTPUT_XSD />
-	 <element name="ResourceProperties">
-            <complexType>
-               <sequence>
-                  <any minOccurs="0" maxOccurs="unbounded" />
-               </sequence>
-            </complexType>
-         </element>
-      </schema>
-   </types>
-   <message name="MOBY__SERVICE__NAME__Input">
-      <part name="body" type="xsd:string"/>
-   </message>
-   <message name="MOBY__SERVICE__NAME__Output">
-      <part name="body" type="xsd1:NOT_YET_IMPLEMENTED_OUTPUT_XSD"/>
-   </message>
-   <message name="MOBY__SERVICE__NAME___submitInput">
-      <part name="body" type="xsd:string"/>
-   </message>
-   <message name="MOBY__SERVICE__NAME___submitOutput">
-      <part name="body" type="xsd1:NOT_YET_IMPLEMENTED_OUTPUT_XSD"/>
-   </message>
-   <portType name="MOBY__SERVICE__NAME__PortType" wsrp:ResourceProperties="tns:ResourceProperties">
-      <operation name="GetResourceProperty">
-         <input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
-         <output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
-         <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
-	 <fault name="ResourceUnavailableFault" message="wsrlw:ResourceUnavailableFault"/>
-         <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
-      </operation>
-      <operation name="GetMultipleResourceProperties">
-         <input name="GetMultipleResourcePropertiesRequest" message="wsrpw:GetMultipleResourcePropertiesRequest"/>
-         <output name="GetMultipleResourcePropertiesResponse" message="wsrpw:GetMultipleResourcePropertiesResponse"/>
-         <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
-	 <fault name="ResourceUnavailableFault" message="wsrlw:ResourceUnavailableFault"/>
-         <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
-      </operation>
-      <operation name="Destroy">
-         <input message="wsrlw:DestroyRequest"/>
-         <output message="wsrlw:DestroyResponse"/>
-         <fault name="ResourceUnknownFault" message="wsrlw:ResourceUnknownFault"/>
-	 <fault name="ResourceUnavailableFault" message="wsrlw:ResourceUnavailableFault"/>
-         <fault name="ResourceNotDestroyedFault" message="wsrlw:ResourceNotDestroyedFault"/>
-      </operation>
-      <operation name="MOBY__SERVICE__NAME__">
-         <input message="tns:MOBY__SERVICE__NAME__Input"/>
-         <output message="tns:MOBY__SERVICE__NAME__Output"/>
-      </operation>
-      <operation name="MOBY__SERVICE__NAME___submit">
-         <input message="tns:MOBY__SERVICE__NAME___submitInput"/>
-         <output message="tns:MOBY__SERVICE__NAME___submitOutput"/>
-      </operation>
-   </portType>
-   <binding name="MOBY__SERVICE__NAME__Binding" type="tns:MOBY__SERVICE__NAME__PortType">
+<wsdl:definitions name="MOBY_Central_Generated_WSDL" targetNamespace="http://biomoby.org/Central.wsdl"
+   xmlns:tns="http://biomoby.org/Central.wsdl"
+   xmlns:xsd1="http://biomoby.org/CentralXSDs.xsd"
+   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+   xmlns:wsoap="http://schemas.xmlsoap.org/soap/envelope/"
+   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+   xmlns="http://schemas.xmlsoap.org/wsdl/"
+   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+   xmlns:wsrp="http://docs.oasis-open.org/wsrf/rp-2"
+   xmlns:wsrl="http://docs.oasis-open.org/wsrf/rl-2"
+   xmlns:wsbf="http://docs.oasis-open.org/wsrf/bf-2"
+   xmlns:wsrpw="http://docs.oasis-open.org/wsrf/rpw-2"
+   xmlns:wsrlw="http://docs.oasis-open.org/wsrf/rlw-2"
+   xmlns:wsrw="http://docs.oasis-open.org/wsrf/rw-2"
+   xmlns:wsa="http://www.w3.org/2005/08/addressing">
+
+   <wsdl:import
+      namespace="http://docs.oasis-open.org/wsrf/rpw-2"
+      location="http://docs.oasis-open.org/wsrf/rpw-2.wsdl"/>
+   <wsdl:import
+      namespace="http://docs.oasis-open.org/wsrf/rlw-2"
+      location="http://docs.oasis-open.org/wsrf/rlw-2.wsdl"/>
+   <wsdl:import
+      namespace="http://docs.oasis-open.org/wsrf/rw-2"
+      location="http://docs.oasis-open.org/wsrf/rw-2.wsdl"/>
+   <wsdl:types>
+      <xsd:schema elementFormDefault="qualified"
+         targetNamespace="http://biomoby.org/Central.wsdl"
+         xmlns="http://biomoby.org/Central.wsdl"
+      >
+         <xsd:import
+            namespace="http://docs.oasis-open.org/wsrf/bf-2"
+            schemaLocation="http://docs.oasis-open.org/wsrf/bf-2.xsd"/>
+         <xsd:import
+            namespace="http://docs.oasis-open.org/wsrf/rl-2"
+            schemaLocation="http://docs.oasis-open.org/wsrf/rl-2.xsd"/>
+         <xsd:import
+            namespace="http://www.w3.org/2005/08/addressing"
+            schemaLocation="http://www.w3.org/2002/ws/addr/ns/ws-addr" />
+         <xsd:complexType name="MOBY_async_OutputType">
+            <xsd:sequence minOccurs="1" maxOccurs="1">
+               <xsd:element ref="wsa:EndpointReference"/>
+            </xsd:sequence>
+         </xsd:complexType>
+         
+         <xsd:element name="ResourceProperties">
+            <xsd:complexType>
+               <xsd:sequence>
+                  <xsd:any minOccurs="0" maxOccurs="unbounded"/>
+               </xsd:sequence>
+            </xsd:complexType>
+         </xsd:element>
+      </xsd:schema>
+   </wsdl:types>
+   <wsdl:message name="MOBY__SERVICE__NAME__Input">
+      <wsdl:part name="data" type="xsd:string"/>
+   </wsdl:message>
+   <wsdl:message name="MOBY__SERVICE__NAME__Output">
+      <wsdl:part name="body" type="xsd:string"/>
+   </wsdl:message>
+   <wsdl:message name="MOBY__SERVICE__NAME___submitInput">
+      <wsdl:part name="data" type="xsd:string"/>
+   </wsdl:message>
+   <wsdl:message name="MOBY__SERVICE__NAME___submitOutput">
+      <wsdl:part name="body" type="tns:MOBY_async_OutputType"/>
+   </wsdl:message>
+   <wsdl:portType name="MOBY__SERVICE__NAME__PortType" wsrp:ResourceProperties="tns:ResourceProperties">
+      <wsdl:operation name="MOBY__SERVICE__NAME__">
+         <wsdl:input message="tns:MOBY__SERVICE__NAME__Input"/>
+         <wsdl:output message="tns:MOBY__SERVICE__NAME__Output"/>
+      </wsdl:operation>
+      <wsdl:operation name="MOBY__SERVICE__NAME___submit">
+         <wsdl:input message="tns:MOBY__SERVICE__NAME___submitInput"/>
+         <wsdl:output message="tns:MOBY__SERVICE__NAME___submitOutput"/>
+      </wsdl:operation>
+   </wsdl:portType>
+   <wsdl:portType name="WSRF_Operations_PortType" wsrp:ResourceProperties="tns:ResourceProperties">
+      <wsdl:operation name="GetResourceProperty">
+         <wsdl:input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
+         <wsdl:output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
+         <wsdl:fault name="ResourceUnknownFault" message="wsrw:ResourceUnknownFault"/>
+         <wsdl:fault name="ResourceUnavailableFault" message="wsrw:ResourceUnavailableFault"/>
+         <wsdl:fault name="InvalidResourcePropertyQNameFault"
+            message="wsrpw:InvalidResourcePropertyQNameFault"/>
+      </wsdl:operation>
+      <wsdl:operation name="GetMultipleResourceProperties">
+         <wsdl:input name="GetMultipleResourcePropertiesRequest"
+            message="wsrpw:GetMultipleResourcePropertiesRequest"/>
+         <wsdl:output name="GetMultipleResourcePropertiesResponse"
+            message="wsrpw:GetMultipleResourcePropertiesResponse"/>
+         <wsdl:fault name="ResourceUnknownFault" message="wsrw:ResourceUnknownFault"/>
+         <wsdl:fault name="ResourceUnavailableFault" message="wsrw:ResourceUnavailableFault"/>
+         <wsdl:fault name="InvalidResourcePropertyQNameFault"
+            message="wsrpw:InvalidResourcePropertyQNameFault"/>
+      </wsdl:operation>
+      <wsdl:operation name="Destroy">
+         <wsdl:input message="wsrlw:DestroyRequest"/>
+         <wsdl:output message="wsrlw:DestroyResponse"/>
+         <wsdl:fault name="ResourceUnknownFault" message="wsrw:ResourceUnknownFault"/>
+         <wsdl:fault name="ResourceUnavailableFault" message="wsrw:ResourceUnavailableFault"/>
+         <wsdl:fault name="ResourceNotDestroyedFault" message="wsrlw:ResourceNotDestroyedFault"/>
+      </wsdl:operation>
+   </wsdl:portType>
+   <wsdl:binding name="MOBY__SERVICE__NAME__Binding" type="tns:MOBY__SERVICE__NAME__PortType">
+      <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+      <wsdl:operation name="MOBY__SERVICE__NAME__">
+         <soap:operation soapAction="http://biomoby.org/#MOBY__SERVICE__NAME__" style="rpc"/>
+         <wsdl:input>
+            <soap:body use="encoded" namespace="http://biomoby.org/"
+               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+         </wsdl:input>
+         <wsdl:output>
+            <soap:body use="encoded" namespace="http://biomoby.org/"
+               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+         </wsdl:output>
+      </wsdl:operation>
+      <wsdl:operation name="MOBY__SERVICE__NAME___submit">
+         <soap:operation soapAction="http://biomoby.org/#MOBY__SERVICE__NAME___submit" style="rpc"/>
+         <wsdl:input>
+            <soap:body use="encoded" namespace="http://biomoby.org/"
+               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+         </wsdl:input>
+         <wsdl:output>
+            <soap:body use="encoded" namespace="http://biomoby.org/"
+               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+         </wsdl:output>
+      </wsdl:operation>
+   </wsdl:binding>
+   <wsdl:binding name="WSRF_Operations_Binding" type="tns:WSRF_Operations_PortType">
       <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
-      <operation name="GetResourceProperty">
-         <soap:operation style="document"/>
-         <input>
+      <wsdl:operation name="GetResourceProperty">
+         <soap:operation />
+         <wsdl:input>
             <soap:body use="literal"/>
-         </input>
-         <output>
+         </wsdl:input>
+         <wsdl:output>
             <soap:body use="literal"/>
-         </output>
-         <fault name="ResourceUnknownFault">
+         </wsdl:output>
+         <wsdl:fault name="ResourceUnknownFault">
             <soap:fault name="ResourceUnknownFault" use="literal"/>
-         </fault>
-	 <fault name="ResourceUnavailableFault">
+         </wsdl:fault>
+         <wsdl:fault name="ResourceUnavailableFault">
             <soap:fault name="ResourceUnavailableFault" use="literal"/>
-         </fault>
-         <fault name="InvalidResourcePropertyQNameFault">
+         </wsdl:fault>
+         <wsdl:fault name="InvalidResourcePropertyQNameFault">
             <soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
-         </fault>
-      </operation>
-      <operation name="GetMultipleResourceProperties">
-         <soap:operation style="document"/>
-         <input>
+         </wsdl:fault>
+      </wsdl:operation>
+      <wsdl:operation name="GetMultipleResourceProperties">
+         <soap:operation />
+         <wsdl:input>
             <soap:body use="literal"/>
-         </input>
-         <output>
+         </wsdl:input>
+         <wsdl:output>
             <soap:body use="literal"/>
-         </output>
-         <fault name="ResourceUnknownFault">
+         </wsdl:output>
+         <wsdl:fault name="ResourceUnknownFault">
             <soap:fault name="ResourceUnknownFault" use="literal"/>
-         </fault>
-	 <fault name="ResourceUnavailableFault">
+         </wsdl:fault>
+         <wsdl:fault name="ResourceUnavailableFault">
             <soap:fault name="ResourceUnavailableFault" use="literal"/>
-         </fault>
-         <fault name="InvalidResourcePropertyQNameFault">
+         </wsdl:fault>
+         <wsdl:fault name="InvalidResourcePropertyQNameFault">
             <soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
-         </fault>
-      </operation>
-      <operation name="Destroy">
-         <soap:operation style="document"/>
-         <input>
+         </wsdl:fault>
+      </wsdl:operation>
+      <wsdl:operation name="Destroy">
+         <soap:operation />
+         <wsdl:input>
             <soap:body use="literal"/>
-         </input>
-         <output>
+         </wsdl:input>
+         <wsdl:output>
             <soap:body use="literal"/>
-         </output>
-         <fault name="ResourceUnknownFault">
+         </wsdl:output>
+         <wsdl:fault name="ResourceUnknownFault">
             <soap:fault name="ResourceUnknownFault" use="literal"/>
-         </fault>
-	 <fault name="ResourceUnavailableFault">
+         </wsdl:fault>
+         <wsdl:fault name="ResourceUnavailableFault">
             <soap:fault name="ResourceUnavailableFault" use="literal"/>
-         </fault>
-         <fault name="ResourceNotDestroyedFault">
+         </wsdl:fault>
+         <wsdl:fault name="ResourceNotDestroyedFault">
             <soap:fault name="ResourceNotDestroyedFault" use="literal"/>
-         </fault>
-      </operation>            
-      <operation name="MOBY__SERVICE__NAME__">
-         <soap:operation soapAction='http://biomoby.org/#MOBY__SERVICE__NAME__' style='rpc'/>
-         <input>
-            <soap:body use="encoded" namespace="http://biomoby.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
-         </input>
-         <output>
-            <soap:body use="encoded"/>
-         </output>
-      </operation>
-      <operation name="MOBY__SERVICE__NAME___submit">
-         <soap:operation soapAction='http://biomoby.org/#MOBY__SERVICE__NAME___submit' style='rpc'/>
-         <input>
-            <soap:body use="encoded" namespace="http://biomoby.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
-         </input>
-         <output>
-            <soap:body use="encoded"/>
-         </output>
-      </operation>
-   </binding>
-   <service name="MOBY__SERVICE__NAME__Service">
-      <documentation><!-- MOBY__SERVICE__DESCRIPTION --></documentation>
-      <port name="MOBY__SERVICE__NAME__Port" binding="tns:MOBY__SERVICE__NAME__Binding">
-         <soap:address location="MOBY__SERVICE__URL" />
-      </port>
-   </service>
-</definitions>
+         </wsdl:fault>
+      </wsdl:operation>
+   </wsdl:binding>
+   <wsdl:service name="MOBY__SERVICE__NAME__Service">
+      <wsdl:documentation><!-- MOBY__SERVICE__DESCRIPTION --></wsdl:documentation>
+      <wsdl:port name="MOBY__SERVICE__NAME__Port" binding="tns:MOBY__SERVICE__NAME__Binding">
+         <soap:address location="MOBY__SERVICE__URL"/>
+      </wsdl:port>
+      <wsdl:port name="WSRF_Operations_Port" binding="tns:WSRF_Operations_Binding">
+         <soap:address location="MOBY__SERVICE__URL"/>
+      </wsdl:port>
+   </wsdl:service>
+</wsdl:definitions>
 
 END
 




More information about the MOBY-guts mailing list