<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://api.hi5.com/auth" xmlns:hi5auth="http://api.hi5.com/auth" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:hi5="http://api.hi5.com/">
  <types>
    <xs:schema targetNamespace="http://api.hi5.com/auth">
      <xs:import namespace="http://api.hi5.com/" schemaLocation="hi5.xsd"/>
      <xs:element name="auth_decodetoken">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit request wrapper for operation "auth_decodetoken". (Decode the value of an authtoken]]>
<![CDATA[<p>Given a raw value of an authtoken return it in it's decoded XML format.</p>)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="authtoken" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[Raw XML token, an opaque string.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="auth_decodetokenResponse">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit response wrapper for operation "auth_decodetoken". (Decode the value of an authtoken]]>
<![CDATA[<p>Given a raw value of an authtoken return it in it's decoded XML format.</p>)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="return" type="hi5:AuthToken" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[AuthToken representation of authtoken]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="auth_plain">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit request wrapper for operation "auth_plain". (Authenticate a user by their email address/password.]]>
<![CDATA[<p>This is the simplest way to obtain an authentication token.]]>
<![CDATA[For full functionality you will]]>
<![CDATA[probably want to use a more]]>
<![CDATA[secure method of authentication in the future.</p>]]>
<![CDATA[<p>This method will return an authentication token when given valid]]>
<![CDATA[credentials.</p>]]>
<![CDATA[<p>The Hi5AuthToken allows for access to authenticated API calls. You can]]>
<![CDATA[supply this token by adding it to the query string as the <i>Hi5AuthToken</i>]]>
<![CDATA[parameter or by setting a cookie named <i>Hi5AuthToken</i>.</p>]]>
<![CDATA[<p>The response to this method will also return a Set-Cookie header with a]]>
<![CDATA[correctly configured <i>Hi5AuthToken</i> cookie.</p>]]>
<![CDATA[<p>The following form will allow you to set the authentication cookie:</p>]]>
<![CDATA[<p>]]>
<![CDATA[<form action="../rest/auth/plain" method="POST">]]>
<![CDATA[Username: <input name="username"><br/>]]>
<![CDATA[Password: <input name="password" type="password" value=""><br/>]]>
<![CDATA[API Key: <input name="api_key"><br/>]]>
<![CDATA[<input type="Submit"><br/>]]>
<![CDATA[</form></p>)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="api_key" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[you api key for your widget]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="username" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[The username.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="password" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[The password.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="auth_plainResponse">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit response wrapper for operation "auth_plain". (Authenticate a user by their email address/password.]]>
<![CDATA[<p>This is the simplest way to obtain an authentication token.]]>
<![CDATA[For full functionality you will probably want to use a more]]>
<![CDATA[secure method of authentication in the future.</p>]]>
<![CDATA[<p>This method will return an authentication token when given valid]]>
<![CDATA[credentials.</p>]]>
<![CDATA[<p>The Hi5AuthToken allows for access to authenticated API calls. You can]]>
<![CDATA[supply this token b]]>
<![CDATA[y adding it to the query string as the <i>Hi5AuthToken</i>]]>
<![CDATA[parameter or by setting a cookie named <i>Hi5AuthToken</i>.</p>]]>
<![CDATA[<p>The response to this method will also return a Set-Cookie header with a]]>
<![CDATA[correctly configured <i>Hi5AuthToken</i> cookie.</p>]]>
<![CDATA[<p>The following form will allow you to set the authentication cookie:</p>]]>
<![CDATA[<p>]]>
<![CDATA[<form action="../rest/auth/plain" method="POST">]]>
<![CDATA[Username: <input name="username"><br/>]]>
<![CDATA[Password: <input name="password" type="password" value=""><br/>]]>
<![CDATA[API Key: <input name="api_key"><br/>]]>
<![CDATA[<input type="Submit"><br/>]]>
<![CDATA[</form></p>)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="return" type="hi5:AuthToken" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[The authentication token.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="renew">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit request wrapper for operation "renew". (Regenerates a new AuthToken based on the given <code>api_key</code>.)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="authToken" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[the original auth token with the original apikey]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="api_key" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[The new apikey you want to have the Authtoken for.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="renewResponse">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit response wrapper for operation "renew". (Regenerates a new AuthToken based on the given <code>api_key</code>.)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="return" type="hi5:AuthToken" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[A new authentication token with t]]>
<![CDATA[he given api key]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
  </types>
  <message name="AuthApi.auth_plain">
    <documentation>
      <![CDATA[request message for operation "auth_plain". (Authenticate a user by their email address/password.]]>
<![CDATA[<p>This is the simplest way to obtain an authentication token.]]>
<![CDATA[For full functionality you will probably want to use a more]]>
<![CDATA[secure method of authentication in the future.</p>]]>
<![CDATA[<p>This method will return an authentication token when given valid]]>
<![CDATA[credentials.</p>]]>
<![CDATA[<p>The Hi5AuthToken allows for access to authenticated API calls. You can]]>
<![CDATA[supply this token by adding it to the query string as the <i>Hi5AuthToken</i>]]>
<![CDATA[parameter or by setting a cookie named <i>Hi5AuthToken</i>.</p>]]>
<![CDATA[<p>The response to this method will also return a Set-Cookie header with a]]>
<![CDATA[correctly configured <i>Hi5AuthToken</i> cookie.</p>]]>
<![CDATA[<p>The following form will allow you to set the authentication cookie:</p>]]>
<![CDATA[<p>]]>
<![CDATA[<form action="../rest/auth/plain" method="POST">]]>
<![CDATA[Username: <input name="username"><br/>]]>
<![CDATA[Password: <input name="password" type="password" value=""><br/>]]>
<![CDATA[API Key: <input name="api_key"><br/>]]>
<![CDATA[<input type="Submit"><br/>]]>
<![CDATA[</form></p>)]]>
    </documentation>
    <part name="auth_plain" element="hi5auth:auth_plain"/>
  </message>
  <message name="AuthApi.auth_plainResponse">
    <documentation>
      <![CDATA[response message for operation "auth_plain". (Authenticate a user by their email address/password.]]>
<![CDATA[<p>This is the simplest way to obtain an authentication token.]]>
<![CDATA[For full functionality you will probably want to use a more]]>
<![CDATA[secure method of authentication in the future.</p>]]>
<![CDATA[<p>This method will return an authentication token when given valid]]>
<![CDATA[credentials.</p>]]>
<![CDATA[<p>The Hi5AuthToken allows for access to authenticated API calls. You can]]>
<![CDATA[supply this token by adding it to the query string as the <i>Hi5AuthToken</i>]]>
<![CDATA[parameter or by setting a cookie named <i>Hi5AuthToken</i>.</p>]]>
<![CDATA[<p>The response to this method will also return a Set-Cookie header with a]]>
<![CDATA[correctly configured <i>Hi5]]>
<![CDATA[AuthToken</i> cookie.</p>]]>
<![CDATA[<p>The following form will allow you to set the authentication cookie:</p>]]>
<![CDATA[<p>]]>
<![CDATA[<form action="../rest/auth/plain" method="POST">]]>
<![CDATA[Username: <input name="username"><br/>]]>
<![CDATA[Password: <input name="password" type="password" value=""><br/>]]>
<![CDATA[API Key: <input name="api_key"><br/>]]>
<![CDATA[<input type="Submit"><br/>]]>
<![CDATA[</form></p>)]]>
    </documentation>
    <part name="auth_plainResponse" element="hi5auth:auth_plainResponse"/>
  </message>
  <message name="PermissionDeniedException">
    <documentation>
      <![CDATA[Thrown when an attempt is made to do something without the correct permissions.]]>
    </documentation>
    <part name="PermissionDeniedException" element="hi5:PermissionDeniedException"/>
  </message>
  <message name="AuthApi.renew">
    <documentation>
      <![CDATA[request message for operation "renew". (Regenerates a new AuthToken based on the given <code>api_key</code>.)]]>
    </documentation>
    <part name="renew" element="hi5auth:renew"/>
  </message>
  <message name="AuthApi.renewResponse">
    <documentation>
      <![CDATA[response message for operation "renew". (Regenerates a new AuthToken based on the given <code>api_key</code>.)]]>
    </documentation>
    <part name="renewResponse" element="hi5auth:renewResponse"/>
  </message>
  <message name="AuthApi.auth_decodetoken">
    <documentation>
      <![CDATA[request message for operation "auth_decodetoken". (Decode the value of an authtoken]]>
<![CDATA[<p>Given a raw value of an authtoken return it in it's decoded XML format.</p>)]]>
    </documentation>
    <part name="auth_decodetoken" element="hi5auth:auth_decodetoken"/>
  </message>
  <message name="AuthApi.auth_decodetokenResponse">
    <documentation>
      <![CDATA[response message for operation "auth_decodetoken". (Decode the value of an authtoken]]>
<![CDATA[<p>Given a raw value of an authtoken return it in it's decoded XML format.</p>)]]>
    </documentation>
    <part name="auth_decodetokenResponse" element="hi5auth:auth_decodetokenResponse"/>
  </message>
  <portType name="AuthApi">
    <operation name="auth_plain">
      <documentation>
        <![CDATA[Authenticate a user by their email ad]]>
<![CDATA[dress/password.]]>
<![CDATA[<p>This is the simplest way to obtain an authentication token.]]>
<![CDATA[For full functionality you will probably want to use a more]]>
<![CDATA[secure method of authentication in the future.</p>]]>
<![CDATA[<p>This method will return an authentication token when given valid]]>
<![CDATA[credentials.</p>]]>
<![CDATA[<p>The Hi5AuthToken allows for access to authenticated API calls. You can]]>
<![CDATA[supply this token by adding it to the query string as the <i>Hi5AuthToken</i>]]>
<![CDATA[parameter or by setting a cookie named <i>Hi5AuthToken</i>.</p>]]>
<![CDATA[<p>The response to this method will also return a Set-Cookie header with a]]>
<![CDATA[correctly configured <i>Hi5AuthToken</i> cookie.</p>]]>
<![CDATA[<p>The following form will allow you to set the authentication cookie:</p>]]>
<![CDATA[<p>]]>
<![CDATA[<form action="../rest/auth/plain" method="POST">]]>
<![CDATA[Username: <input name="username"><br/>]]>
<![CDATA[Password: <input name="password" type="password" value=""><br/>]]>
<![CDATA[API Key: <input name="api_key"><br/>]]>
<![CDATA[<input type="Submit"><br/>]]>
<![CDATA[</form></p>]]>
      </documentation>
      <input message="hi5auth:AuthApi.auth_plain"/>
      <output message="hi5auth:AuthApi.auth_plainResponse"/>
      <fault name="PermissionDeniedException" message="hi5auth:PermissionDeniedException"/>
    </operation>
    <operation name="renew">
      <documentation>
        <![CDATA[Regenerates a new AuthToken based on the given <code>api_key</code>.]]>
      </documentation>
      <input message="hi5auth:AuthApi.renew"/>
      <output message="hi5auth:AuthApi.renewResponse"/>
      <fault name="PermissionDeniedException" message="hi5auth:PermissionDeniedException"/>
    </operation>
    <operation name="auth_decodetoken">
      <documentation>
        <![CDATA[Decode the value of an authtoken]]>
<![CDATA[<p>Given a raw value of an authtoken return it in it's decoded XML format.</p>]]>
      </documentation>
      <input message="hi5auth:AuthApi.auth_decodetoken"/>
      <output message="hi5auth:AuthApi.auth_decodetokenResponse"/>
      <fault name="PermissionDeniedException" message="hi5auth:PermissionDeniedException"/>
    </operation>
  </portType>
  <binding name="AuthApiSOAPBinding" type="hi5auth:AuthApi">
    <documentation>
      <![CDATA[SOAP Binding for AuthApi]]>
    </documentation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="auth_plain">
      <soap:operation soapAction="" style="document"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
    </operation>
    <operation name="renew">
      <soap:operation soapAction="" style="document"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
    </operation>
    <operation name="auth_decodetoken">
      <soap:operation soapAction="" style="document"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
    </operation>
  </binding>
  <service name="AuthApiService">
    <port name="AuthApiSOAPPort" binding="hi5auth:AuthApiSOAPBinding">
      <soap:address location="http://api.hi5.com/soap/AuthApiService"/>
    </port>
  </service>
</definitions>
