Protocols/MSNP/Activities/SDK/Techref/Testing/Localxml: Difference between revisions
Animadoria (talk | contribs) (Created page with "{{Protocols/MSNP|section=Activities}} __NOTOC__ = The Local XML File = The file MSGRP2P.xml, once copied to the appropriate location on local file system, will cause MSN® Me...") |
Animadoria (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
Following is an example of the MSGRP2P.xml test file, followed by a description of each of its elements. The test file must be placed in the directory where Messenger is installed. This directory typically is C:\Program Files\MSN Messenger\. | Following is an example of the MSGRP2P.xml test file, followed by a description of each of its elements. The test file must be placed in the directory where Messenger is installed. This directory typically is C:\Program Files\MSN Messenger\. | ||
<pre> | <pre style="white-space: pre-wrap; | ||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
<?xml version="1.0"?> | <?xml version="1.0"?> | ||
<Entry> | <Entry> |
Latest revision as of 00:08, 13 August 2022
The Local XML File
The file MSGRP2P.xml, once copied to the appropriate location on local file system, will cause MSN® Messenger to display an additional menu item called Start (Name), where (Name) is defined by the Name element in the MSGRP2P.xml file. This item is added to the Actions menu of the Messenger Conversation window for MSN Messenger 6.0, 6.1, and 6.2. For MSN Messenger 7.0 (and later), the item will be added to either the Games or Activities menu. (For more information about how this file operates, see Testing Overview.)
You can test only one Activity per computer at a time. Your test application can be signed with any permissions you want. Clicking the Start(Name) menu command launches the test application in the same way an application would be launched from the live Activities menu.
Following is an example of the MSGRP2P.xml test file, followed by a description of each of its elements. The test file must be placed in the directory where Messenger is installed. This directory typically is C:\Program Files\MSN Messenger\.
<?xml version="1.0"?> <Entry> <EntryID>7</EntryID> <Error /> <Locale>en-us</Locale> <Kids>1</Kids> <Page>1</Page> <Category>50</Category> <Sequence>10</Sequence> <Name>Tic Tac Toe</Name> <Description>Come and play the Tic Tac Toe game!</Description> <URL>http://ls_test_server/3t/tictactoe.htm</URL> <IconURL /> <PassportSiteID>0</PassportSiteID> <Type>App</Type> <Height>500</Height> <Width>500</Width> <Location>side</Location> <MinUsers>2</MinUsers> <MaxUsers>2</MaxUsers> <PassportSiteID>0</PassportSiteID> <EnableIP>False</EnableIP> <ActiveX>False</ActiveX> <SendFile>False</SendFile> <SendIM>False</SendIM> <ReceiveIM>False</ReceiveIM> <ReplaceIM>False</ReplaceIM> <Windows>False</Windows> <MaxPacketRate>120</MaxPacketRate> <UserProperties>False</UserProperties> <ClientVersion>6.0</ClientVersion> <AppType>0</AppType> <Hidden>false</Hidden> </Entry>
The elements of this file are described in the following table.
Element | Description |
---|---|
EntryID | Specifies the entry ID. Must be 7 for test programs. |
Error | Indicates a known problem with the application. For testing, leave blank. Note that a closing tag is not required for an empty element. |
Locale | Contains a locale identifier that specifies the region of the application. For example, en-us represents U.S. English. |
Kids | Indicates that the application is suitable for a user with a Microsoft® Kids Passport. Use 1 for yes, 0 for no. |
Page | Indicates how the application will be listed in the Activities menu. If this value is 1, the application is listed on the front page of the directory. If 2, the application is listed after the user clicks More Programs... in the directory. |
Category | Used by Microsoft to specify the category in the MSN Messenger menu under which the application will appear (for example, "Activities"). Use 50 for testing. |
Sequence | Used by Microsoft to determine the placement of the application within the MSN Messenger menu category. Use 10 for testing. |
Name | Installs the name of the application in the MSN Messenger menu, under the Actions menu. |
Description | Contains a description of the application. |
URL-int, URL-ppe | Reserved. Used by Microsoft to set up the application in an internal testing environment. |
URL-production | Specifies the address where the application is hosted in the production (or "live") environment. The address must be specified using HTTP format. |
IconURL-int, IconURL-ppe | Reserved. Used by Microsoft to set up the application in an internal testing environment. |
IconURL-production | Specifies the Web address from which the icon for the application can be loaded. Optional. |
PassportSiteID-int, PassportSiteID-ppe | Reserved. Used by Microsoft to set up the application in an internal testing environment. |
PassportSiteID-production | Specifies a number that identifies the credentials that allow a server to authenticate users using Microsoft .NET Passport services in the Production environment. Use 0 if the PassportSiteID permission flag is not used. |
Type | Specifies the type of application (either app or dir). For applications, use app. For games, use dir. |
Height | Specifies the requested height. The Messenger client will try to accommodate this height request by resizing the window. If the height cannot be accommodated by resizing, the application will be given the maximum height available (500 pixels) without distorting the chat function. |
Width | Specifies the requested width. The Messenger client will try to accommodate this width request by resizing the window. If the width cannot be accommodated by resizing, the application will be given the maximum width available (500 pixels) without distorting the chat function. |
Location | Indicates the requested location (side or bottom). At this time, only one Activity can be run at a time, and it is displayed on the side of the Conversation window. |
MinUsers | Specifies the minimum number of players required by the application. For a single player, use 1. For multiple players, use 2. |
MaxUsers | Specifies the maximum number of players allowed for the application. For a single player, use 1. For multiple players, use 2. |
PassportSiteID | Indicates whether Microsoft .NET Passport authentication is required. If authentication is required, use 1; otherwise, use 0. |
UserProperties | Indicates (True or False) whether the application can access user properties such as Friendly Name. If True, the application can access user properties. |
EnableIP | Indicates (True or False) whether the application has access to IP information. If True, the application has access to IP information. |
ActiveX | Indicates (True or False) whether the application can host ActiveX® controls. If True, the application can host controls. |
SendFile | Indicates (True or False) whether the application can send a file to the remote application. If True, the application can send a file. |
SendIM | Indicates (True or False) whether the application can send instant messages that appear to come from the application. If True, the application can send such messages. |
SendIMAsUser | Indicates (True or False) whether the application can send instant messages that appear to come from the user. If True, the application can send such messages. |
ReceiveIM | Indicates (True or False) whether the application can access incoming instant messages. If True, the application can access such messages. |
ReplaceIM | Indicates (True or False) whether the application can intercept and change incoming instant messages. If True, the application can intercept and change such messages. |
MaxPacketRate | Reserved. Specifies the maximum data transfer rate during an indirect connection. The default value is 120. |
Windows | Indicates (True or False) whether the application can launch new browser windows. If True, the application can launch new windows. |
ClientVersion | Specifies which version of MSN Messenger the application is designed for. Choices are 6, 7, or higher values (required for MSN Messenger 6, 7, or later versions) if the application is specifically designed for a particular version of the MSN Messenger application. If the application does not require a specific version of the MSN Messenger client, provide no value. |
AppType | Indicates whether the application type is an application or a game. To display the application in the games menu, use 1; otherwise, use 0. |
Hidden | Indicates (True or False) whether the application is visible to the user. If True, the application is invisible to the user. |
Certain characters have special meaning in XML and must be encoded to appear in an XML tag.
The following table lists special characters that must be represented by an XML-encoded entity reference.
Character | Entity Reference |
---|---|
& | & |
' | ' |
" | " |
< | < |
> | > |