<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://api.hi5.com/message" 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:ns4="http://api.hi5.com/message" 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/message">
      <xs:import namespace="http://api.hi5.com/" schemaLocation="hi5.xsd"/>
      <xs:element name="sendEmails">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit request wrapper for operation "sendEmails". (Sends an email with the specified text title and body to a set of users.]]>
<![CDATA[Users to be sent to are specified as a list of userids, passed in via the toIds parameter.]]>
<![CDATA[<p>]]>
<![CDATA[The number of emails sent is limited by quotas. See the Platform]]>
<![CDATA[<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="title" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[the subject for the email. No html is allowed.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="body" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[the body of the email message. Only a and br tags are allowed, any other html is filtered.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="toIds" type="xs:string" minOccurs="1" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[List of hi5 userids to attempt to send the email to. This should be passed in as multiple params (i.e. toIds=1000&toIds=2000&toIds=3000...)]]>
<![CDATA[A maximum of 200 ids are allowed or the request will fail with an error. Only users who have the sending application installed will receive the]]>
<![CDATA[email. A list of ids for users to whom the]]>
<![CDATA[email was successfully sent is set in the response.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="sendEmailsResponse">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit response wrapper for operation "sendEmails". (Sends an email with the specified text title and body to a set of users.]]>
<![CDATA[Users to be sent to are specified as a list of userids, passed in via the toIds parameter.]]>
<![CDATA[<p>]]>
<![CDATA[The number of emails sent is limited by quotas. See the Platform]]>
<![CDATA[<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="return" type="hi5:emailResponse" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[EmailResponse Response with error_code and error_message set if there is a global error. sent_ids set if any emails]]>
<![CDATA[are successfully sent]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
  </types>
  <message name="MessageApi.sendEmails">
    <documentation>
      <![CDATA[request message for operation "sendEmails". (Sends an email with the specified text title and body to a set of users.]]>
<![CDATA[Users to be sent to are specified as a list of userids, passed in via the toIds parameter.]]>
<![CDATA[<p>]]>
<![CDATA[The number of emails sent is limited by quotas. See the Platform]]>
<![CDATA[<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.)]]>
    </documentation>
    <part name="sendEmails" element="ns4:sendEmails"/>
  </message>
  <message name="MessageApi.sendEmailsResponse">
    <documentation>
      <![CDATA[response message for operation "sendEmails". (Sends an email with the specified text title and body to a set of users.]]>
<![CDATA[Users to be sent to are specified as a list of userids, passed in via the toIds parameter.]]>
<![CDATA[<p>]]>
<![CDATA[The number of emails sent is limited by quotas. See the Platform]]>
<![CDATA[<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.)]]>
    </documentation>
    <part name="sendEmailsResponse" element="ns4:sendEmailsResponse"/>
  </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="MessageApi">
    <documentation>
      <![CDATA[This service enables messaging to the user. Currently the only supported message type is email.]]>
    </documentation>
    <operation name="sendEmails">
      <documentation>
        <![CDATA[Sends an email with the specified text title and body to a set of users.]]>
<![CDATA[Users to be sent to are specified as a list of userids, passed in via the toIds parameter.]]>
<![CDATA[<p>]]>
<![CDATA[The number of emails sent is limited by quotas. See the Platform]]>
<![CDATA[<a href="http://www.hi5networks.com/platform/wiki">Wiki</a> for more information.]]>
      </documentation>
      <input message="ns4:MessageApi.sendEmails"/>
      <output message="ns4:MessageApi.sendEmailsResponse"/>
      <fault name="UnauthorizedException" message="ns4:UnauthorizedException"/>
      <fault name="PermissionDeniedException" message="ns4:PermissionDeniedException"/>
    </operation>
  </portType>
  <binding name="MessageApiSOAPBinding" type="ns4:MessageApi">
    <documentation>
      <![CDATA[SOAP Binding for MessageApi]]>
    </documentation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="sendEmails">
      <soap:operation soapAction="" style="document"/>
      <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="MessageApiService">
    <port name="MessageApiSOAPPort" binding="ns4:MessageApiSOAPBinding">
      <soap:address location="http://api.hi5.com/soap/MessageApiService"/>
    </port>
  </service>
</definitions>
