<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://frontur.com/api" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://frontur.com/api" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://frontur.com/api">
      <s:element name="GetMessages">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="page" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="itemsOnPage" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="userToken" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="apiKey" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetMessagesResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetMessagesResult" type="tns:ArrayOfPrivateMessage" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfPrivateMessage">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="PrivateMessage" nillable="true" type="tns:PrivateMessage" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="PrivateMessage">
        <s:complexContent mixed="false">
          <s:extension base="tns:WebserviceApi">
            <s:sequence>
              <s:element minOccurs="1" maxOccurs="1" name="MessageId" type="s:int" />
              <s:element minOccurs="0" maxOccurs="1" name="Subject" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="Body" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="FromUser" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="Created" type="s:dateTime" />
              <s:element minOccurs="1" maxOccurs="1" name="Read" type="s:boolean" />
              <s:element minOccurs="1" maxOccurs="1" name="Replyed" type="s:boolean" />
            </s:sequence>
          </s:extension>
        </s:complexContent>
      </s:complexType>
      <s:complexType name="WebserviceApi" />
      <s:element name="ToogleRead">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="messageId" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="read" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="userToken" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="apiKey" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ToogleReadResponse">
        <s:complexType />
      </s:element>
      <s:element name="SendMessage">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="userToken" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="toUsername" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="subject" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="body" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="responseMessageId" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="domainId" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="apiKey" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SendMessageResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="SendMessageResult" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ArrayOfPrivateMessage" nillable="true" type="tns:ArrayOfPrivateMessage" />
      <s:element name="int" type="s:int" />
    </s:schema>
  </wsdl:types>
  <wsdl:message name="GetMessagesSoapIn">
    <wsdl:part name="parameters" element="tns:GetMessages" />
  </wsdl:message>
  <wsdl:message name="GetMessagesSoapOut">
    <wsdl:part name="parameters" element="tns:GetMessagesResponse" />
  </wsdl:message>
  <wsdl:message name="ToogleReadSoapIn">
    <wsdl:part name="parameters" element="tns:ToogleRead" />
  </wsdl:message>
  <wsdl:message name="ToogleReadSoapOut">
    <wsdl:part name="parameters" element="tns:ToogleReadResponse" />
  </wsdl:message>
  <wsdl:message name="SendMessageSoapIn">
    <wsdl:part name="parameters" element="tns:SendMessage" />
  </wsdl:message>
  <wsdl:message name="SendMessageSoapOut">
    <wsdl:part name="parameters" element="tns:SendMessageResponse" />
  </wsdl:message>
  <wsdl:message name="GetMessagesHttpGetIn">
    <wsdl:part name="page" type="s:string" />
    <wsdl:part name="itemsOnPage" type="s:string" />
    <wsdl:part name="userToken" type="s:string" />
    <wsdl:part name="apiKey" type="s:string" />
  </wsdl:message>
  <wsdl:message name="GetMessagesHttpGetOut">
    <wsdl:part name="Body" element="tns:ArrayOfPrivateMessage" />
  </wsdl:message>
  <wsdl:message name="ToogleReadHttpGetIn">
    <wsdl:part name="messageId" type="s:string" />
    <wsdl:part name="read" type="s:string" />
    <wsdl:part name="userToken" type="s:string" />
    <wsdl:part name="apiKey" type="s:string" />
  </wsdl:message>
  <wsdl:message name="ToogleReadHttpGetOut" />
  <wsdl:message name="SendMessageHttpGetIn">
    <wsdl:part name="userToken" type="s:string" />
    <wsdl:part name="toUsername" type="s:string" />
    <wsdl:part name="subject" type="s:string" />
    <wsdl:part name="body" type="s:string" />
    <wsdl:part name="responseMessageId" type="s:string" />
    <wsdl:part name="domainId" type="s:string" />
    <wsdl:part name="apiKey" type="s:string" />
  </wsdl:message>
  <wsdl:message name="SendMessageHttpGetOut">
    <wsdl:part name="Body" element="tns:int" />
  </wsdl:message>
  <wsdl:message name="GetMessagesHttpPostIn">
    <wsdl:part name="page" type="s:string" />
    <wsdl:part name="itemsOnPage" type="s:string" />
    <wsdl:part name="userToken" type="s:string" />
    <wsdl:part name="apiKey" type="s:string" />
  </wsdl:message>
  <wsdl:message name="GetMessagesHttpPostOut">
    <wsdl:part name="Body" element="tns:ArrayOfPrivateMessage" />
  </wsdl:message>
  <wsdl:message name="ToogleReadHttpPostIn">
    <wsdl:part name="messageId" type="s:string" />
    <wsdl:part name="read" type="s:string" />
    <wsdl:part name="userToken" type="s:string" />
    <wsdl:part name="apiKey" type="s:string" />
  </wsdl:message>
  <wsdl:message name="ToogleReadHttpPostOut" />
  <wsdl:message name="SendMessageHttpPostIn">
    <wsdl:part name="userToken" type="s:string" />
    <wsdl:part name="toUsername" type="s:string" />
    <wsdl:part name="subject" type="s:string" />
    <wsdl:part name="body" type="s:string" />
    <wsdl:part name="responseMessageId" type="s:string" />
    <wsdl:part name="domainId" type="s:string" />
    <wsdl:part name="apiKey" type="s:string" />
  </wsdl:message>
  <wsdl:message name="SendMessageHttpPostOut">
    <wsdl:part name="Body" element="tns:int" />
  </wsdl:message>
  <wsdl:portType name="PrivateMessageSoap">
    <wsdl:operation name="GetMessages">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Gets message for a user. itemsOnPage can be max 200.</wsdl:documentation>
      <wsdl:input message="tns:GetMessagesSoapIn" />
      <wsdl:output message="tns:GetMessagesSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="ToogleRead">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Toggles if the message is read. If read = true then the message is read.</wsdl:documentation>
      <wsdl:input message="tns:ToogleReadSoapIn" />
      <wsdl:output message="tns:ToogleReadSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="SendMessage">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Sends a message to a username. responseMessageId is the id of the message you are replying. If you are not replying to any message then responseMessageId = 0. Return 1 if sucsessfull, 0 if the username cannot be found</wsdl:documentation>
      <wsdl:input message="tns:SendMessageSoapIn" />
      <wsdl:output message="tns:SendMessageSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="PrivateMessageHttpGet">
    <wsdl:operation name="GetMessages">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Gets message for a user. itemsOnPage can be max 200.</wsdl:documentation>
      <wsdl:input message="tns:GetMessagesHttpGetIn" />
      <wsdl:output message="tns:GetMessagesHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="ToogleRead">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Toggles if the message is read. If read = true then the message is read.</wsdl:documentation>
      <wsdl:input message="tns:ToogleReadHttpGetIn" />
      <wsdl:output message="tns:ToogleReadHttpGetOut" />
    </wsdl:operation>
    <wsdl:operation name="SendMessage">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Sends a message to a username. responseMessageId is the id of the message you are replying. If you are not replying to any message then responseMessageId = 0. Return 1 if sucsessfull, 0 if the username cannot be found</wsdl:documentation>
      <wsdl:input message="tns:SendMessageHttpGetIn" />
      <wsdl:output message="tns:SendMessageHttpGetOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="PrivateMessageHttpPost">
    <wsdl:operation name="GetMessages">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Gets message for a user. itemsOnPage can be max 200.</wsdl:documentation>
      <wsdl:input message="tns:GetMessagesHttpPostIn" />
      <wsdl:output message="tns:GetMessagesHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="ToogleRead">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Toggles if the message is read. If read = true then the message is read.</wsdl:documentation>
      <wsdl:input message="tns:ToogleReadHttpPostIn" />
      <wsdl:output message="tns:ToogleReadHttpPostOut" />
    </wsdl:operation>
    <wsdl:operation name="SendMessage">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Sends a message to a username. responseMessageId is the id of the message you are replying. If you are not replying to any message then responseMessageId = 0. Return 1 if sucsessfull, 0 if the username cannot be found</wsdl:documentation>
      <wsdl:input message="tns:SendMessageHttpPostIn" />
      <wsdl:output message="tns:SendMessageHttpPostOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="PrivateMessageSoap" type="tns:PrivateMessageSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetMessages">
      <soap:operation soapAction="http://frontur.com/api/GetMessages" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ToogleRead">
      <soap:operation soapAction="http://frontur.com/api/ToogleRead" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SendMessage">
      <soap:operation soapAction="http://frontur.com/api/SendMessage" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="PrivateMessageSoap12" type="tns:PrivateMessageSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetMessages">
      <soap12:operation soapAction="http://frontur.com/api/GetMessages" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ToogleRead">
      <soap12:operation soapAction="http://frontur.com/api/ToogleRead" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SendMessage">
      <soap12:operation soapAction="http://frontur.com/api/SendMessage" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="PrivateMessageHttpGet" type="tns:PrivateMessageHttpGet">
    <http:binding verb="GET" />
    <wsdl:operation name="GetMessages">
      <http:operation location="/GetMessages" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ToogleRead">
      <http:operation location="/ToogleRead" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output />
    </wsdl:operation>
    <wsdl:operation name="SendMessage">
      <http:operation location="/SendMessage" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="PrivateMessageHttpPost" type="tns:PrivateMessageHttpPost">
    <http:binding verb="POST" />
    <wsdl:operation name="GetMessages">
      <http:operation location="/GetMessages" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ToogleRead">
      <http:operation location="/ToogleRead" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output />
    </wsdl:operation>
    <wsdl:operation name="SendMessage">
      <http:operation location="/SendMessage" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="PrivateMessage">
    <wsdl:port name="PrivateMessageSoap" binding="tns:PrivateMessageSoap">
      <soap:address location="http://frontur.com/dev/PrivateMessage.asmx" />
    </wsdl:port>
    <wsdl:port name="PrivateMessageSoap12" binding="tns:PrivateMessageSoap12">
      <soap12:address location="http://frontur.com/dev/PrivateMessage.asmx" />
    </wsdl:port>
    <wsdl:port name="PrivateMessageHttpGet" binding="tns:PrivateMessageHttpGet">
      <http:address location="http://frontur.com/dev/PrivateMessage.asmx" />
    </wsdl:port>
    <wsdl:port name="PrivateMessageHttpPost" binding="tns:PrivateMessageHttpPost">
      <http:address location="http://frontur.com/dev/PrivateMessage.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>