Export (0) Print
Expand All

os:openServiceDescription Element

Root element of the OpenService Accelerator file.

Syntax

<os:openServiceDescription
    xmlns:os = "sNamespace">
<!-- child elements -->
</os:openServiceDescription>

Attributes

xmlns:os
Required. The Uniform Resource Name (URN) that uniquely identifies the namespace. Must be the following:
http://www.microsoft.com/schemas/openservicedescription/1.0The OpenService Accelerator schema.

Element Information

Child elements
Must occur exactly once os:display, os:homepageUrl, os:activity
Minimum availability Internet Explorer 8
Minimum operating systems Windows XP SP2

Example

The following OpenService Accelerator file describes an email service. The Accelerator is available in both document and selection contexts.


<?xml version="1.0" encoding="utf-8"?>
<openServiceDescription
    xmlns="http://www.microsoft.com/schemas/openservicedescription/1.0">
  <homepageUrl>http://mail.example.com</homepageUrl>
  <display>
    <name>Send with MyMail</name>
    <icon>http://www.example.com/favicon.ico</icon>
  </display>
  <action category="send">
    <activityAction context="document">
      <execute method="get" action="https://mail.example.com/mail">
        <parameter name="subject" value="{documentTitle}" />
        <parameter name="body" value="{documentUrl}" />
      </execute>
    </activityAction>
    <activityAction context="selection">
      <execute method="get" action="https://mail.example.com/mail">
        <parameter name="subject" value="{documentTitle}" />
        <parameter name="body" value="{selection}" />
      </execute>
    </activityAction>
  </activity>
</serviceDescription>  

See Also

Community Additions

ADD
Show:
© 2014 Microsoft