<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:schema>
  </types>
  <message name="WidgetApi.updateEditableWidget">
    <documentation>
      <![CDATA[Input message for operation "updateEditableWidget". (Note: This functionality pre-dates OpenSocial. It should only be used]]>
<![CDATA[by existing Widget Providers.]]>
<![CDATA[Add or update a widget defined by <tt>code</tt> to the profile of the user defined by <tt>authToken</tt>.]]>
<![CDATA[If a widgetId is specified than the widget is updated, otherwise it is just added.)]]>
    </documentation>
    <part name="code" type="xs:string">
      <documentation>
        <![CDATA[the code for the actual widget]]>
      </documentation>
    </part>
    <part name="editUrl" type="xs:string">
      <documentation>
        <![CDATA[the url to goto to edit this Widget. This is optional.]]>
      </documentation>
    </part>
    <part name="id" type="xs:int">
      <documentation>
        <![CDATA[the id of the Widget that is to be updated. If this is specified, the Widget be updated, otherwise the Widget will be added. This is optional.]]>
      </documentation>
    </part>
  </message>
  <message name="WidgetApi.updateEditableWidgetResponse">
    <documentation>
      <![CDATA[Output message for operation "updateEditableWidget". (Note: This functionality pre-dates OpenSocial. It should only be used]]>
<![CDATA[by existing Widget Providers.]]>
<![CDATA[Add or update a widget defined by <tt>code</tt> to the profile of the user defined by <tt>authToken</tt>.]]>
<![CDATA[If a widgetId is specified than the widget is updated, otherwise it is just added.)]]>
    </documentation>
    <part name="return" type="hi5:hi5SuccessMessage">
      <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>
  <message name="WidgetApi.getRemoteWidget">
    <documentation>
      <![CDATA[Input message for operation "getRemoteWidget". (Note: This functionality pre-dates OpenSocial. It should only be used]]>
<![CDATA[by existing Widget Providers.]]>
<![CDATA[Note: Widget Providers - this method is deprecated and will soon be deleted]]>
<![CDATA[Redirects to a page. Currently only for internal use.)]]>
    </documentation>
    <part name="url" type="xs:string">
      <documentation>
        <![CDATA[the target url]]>
      </documentation>
    </part>
    <part name="str" type="xs:string">
      <documentation>
        <![CDATA[encrypted text]]>
      </documentation>
    </part>
  </message>
  <message name="WidgetApi.getRemoteWidgetResponse">
    <documentation>
      <![CDATA[Output message for operation "getRemoteWidget". (Note: This functionality pre-dates OpenSocial. It should only be used]]>
<![CDATA[by existing Widget Providers.]]>
<![CDATA[Note: Widget Providers - this method is deprecated and will soon be deleted]]>
<![CDATA[Redirects to a page. Currently only for internal use.)]]>
    </documentation>
  </message>
  <portType name="WidgetApi">
    <documentation>
      <![CDATA[Note: This service and functionality pre-dates OpenSocial. It should only be used]]>
<![CDATA[by existing Widget Providers.]]>
<![CDATA[Services all requests for adding, updating and retrieving widgets.]]>
    </documentation>
    <operation name="updateEditableWidget">
      <documentation>
        <![CDATA[Note: This functionality pre-dates OpenSocial. It should only be used]]>
<![CDATA[by existing Widget Providers.]]>
<![CDATA[Add or update a widget defined by <tt>code</]]>
<![CDATA[tt> to the profile of the user defined by <tt>authToken</tt>.]]>
<![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[Note: This functionality pre-dates OpenSocial. It should only be used]]>
<![CDATA[by existing Widget Providers.]]>
<![CDATA[Note: Widget Providers - this method is deprecated and will soon be deleted]]>
<![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="rpc"/>
    <operation name="updateEditableWidget">
      <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>
    <operation name="getRemoteWidget">
      <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="WidgetApiService">
    <port name="WidgetApiSOAPPort" binding="hi5widget:WidgetApiSOAPBinding">
      <soap:address location="http://api.hi5.com/soap/WidgetApiService"/>
    </port>
  </service>
</definitions>
