<?xml version="1.0" encoding="UTF-8"?>
<Resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<ID></ID>
	<Type>Service</Type>
	<Profile>
		<Description>OCR Service</Description>
		<Class>Execution</Class>
		<Name>OCRService</Name>
		<Version>1.0.0</Version>
		<Packages>
			<Main>
			
				<Description>OCR Service</Description>
                <Name>OCRService-service</Name>
                <Version>2.1.2</Version>
                <Mandatory level="VO"/>
                <Shareable level="VO"/>
                <GHNRequirements>
                        <Requirement category="RunTimeEnv" operator="eq" requirement="Variable" value="java1.6" />
                        <Requirement category="RUNTIME_ENV_STRING" requirement="GLOBUS_LOCATION" operator="exist"  value="" />
                </GHNRequirements>
                
				<Dependencies>
				
					<Dependency>
						<Service>
							<Class>Execution</Class>
							<Name>OCRService</Name>
			 		   		<Version>1.0.0</Version>
						</Service>
						<Package>OCRService-stubs</Package>
						<Version>[2.0.0,3.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
					
					<Dependency>
						<Service>
							<Class>Application</Class>
							<Name>OCR</Name>
							<Version>1.0.0</Version>
						</Service>
						<Package>OCR</Package>
						<Version>[1.0.0,2.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
					
						
					<Dependency>
						<Service>
							<Class>Application</Class>
							<Name>Ocropus</Name>
							<Version>1.0.0</Version>
						</Service>
						<Package>Ocropus</Package>
						<Version>[1.0.0,2.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
					
					<Dependency>
						<Service>
							<Class>Execution</Class>
							<Name>WorkflowEngineService</Name>
							<Version>1.0.0</Version>
						</Service>
						<Package>WorkflowEngineService-stubs</Package>
						<Version>[1.0.0,2.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
					
					<Dependency>
						<Service>
 							<Class>Execution</Class>
   					        <Name>EnvironmentLibrariesSet</Name>
                			<Version>1.0.0</Version>
						</Service>
						<Package>InformationSystemLibrary</Package>
						<Version>[1.0.0,2.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
					<Dependency>
						<Service>
 							<Class>Execution</Class>
   					        <Name>EnvironmentLibrariesSet</Name>
                			<Version>1.0.0</Version>
						</Service>
						<Package>EnvironmentProviderLibrary</Package>
						<Version>[1.0.0,2.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
					<Dependency>
						<Service>
 							<Class>Execution</Class>
   					        <Name>EnvironmentLibrariesSet</Name>
                			<Version>1.0.0</Version>
						</Service>
						<Package>GCubeEnvironmentProviderLibrary</Package>
						<Version>[1.0.0,2.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>	
				
				
		  		<Dependency>
						<Service>
							<Class>ContentManagement</Class>
							<Name>GCubeModelLibrary</Name>
							<Version>1.0.0</Version>
						</Service>
						<Package>GCubeModelLibrary</Package>
						<Version>[2.0.0,3.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
				
					<Dependency>
						<Service>
							<Class>ContentManagement</Class>
							<Name>ContentManager</Name>
							<Version>1.0.0</Version>
						</Service>
						<Package>ContentManager-stubs</Package>
						<Version>[2.3.0,3.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>	
                
                <Dependency>
						 <Service>
 							<Class>ContentManagement</Class>
 							<Name>SMSLibrary</Name>
 							<Version>1.0.0</Version>
                          </Service>
 						<Package>SMSLibrary</Package>
 						<Version>[2.4.0,3.0.0)</Version>
                       	<Scope level="GHN"/>
                        <Optional>false</Optional>
				</Dependency>
				
          	</Dependencies>
                
				
				<GARArchive>org.gcube.execution.ocrservice.gar</GARArchive>
				<PortType>
					<Name>gcube/execution/ocrservice/OCRService</Name>
					<WSDL>

<definitions name="OCRServiceFactory"
	targetNamespace="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
	xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
	xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:corefaults="http://gcube-system.org/namespaces/common/core/faults"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<wsdl:import namespace="http://gcube-system.org/namespaces/common/core/faults"
		location="../gcube/common/core/faults/GCUBEFaults.wsdl" />

	<!--============================================================ T Y P E 
		S ============================================================ -->
	<types>
		<xsd:schema
			targetNamespace="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
			xmlns:tns="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
			xmlns:xsd="http://www.w3.org/2001/XMLSchema">


			<xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/03/addressing"
				schemaLocation="../ws/addressing/WS-Addressing.xsd" />


			<xsd:simpleType name="LanguageEnumType">
				<xsd:restriction base="xsd:string">
					<xsd:enumeration value="eng" />
					<xsd:enumeration value="nld" />
					<xsd:enumeration value="spa" />
					<xsd:enumeration value="deu" />
					<xsd:enumeration value="ita" />
					<xsd:enumeration value="fra" />
				</xsd:restriction>
			</xsd:simpleType>

			<xsd:complexType name="InputResource">
				<xsd:sequence>
					<xsd:element maxOccurs="1" minOccurs="1" name="resourceKey" type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="resourceAccess" 	type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="resourceReference" type="xsd:string" />
					<xsd:element maxOccurs="unbounded" minOccurs="0" name="inMessageBytePayload" type="xsd:byte"/>
					<xsd:element maxOccurs="1" minOccurs="1" name="inMessageStringPayload" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>

			<xsd:complexType name="AccessInfoFTP">
				<xsd:sequence>
					<xsd:element maxOccurs="1" minOccurs="1" name="userName" type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="password" 	type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="port" type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="location" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>
			

			<!-- REQUESTS -->
			<xsd:element name="submit">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element maxOccurs="1" minOccurs="1" name="jobName" type="xsd:string" />
						<xsd:element maxOccurs="1" minOccurs="1" name="inputResource" type="tns:InputResource" />
						<xsd:element maxOccurs="1" minOccurs="1" name="language" type="tns:LanguageEnumType"/>
						<xsd:element maxOccurs="unbounded" minOccurs="0" name="gridProxy" type="xsd:byte" />
						<xsd:element maxOccurs="1" minOccurs="1" name="owner" type="xsd:string"/>
						<xsd:element maxOccurs="1" minOccurs="1" name="chokePDFOutput" 	type="xsd:boolean" default="false"/>
						<xsd:element maxOccurs="1" minOccurs="1" name="storeFTP" 	   	type="xsd:boolean" default="false"/>
						<xsd:element maxOccurs="1" minOccurs="1" name="ftpAccess" 		type="tns:AccessInfoFTP"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>			
			
			<xsd:element name="submitBulk">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element maxOccurs="1" minOccurs="1" name="jobName" type="xsd:string" />
						<xsd:element maxOccurs="1" minOccurs="1" name="inputResource" type="tns:InputResource" />
						<xsd:element maxOccurs="1" minOccurs="1" name="language" type="tns:LanguageEnumType"/>
						<xsd:element maxOccurs="unbounded" minOccurs="0" name="gridProxy" type="xsd:byte" />
						<xsd:element maxOccurs="1" minOccurs="1" name="owner" type="xsd:string"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>		
			
			
			<!-- RESPONSE -->
			<xsd:element name="submitResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element ref="wsa:EndpointReference" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>

		</xsd:schema>
	</types>


	<!--============================================================ M E S S 
		A G E S ============================================================ -->
	<message name="SubmitRequest">
		<part name="request" element="tns:submit" />
	</message>
	<message name="SubmitRequestBulk">
		<part name="request" element="tns:submitBulk" />
	</message>
	<message name="SubmitResponse">
		<part name="response" element="tns:submitResponse" />
	</message>


	<!--============================================================ P O R T 
		T Y P E ============================================================ -->

	<portType name="OCRServiceFactoryPortType">

		<operation name="submit">
			<input message="tns:SubmitRequest" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>

		<operation name="submitJDL">
			<input message="tns:SubmitRequest" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>

		<operation name="submitGrid">
			<input message="tns:SubmitRequest" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
		
		<operation name="submitBulk">
			<input message="tns:SubmitRequestBulk" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
						
		<operation name="submitJDLBulk">
			<input message="tns:SubmitRequestBulk" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
		
		<operation name="submitGridBulk">
			<input message="tns:SubmitRequestBulk" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
		
		
	</portType>

</definitions></WSDL>
				</PortType>
				<PortType>
					<Name>gcube/execution/ocrservice/OCRServiceFactory</Name>
					<WSDL>

<definitions name="OCRServiceFactory"
	targetNamespace="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
	xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
	xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:corefaults="http://gcube-system.org/namespaces/common/core/faults"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<wsdl:import namespace="http://gcube-system.org/namespaces/common/core/faults"
		location="../gcube/common/core/faults/GCUBEFaults.wsdl" />

	<!--============================================================ T Y P E 
		S ============================================================ -->
	<types>
		<xsd:schema
			targetNamespace="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
			xmlns:tns="http://gcube-system.org/namespaces/execution/OCRServiceFactory"
			xmlns:xsd="http://www.w3.org/2001/XMLSchema">


			<xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/03/addressing"
				schemaLocation="../ws/addressing/WS-Addressing.xsd" />


			<xsd:simpleType name="LanguageEnumType">
				<xsd:restriction base="xsd:string">
					<xsd:enumeration value="eng" />
					<xsd:enumeration value="nld" />
					<xsd:enumeration value="spa" />
					<xsd:enumeration value="deu" />
					<xsd:enumeration value="ita" />
					<xsd:enumeration value="fra" />
				</xsd:restriction>
			</xsd:simpleType>

			<xsd:complexType name="InputResource">
				<xsd:sequence>
					<xsd:element maxOccurs="1" minOccurs="1" name="resourceKey" type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="resourceAccess" 	type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="resourceReference" type="xsd:string" />
					<xsd:element maxOccurs="unbounded" minOccurs="0" name="inMessageBytePayload" type="xsd:byte"/>
					<xsd:element maxOccurs="1" minOccurs="1" name="inMessageStringPayload" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>

			<xsd:complexType name="AccessInfoFTP">
				<xsd:sequence>
					<xsd:element maxOccurs="1" minOccurs="1" name="userName" type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="password" 	type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="port" type="xsd:string" />
					<xsd:element maxOccurs="1" minOccurs="1" name="location" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>
			

			<!-- REQUESTS -->
			<xsd:element name="submit">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element maxOccurs="1" minOccurs="1" name="jobName" type="xsd:string" />
						<xsd:element maxOccurs="1" minOccurs="1" name="inputResource" type="tns:InputResource" />
						<xsd:element maxOccurs="1" minOccurs="1" name="language" type="tns:LanguageEnumType"/>
						<xsd:element maxOccurs="unbounded" minOccurs="0" name="gridProxy" type="xsd:byte" />
						<xsd:element maxOccurs="1" minOccurs="1" name="owner" type="xsd:string"/>
						<xsd:element maxOccurs="1" minOccurs="1" name="chokePDFOutput" 	type="xsd:boolean" default="false"/>
						<xsd:element maxOccurs="1" minOccurs="1" name="storeFTP" 	   	type="xsd:boolean" default="false"/>
						<xsd:element maxOccurs="1" minOccurs="1" name="ftpAccess" 		type="tns:AccessInfoFTP"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>			
			
			<xsd:element name="submitBulk">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element maxOccurs="1" minOccurs="1" name="jobName" type="xsd:string" />
						<xsd:element maxOccurs="1" minOccurs="1" name="inputResource" type="tns:InputResource" />
						<xsd:element maxOccurs="1" minOccurs="1" name="language" type="tns:LanguageEnumType"/>
						<xsd:element maxOccurs="unbounded" minOccurs="0" name="gridProxy" type="xsd:byte" />
						<xsd:element maxOccurs="1" minOccurs="1" name="owner" type="xsd:string"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>		
			
			
			<!-- RESPONSE -->
			<xsd:element name="submitResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element ref="wsa:EndpointReference" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>

		</xsd:schema>
	</types>


	<!--============================================================ M E S S 
		A G E S ============================================================ -->
	<message name="SubmitRequest">
		<part name="request" element="tns:submit" />
	</message>
	<message name="SubmitRequestBulk">
		<part name="request" element="tns:submitBulk" />
	</message>
	<message name="SubmitResponse">
		<part name="response" element="tns:submitResponse" />
	</message>


	<!--============================================================ P O R T 
		T Y P E ============================================================ -->

	<portType name="OCRServiceFactoryPortType">

		<operation name="submit">
			<input message="tns:SubmitRequest" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>

		<operation name="submitJDL">
			<input message="tns:SubmitRequest" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>

		<operation name="submitGrid">
			<input message="tns:SubmitRequest" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
		
		<operation name="submitBulk">
			<input message="tns:SubmitRequestBulk" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
						
		<operation name="submitJDLBulk">
			<input message="tns:SubmitRequestBulk" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
		
		<operation name="submitGridBulk">
			<input message="tns:SubmitRequestBulk" />
			<output message="tns:SubmitResponse" />
			<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"></fault>
		</operation>
		
		
	</portType>

</definitions></WSDL>
				</PortType>
					
			</Main>
			
			
			<Software  deployable="true">
				<Description>OCR Service Stubs</Description>
                <Name>OCRService-stubs</Name>
                <Version>2.1.0</Version>
                <MultiVersion value="true"/>
                <Mandatory level="VO"/>
                <Shareable level="VO"/>
                <Type>library</Type>
                <Files>
                   <File>org.gcube.execution.ocrservice.stubs.jar</File>
                </Files>			
			</Software>
			
<!-- 			<Software deployable="true"> -->
<!-- 				<Description>OCR Service Test Suite</Description> -->
<!-- 				<Name>OCRService-test-suite</Name> -->
<!-- 				<Version>2.1.0</Version> -->
<!-- 				<Files> -->
<!-- 					<File>readme.txt</File> -->
<!-- 					<File>TestOCRService.java</File> -->
<!-- 					<File>UploadOcropusClient.java</File> -->
<!-- 				</Files> -->
<!-- 			</Software> -->
			
		</Packages>
	</Profile>
</Resource>