<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://api.hi5.com/widget" xmlns:hi5widget="http://api.hi5.com/widget" 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/widget">
      <xs:import namespace="http://api.hi5.com/" schemaLocation="hi5.xsd"/>
      <xs:element name="getRemoteWidget">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit request wrapper for operation "getRemoteWidget". (Redirects to a page. Currently only for internal use.)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="url" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[the target url]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="str" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[encrypted text]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="getRemoteWidgetResponse">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit response wrapper for operation "getRemoteWidget". (Redirects to a page. Currently only for internal use.)]]>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="updateEditableWidget">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit request wrapper for operation "updateEditableWidget". (Add or update a widget defined by <code>code</code> to the profile of the user defined by <code>authToken</code>.]]>
<![CDATA[If a widgetId is specified than the widget is updated, otherwise it is just added.)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="code" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[the code for the actual widget]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="editUrl" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[the url to goto to edit this Widget. This is optional.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="id" type="xs:int" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[the id of the Widget that is to be updated. If this is specified, the Widget be updated, otherwise]]>
<![CDATA[the Widget will be added. This is optional.]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="updateEditableWidgetResponse">
        <xs:annotation>
          <xs:documentation>
            <![CDATA[doc/lit response wrapper for operation "updateEditableWidget". (Add or update a widget defined by <code>code</code> to the profile of the user defined by <code>authToken</code>.]]>
<![CDATA[If a widgetId is specified than the widget is updated, otherwise it is just added.)]]>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="return" type="hi5:hi5SuccessMessage" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>
                  <![CDATA[<code>&lt;pass/&gt;</code> if the widget is successfully embedded]]>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
  </types>
  <message name="WidgetApi.updateEditableWidget">
    <documentation>
      <![CDATA[request message for operation "updateEditableWidget". (Add or update a widget defined by <code>code</code> to the profile of the user defined by <code>authToken</code>.]]>
<![CDATA[If a widgetId is specified than the widget is updated, otherwise it is just added.)]]>
    </documentation>
    <part name="updateEditableWidget" element="hi5widget:updateEditableWidget"/>
  </message>
  <message name="WidgetApi.updateEditableWidgetResponse">
    <documentation>
      <![CDATA[response message for operation "updateEditableWidget". (Add or update a widget defined by <c]]>
<![CDATA[ode>code</code> to the profile of the user defined by <code>authToken</code>.]]>
<![CDATA[If a widgetId is specified than the widget is updated, otherwise it is just added.)]]>
    </documentation>
    <part name="updateEditableWidgetResponse" element="hi5widget:updateEditableWidgetResponse"/>
  </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>
  <message name="WidgetApi.getRemoteWidget">
    <documentation>
      <![CDATA[request message for operation "getRemoteWidget". (Redirects to a page. Currently only for internal use.)]]>
    </documentation>
    <part name="getRemoteWidget" element="hi5widget:getRemoteWidget"/>
  </message>
  <message name="WidgetApi.getRemoteWidgetResponse">
    <documentation>
      <![CDATA[response message for operation "getRemoteWidget". (Redirects to a page. Currently only for internal use.)]]>
    </documentation>
    <part name="getRemoteWidgetResponse" element="hi5widget:getRemoteWidgetResponse"/>
  </message>
  <portType name="WidgetApi">
    <documentation>
      <![CDATA[Services all requests for adding, updating and retrieving widgets.]]>
    </documentation>
    <operation name="updateEditableWidget">
      <documentation>
        <![CDATA[Add or update a widget defined by <code>code</code> to the profile of the user defined by <code>authToken</code>.]]>
<![CDATA[If a widgetId is specified than the widget is updated, otherwise it is just added.]]>
      </documentation>
      <input message="hi5widget:WidgetApi.updateEditableWidget"/>
      <output message="hi5widget:WidgetApi.updateEditableWidgetResponse"/>
      <fault name="UnauthorizedException" message="hi5widget:UnauthorizedException"/>
      <fault name="PermissionDeniedException" message="hi5widget:PermissionDeniedException"/>
    </operation>
    <operation name="getRemoteWidget">
      <documentation>
        <![CDATA[Redirects to a page. Currently only for internal use.]]>
      </documentation>
      <input message="hi5widget:WidgetApi.getRemoteWidget"/>
      <output message="hi5widget:WidgetApi.getRemoteWidgetResponse"/>
      <fault name="UnauthorizedException" message="hi5widget:UnauthorizedException"/>
      <fault name="PermissionDeniedException" message="hi5widget:PermissionDeniedException"/>
    </operation>
  </portType>
  <binding name="WidgetApiSOAPBinding" type="hi5widget:WidgetApi">
    <documentation>
      <![CDATA[SOAP Binding for WidgetApi]]>
    </documentation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="updateEditableWidget">
      <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>
    <operation name="getRemoteWidget">
      <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="WidgetApiService">
    <port name="WidgetApiSOAPPort" binding="hi5widget:WidgetApiSOAPBinding">
      <soap:address location="http://api.hi5.com/soap/WidgetApiService"/>
    </port>
  </service>
</definitions>
