<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://api.hi5.com/profile" xmlns:foaf="http://xmlns.com/foaf/0.1/" 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:ns16="http://api.hi5.com/xpt" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:hi5="http://api.hi5.com/" xmlns:hi5profile="http://api.hi5.com/profile">
  <types>
    <xs:schema targetNamespace="http://api.hi5.com/profile">
      <xs:import namespace="http://api.hi5.com/" schemaLocation="hi5.xsd"/>
      <xs:import namespace="http://api.hi5.com/xpt" schemaLocation="ns16.xsd"/>
      <xs:import namespace="http://xmlns.com/foaf/0.1/" schemaLocation="foaf.xsd"/>
    </xs:schema>
  </types>
  <message name="ProfileApi.readProfileUser">
    <documentation>
      <![CDATA[Input message for operation "readProfileUser". (Reads information about a user.)]]>
    </documentation>
    <part name="userId" type="xs:int">
      <documentation>
        <![CDATA[The id of the user to read.]]>
      </documentation>
    </part>
  </message>
  <message name="ProfileApi.readProfileUserResponse">
    <documentation>
      <![CDATA[Output message for operation "readProfileUser". (Reads information about a user.)]]>
    </documentation>
    <part name="return" type="hi5:user">
      <documentation/>
    </part>
  </message>
  <message name="NotFoundException">
    <documentation>
      <![CDATA[Thrown when attempting to access a missing resource]]>
    </documentation>
    <part name="NotFoundException" element="hi5:NotFoundException"/>
  </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="ProfileApi.readFoaf">
    <documentation>
      <![CDATA[Input message for operation "readFoaf". (Returns FOAF (Frien]]>
<![CDATA[d of a Friend) formatted information about a user.]]>
<![CDATA[The FOAF protocol is documented at <a href="http://www.foaf-project.org/">http://www.foaf-project.org/</a>)]]>
    </documentation>
    <part name="userId" type="xs:int">
      <documentation>
        <![CDATA[The id of the user to read.]]>
      </documentation>
    </part>
  </message>
  <message name="ProfileApi.readFoafResponse">
    <documentation>
      <![CDATA[Output message for operation "readFoaf". (Returns FOAF (Friend of a Friend) formatted information about a user.]]>
<![CDATA[The FOAF protocol is documented at <a href="http://www.foaf-project.org/">http://www.foaf-project.org/</a>)]]>
    </documentation>
    <part name="return" type="foaf:foaf">
      <documentation/>
    </part>
  </message>
  <message name="BadRequestException">
    <documentation>
      <![CDATA[Thrown when invalid data is received for a specific method.]]>
    </documentation>
    <part name="BadRequestException" element="hi5:BadRequestException"/>
  </message>
  <message name="ProfileApi.readXPT">
    <documentation>
      <![CDATA[Input message for operation "readXPT". (Returns XML Profile Targetting data about a user.]]>
<![CDATA[Special access is required to use this endpoint)]]>
    </documentation>
    <part name="encryptedId" type="xs:string">
      <documentation/>
    </part>
  </message>
  <message name="ProfileApi.readXPTResponse">
    <documentation>
      <![CDATA[Output message for operation "readXPT". (Returns XML Profile Targetting data about a user.]]>
<![CDATA[Special access is required to use this endpoint)]]>
    </documentation>
    <part name="return" type="ns16:UserProfile">
      <documentation/>
    </part>
  </message>
  <message name="ProfileApi.lookup">
    <documentation>
      <![CDATA[Input message for operation "lookup". (Look up a user by email or nickname of a Hi5 url.]]>
<![CDATA[Looks up a userId given a certain set of criteria.)]]>
    </documentation>
    <part name="email" type="xs:string">
      <documentation>
        <![CDATA[Email address of a user]]>
      </documentation>
    </part>
    <part name="nickname" type="xs:string">
      <documentation>
        <![CDATA[Nickname of a Hi5 url of a user w]]>
<![CDATA[here nickname is the subdomain of a hi5 vanity url e.g. nickname.hi5.com]]>
      </documentation>
    </part>
  </message>
  <message name="ProfileApi.lookupResponse">
    <documentation>
      <![CDATA[Output message for operation "lookup". (Look up a user by email or nickname of a Hi5 url.]]>
<![CDATA[Looks up a userId given a certain set of criteria.)]]>
    </documentation>
    <part name="return" type="hi5:userId">
      <documentation/>
    </part>
  </message>
  <message name="ProfileApi.getProfileViews">
    <documentation>
      <![CDATA[Input message for operation "getProfileViews". (Returns number of profile views for a particuler user, total and for the current month (starting from the first of month).)]]>
    </documentation>
    <part name="userId" type="xs:int">
      <documentation>
        <![CDATA[Hi5 user id.]]>
      </documentation>
    </part>
  </message>
  <message name="ProfileApi.getProfileViewsResponse">
    <documentation>
      <![CDATA[Output message for operation "getProfileViews". (Returns number of profile views for a particuler user, total and for the current month (starting from the first of month).)]]>
    </documentation>
    <part name="return" type="hi5:profileViews">
      <documentation/>
    </part>
  </message>
  <message name="Hi5ApiGeneralException">
    <documentation>
      <![CDATA[Thrown when attempting to access a missing resource]]>
    </documentation>
    <part name="Hi5ApiGeneralException" element="hi5:Hi5ApiGeneralException"/>
  </message>
  <portType name="ProfileApi">
    <documentation>
      <![CDATA[These services are used to perform actions on data associated with a user's profile.]]>
    </documentation>
    <operation name="readProfileUser">
      <documentation>
        <![CDATA[Reads information about a user.]]>
      </documentation>
      <input message="hi5profile:ProfileApi.readProfileUser"/>
      <output message="hi5profile:ProfileApi.readProfileUserResponse"/>
      <fault name="NotFoundException" message="hi5profile:NotFoundException"/>
      <fault name="PermissionDeniedException" message="hi5profile:PermissionDeniedException"/>
    </operation>
    <operation name="readFoaf">
      <documentation>
        <![CDATA[Returns FOAF (Friend of a Friend) formatted information about a user.]]>
<![CDATA[The FOAF protocol is documented at <a href="http://www.foaf-project.org/">http://www.foaf-project.org/</a>]]>
      </documentation>
      <input message="hi5profile:ProfileApi.readFoaf"/>
      <output message="hi5profile:ProfileApi.readFoafResponse"/>
      <fault name="BadRequestException" message="hi5profile:BadRequestException"/>
      <fault name="NotFoundException" message="hi5profile:NotFoundException"/>
      <fault name="PermissionDeniedException" message="hi5profile:PermissionDeniedException"/>
    </operation>
    <operation name="readXPT">
      <documentation>
        <![CDATA[Returns XML Profile Targetting data about a user.]]>
<![CDATA[Special access is required to use this endpoint]]>
      </documentation>
      <input message="hi5profile:ProfileApi.readXPT"/>
      <output message="hi5profile:ProfileApi.readXPTResponse"/>
      <fault name="BadRequestException" message="hi5profile:BadRequestException"/>
      <fault name="NotFoundException" message="hi5profile:NotFoundException"/>
      <fault name="PermissionDeniedException" message="hi5profile:PermissionDeniedException"/>
    </operation>
    <operation name="lookup">
      <documentation>
        <![CDATA[Look up a user by email or nickname of a Hi5 url.]]>
<![CDATA[Looks up a userId given a certain set of criteria.]]>
      </documentation>
      <input message="hi5profile:ProfileApi.lookup"/>
      <output message="hi5profile:ProfileApi.lookupResponse"/>
      <fault name="NotFoundException" message="hi5profile:NotFoundException"/>
    </operation>
    <operation name="getProfileViews">
      <documentation>
        <![CDATA[Returns number of profile views for a particuler user, total and for the current month (starting from the first of month).]]>
      </documentation>
      <input message="hi5profile:ProfileApi.getProfileViews"/>
      <output message="hi5profile:ProfileApi.getProfileViewsResponse"/>
      <fault name="NotFoundException" message="hi5profile:NotFoundException"/>
      <fault name="PermissionDeniedException" message="hi5profile:PermissionDeniedException"/>
      <fault name="Hi5ApiGeneralException" message="hi5profile:Hi5ApiGeneralException"/>
    </operation>
  </portType>
  <binding name="ProfileApiSOAPBinding" type="hi5profile:ProfileApi">
    <documentation>
      <![CDATA[SOAP Binding for ProfileApi]]>
    </documentation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="readProfileUser">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="NotFoundException">
        <soap:fault name="NotFoundException" use="literal"/>
      </fault>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
    </operation>
    <operation name="readFoaf">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="BadRequestException">
        <soap:fault name="BadRequestException" use="literal"/>
      </fault>
      <fault name="NotFoundException">
        <soap:fault name="NotFoundException" use="literal"/>
      </fault>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
    </operation>
    <operation name="readXPT">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="BadRequestException">
        <soap:fault name="BadRequestException" use="literal"/>
      </fault>
      <fault name="NotFoundException">
        <soap:fault name="NotFoundException" use="literal"/>
      </fault>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
    </operation>
    <operation name="lookup">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="NotFoundException">
        <soap:fault name="NotFoundException" use="literal"/>
      </fault>
    </operation>
    <operation name="getProfileViews">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="NotFoundException">
        <soap:fault name="NotFoundException" use="literal"/>
      </fault>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
      <fault name="Hi5ApiGeneralException">
        <soap:fault name="Hi5ApiGeneralException" use="literal"/>
      </fault>
    </operation>
  </binding>
  <service name="ProfileApiService">
    <port name="ProfileApiSOAPPort" binding="hi5profile:ProfileApiSOAPBinding">
      <soap:address location="http://api.hi5.com/soap/ProfileApiService"/>
    </port>
  </service>
</definitions>
