<?xml version="1.0" encoding="UTF-8"?>
<Resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<ID></ID>
	<Type>Service</Type>
	<Profile>
		<Description>Search System Service</Description>
		<Class>Search</Class>
		<Name>SearchSystemService</Name>
		<Version>1.0.0</Version>
		<Packages>
			<Main>
				<Description>Describes port-types</Description>
				<Name>SearchSystemService</Name>
				<Version>2.0.1</Version>
				<Mandatory level="VO"/>
                <Shareable level="VO"/>
                <GHNRequirements>
                    <Requirement category="OperatingSystem" operator="eq" requirement="Name" value="Linux" />
                </GHNRequirements>
				<Dependencies>
					<Dependency>
						<Service>
							<Class>Search</Class>
							<Name>SearchSystemService</Name>
							<Version>1.0.0</Version>
						</Service>
						<Package>SearchSystemServiceStubs</Package>
						<Version>[2.0.0, 3.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
					<Dependency>
						<Service>
					   		<Class>Search</Class>
			 		   		<Name>SearchSystem</Name>
			 		   		<Version>1.0.0</Version>
						</Service>
						<Package>SearchSystem</Package>
						<Version>[3.0.0, 4.0.0)</Version>
						<Scope level="GHN"/>
						<Optional>false</Optional>
					</Dependency>
				</Dependencies>
				<GARArchive>org.gcube.searchsystem.searchsystemservice.gar</GARArchive>
				<PortType>
					<Name>gcube/searchsystem/SearchSystemService</Name>
					<WSDL>
<definitions name="SearchMasterService"
    targetNamespace="http://gcube.org/namespaces/searchsystem/SearchSystemService"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://gcube.org/namespaces/searchsystem/SearchSystemService"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" 
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlpp="http://www.globus.org/namespaces/2004/10/WSDLPreprocessor"
    xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.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:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:coretypes="http://gcube-system.org/namespaces/common/core/types"
    xmlns:corefaults="http://gcube-system.org/namespaces/common/core/faults"
    xmlns:provider="http://gcube-system.org/namespaces/common/core/porttypes/GCUBEProvider">

	<wsdl:import namespace="http://gcube-system.org/namespaces/common/core/porttypes/GCUBEProvider" location="../gcube/common/core/providers/GCUBEProvider.wsdl"/>
	<import namespace="http://gcube-system.org/namespaces/common/core/faults" location="../gcube/common/core/faults/GCUBEFaults.wsdl"/>
	<xsd:import namespace="http://gcube-system.org/namespaces/common/core/types" schemaLocation="../gcube/common/core/types/GCUBETypes.xsd"/>

<types>
<xsd:schema targetNamespace="http://gcube.org/namespaces/searchsystem/SearchSystemService"
    xmlns:tns="http://gcube.org/namespaces/searchsystem/SearchSystemService"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd">

	<xsd:complexType name="StringArray">
        <xsd:sequence>
                <xsd:element name="array" type="xsd:string" maxOccurs="unbounded" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

	<xsd:element name="search" type="xsd:string"/>
	
	<xsd:element name="searchResponse">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="ResultSetEpr" type="xsd:string"/>
				<xsd:element name="Warnings" type="tns:StringArray"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
        
</xsd:schema>
</types>

<message name="SearchRequest">
	<part name="request" element="tns:search"/>
</message>
<message name="SearchResponse">
	<part name="response" element="tns:searchResponse"/>
</message>

<portType name="SearchSystemServicePortType">

	<operation name="search">
		<input message="tns:SearchRequest"/>
		<output message="tns:SearchResponse"/>
		<fault name="fault" message="corefaults:GCUBEUnrecoverableFaultMessage"/>
		<fault name="fault" message="corefaults:GCUBERetrySameFaultMessage"/>
		<fault name="fault" message="corefaults:GCUBERetryEquivalentFaultMessage"/>
	</operation>

</portType>

</definitions>
</WSDL>
				</PortType>
			</Main>
			<Software deployable="true">
				<Description>Describes port-type stubs</Description>
				<Name>SearchSystemServiceStubs</Name>
				<Version>2.0.0</Version>
				<MultiVersion value="true"/>
                <Mandatory level="VO"/>
                <Shareable level="VO"/>
				<Files><File>org.gcube.searchsystem.searchsystemservice.stubs.jar</File></Files>
			</Software>
			<Software deployable="true">
				<Description>Search System Test Suite</Description>
				<Name>SearchSystem-test-suite</Name>
				<Version>2.0.0</Version>
				<Files>
					<File>readme.txt</File>
					<File>Client.java</File>
				</Files>
			</Software>
		</Packages>
	</Profile>
</Resource>
