<?xml version="1.0"?>
<definitions name="Consensus_Service" 
 targetNamespace="http://gbio.ibcp.fr:8090/Consensus_Service"  
 xmlns:tns="http://gbio.ibcp.fr:8090/Consensus_Service"   
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
 xmlns="http://schemas.xmlsoap.org/wsdl/">

    <message name="submitConsensusRequest">
        <part name="SecStructure1" type="xsd:string"/>
        <part name="SecStructure2" type="xsd:string"/>
        <part name="SecStructure3" type="xsd:string"/>
        <part name="SecStructure4" type="xsd:string"/>
        <part name="SecStructure5" type="xsd:string"/>
        <part name="SecStructure6" type="xsd:string"/>
    </message>
    <message name="submitConsensusResponse">
        <part name="JobId" type="xsd:string"/>
    </message>
    
    <message name="checkStatusConsensusRequest">
        <part name="JobId" type="xsd:string"/>
    </message>
    <message name="checkStatusConsensusResponse">
        <part name="Status" type="xsd:string"/>
    </message>
    
    <message name="getResultsConsensusRequest">
        <part name="JobId" type="xsd:string"/>
    </message>
    <message name="getResultsConsensusResponse">
        <part name="SecConsensus" type="xsd:string"/>
    </message>
    
    <message name="cancelConsensusRequest">
        <part name="JobId" type="xsd:string"/>
    </message>
    <message name="cancelConsensusResponse">
        <part name="Status" type="xsd:string"/>
    </message>

    <portType name="ConsensusPortType">
        <operation name="submitConsensus">
            <documentation>Submit a sequence an get a jobID</documentation>
            <input message="tns:submitConsensusRequest"/>
            <output message="tns:submitConsensusResponse"/>
        </operation>
        <operation name="checkStatusConsensus">
            <documentation>Submit a jobID and get the status</documentation>
            <input message="tns:checkStatusConsensusRequest"/>
            <output message="tns:checkStatusConsensusResponse"/>
        </operation>
        <operation name="getResultsConsensus">
            <documentation>When job is finish, submit a jobid and get the results</documentation>
            <input message="tns:getResultsConsensusRequest"/>
            <output message="tns:getResultsConsensusResponse"/>
        </operation>
        <operation name="cancelConsensus">
            <documentation>When some thing is wrong, cancel your job</documentation>
            <input message="tns:cancelConsensusRequest"/>
            <output message="tns:cancelConsensusResponse"/>
        </operation>
    </portType>

    <binding name="ConsensusBinding" type="tns:ConsensusPortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="submitConsensus">
            <soap:operation
             soapAction="urn:ConsensusWS.wsdl#submitConsensus"/>
            <input>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        <operation name="checkStatusConsensus">
            <soap:operation
             soapAction="urn:ConsensusWS.wsdl#checkStatusConsensus"/>
            <input>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        <operation name="getResultsConsensus">
            <soap:operation
             soapAction="urn:ConsensusWS.wsdl#getResultsConsensus"/>
            <input>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        <operation name="cancelConsensus">
            <soap:operation
             soapAction="urn:ConsensusWS.wsdl#cancelConsensus"/>
            <input>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="urn:Consensus_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
    </binding>
    
    <service name="Consensus_Service">
        <documentation>Consensus @ IBCP (http://gbio-pbil.ibcp.fr)</documentation>
        <port name="ConsensusPort" binding="tns:ConsensusBinding">
            <soap:address location="http://gbio.ibcp.fr:8090/Consensus_Service"/>
        </port>
    </service>
    
</definitions>
