<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://api.hi5.com/notification" 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/" xmlns:ns7="http://api.hi5.com/notification">
  <types>
    <xs:schema targetNamespace="http://api.hi5.com/notification">
      <xs:import namespace="http://api.hi5.com/" schemaLocation="hi5.xsd"/>
    </xs:schema>
  </types>
  <message name="NotificationApi.sendNotifications">
    <documentation>
      <![CDATA[Input message for operation "sendNotifications". (Sends a hi5 Notification with the specified text body to a set of users.
Users to be sent to are specified as a list of userids, passed in via the toIds parameter.
<p/>
The number of emails sent is limited by quotas. See the Platform
<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.)]]>
    </documentation>
    <part name="body" type="xs:string">
      <documentation>
        <![CDATA[The text body of the notification. Only a and br tags are currently allowed, any other html is filtered.]]>
      </documentation>
    </part>
    <part name="toIds" type="xs:string">
      <documentation>
        <![CDATA[List of hi5 userids to attempt to send the notification to. This should be passed in as multiple params (i.e. toIds=1000&toIds=2000&toIds=3000...) A maximum of 200 ids are allowed or the request will fail with an error. Only users who are friends with the sender as identified from the auth token, or who have the sending application installed, will receive the notification. A list of ids for users who have successfully received the notification will be returned in the response.]]>
      </documentation>
    </part>
  </message>
  <message name="NotificationApi.sendNotificationsResponse">
    <documentation>
      <![CDATA[Output message for operation "sendNotifications". (Sends a hi5 Notification with the specified text body to a set of users.
Users to be sent to are specified as a list of userids, passed in via the toIds parameter.
<p/>
The number of emails sent is limited by quotas. See the Platform
<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.)]]>
    </documentation>
    <part name="return" type="hi5:notificationResponse">
      <documentation/>
    </part>
  </message>
  <message name="UnauthorizedException">
    <documentation>
      <![CDATA[Thrown when an attempt is made to do something that violates internal API constraints.]]>
    </documentation>
    <part name="UnauthorizedException" element="hi5:UnauthorizedException"/>
  </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>
  <portType name="NotificationApi">
    <operation name="sendNotifications">
      <documentation>
        <![CDATA[Sends a hi5 Notification with the specified text body to a set of users.
Users to be sent to are specified as a list of userids, passed in via the toIds parameter.
<p/>
The number of emails sent is limited by quotas. See the Platform
<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.]]>
      </documentation>
      <input message="ns7:NotificationApi.sendNotifications"/>
      <output message="ns7:NotificationApi.sendNotificationsResponse"/>
      <fault name="UnauthorizedException" message="ns7:UnauthorizedException"/>
      <fault name="PermissionDeniedException" message="ns7:PermissionDeniedException"/>
    </operation>
  </portType>
  <binding name="NotificationApiSOAPBinding" type="ns7:NotificationApi">
    <documentation>
      <![CDATA[SOAP Binding for NotificationApi]]>
    </documentation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="sendNotifications">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="UnauthorizedException">
        <soap:fault name="UnauthorizedException" use="literal"/>
      </fault>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
    </operation>
  </binding>
  <service name="NotificationApiService">
    <port name="NotificationApiSOAPPort" binding="ns7:NotificationApiSOAPBinding">
      <soap:address location="http://api.hi5.com/soap/NotificationApiService"/>
    </port>
  </service>
</definitions>

