<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="https://ssp.imcce.fr/webservices/vos4o-1.1" 
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                  xmlns:tns="https://ssp.imcce.fr/webservices/vos4o-1.1"> 

  <wsdl:types>
    <xsd:schema targetNamespace="https://ssp.imcce.fr/webservices/vos4o-1.1">
      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
      
      <xsd:complexType name="clientID">
        <xsd:sequence>
          <xsd:element name="from" type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="hostip" type="xsd:string" minOccurs="1" maxOccurs="1"/>
        </xsd:sequence>
      </xsd:complexType>

      <xsd:complexType name="scaleRequest">
        <xsd:annotation>
          <xsd:documentation>Complex type of the scale method of vos4o Web service</xsd:documentation>
        </xsd:annotation>
        <xsd:all>
          <xsd:element name="scale" type="xsd:string" minOccurs="0" maxOccurs="1" default="1:1"/>
          <xsd:element name="autoscale" type="xsd:boolean" minOccurs="0" maxOccurs="1" default="true"/>
          <xsd:element name="scalefactor" type="xsd:float" minOccurs="0" maxOccurs="1" default="1.0"/>
          <xsd:element name="unit" type="xsd:string" minOccurs="0" maxOccurs="1" default="au"/>
          <xsd:element name="axis" type="xsd:string" minOccurs="0" maxOccurs="1" default="log"/>
          <xsd:element name="lang" type="xsd:string" minOccurs="0" maxOccurs="1" default="en"/>
          <xsd:element name="mime" type="xsd:string" minOccurs="0" maxOccurs="1" default="html"/>
          <xsd:element name="epoch" type="xsd:string" minOccurs="0" maxOccurs="1" default="now"/>
          <xsd:element name="sso" type="xsd:string" minOccurs="0" maxOccurs="1" default=""/>
        </xsd:all>
      </xsd:complexType>

      <xsd:complexType name="vos4oResponse">
        <xsd:annotation>
          <xsd:documentation>Complex type of the results of vos4o Web service</xsd:documentation>
        </xsd:annotation>
        <xsd:all>
          <xsd:element name="status" type="xsd:int" />
          <xsd:element name="ticket" type="xsd:long"/>
          <xsd:element name="result" type="xsd:string"/>
        </xsd:all>
      </xsd:complexType>

      <xsd:element name="clientID" type="tns:clientID"></xsd:element>
    </xsd:schema>
  </wsdl:types>

  <!--  -->
  <wsdl:message name='header'>
    <wsdl:documentation>Client's ID parameters which are transmitted to the service</wsdl:documentation>
    <wsdl:part name='clientID' element='tns:clientID'/>
  </wsdl:message>

  <!--  -->
  <wsdl:message name="scaleRequest">
    <wsdl:documentation>Input parameters of the VOS4O.scale method</wsdl:documentation>
    <wsdl:part name="inputArray" type="tns:scaleRequest"/>
  </wsdl:message>

  <!--  -->
  <wsdl:message name="scaleResponse">
    <wsdl:documentation>Output parameters of the VOS4O.scale method</wsdl:documentation>
    <wsdl:part name="result" type="tns:vos4oResponse"/>
  </wsdl:message>

  <!--  -->
  <wsdl:message name="getAvailabilityRequest">
    <wsdl:documentation>Input parameter of the VOS4O.getAvailability method</wsdl:documentation>
    <wsdl:part name="mime" type="xsd:string" />
  </wsdl:message>

  <!--  -->
  <wsdl:message name="getAvailabilityResponse">
    <wsdl:documentation>Output parameters of the VOS4O.getAvailability method</wsdl:documentation>
    <wsdl:part name="result" type="xsd:string" />
  </wsdl:message>

  <!--  -->
  <wsdl:portType name="vos4oPortType">
    <wsdl:operation name="scale">
      <wsdl:documentation>Documentation providing a short description of what is supposed to do the scale method.</wsdl:documentation>
      <wsdl:input message="tns:scaleRequest"/>
      <wsdl:output message="tns:scaleResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getAvailability">
      <wsdl:documentation>Availability of the VOS4O Web service.</wsdl:documentation>
      <wsdl:input message="tns:getAvailabilityRequest" />
      <wsdl:output message="tns:getAvailabilityResponse" />
    </wsdl:operation>
  </wsdl:portType>

  <!--  -->
  <wsdl:binding name="vos4oBinding" type="tns:vos4oPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

    <!--  -->
    <wsdl:operation name="scale">
      <soap:operation soapAction="https://ssp.imcce.fr/webservices/vos4o-1.1#scale" style="rpc"/>
      <wsdl:input>
        <soap:header use="literal" part="clientID" message="tns:header"/>
        <soap:body use="encoded" namespace="https://ssp.imcce.fr/webservices/vos4o-1.1"
          encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="https://ssp.imcce.fr/webservices/vos4o-1.1"
          encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getAvailability">
      <soap:operation soapAction="https://ssp.imcce.fr/webservices/vos4o-1.1#getAvailability" style="rpc" />
      <wsdl:input>
        <soap:header use="literal" part="clientID" message="tns:header" />
        <soap:body use="encoded" namespace="https://ssp.imcce.fr/webservices/vos4o-1.1"
          encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="https://ssp.imcce.fr/webservices/vos4o-1.1"
          encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>

  <!--  -->
  <wsdl:service name="vos4o">
    <wsdl:port name="vos4oPort" binding="tns:vos4oBinding">
      <soap:address location="https://ssp.imcce.fr/webservices/vos4o-1.1/vos4o.php"/>
    </wsdl:port>
  </wsdl:service>

</wsdl:definitions>
