Platform SDK: Team Productivity Update

Setting the XML Team Application Values

A Team Workspace application's Instantiation URL returns an XML stream to the Team Productivity Update. This XML stream specifies URLs that support each of the interfaces that define the Team Productivity Update team capabilities: Launch, Summary, Search, Offline, and Delete. The Instantiation URL returns URLs only for the interfaces the application actually supports. At this time, the Expense Report application supports only Launch.

The Instantiation URL sets the Team Application values in script. It concatenates the values held in WebServerName and WebVirtualDirectoryName into an HTTP address. Since the Expense Report application supports only the LaunchURL interface, it sets all of the Team Application interfaces to this value, with the exception of DeleteURL.

' Set the XML TeamApp values
LaunchURL = "http://" & WebServerName & "/" &  WebVirtualDirectoryName
SummaryURL = LaunchURL & "/summary.asp" 
SearchAppURL = LaunchURL & "/checkStatus.asp" 
DeleteURL = "http://" & WebServerName & "/" & SourceName & "/urlDelete.asp?GUIDSessionID=" & GUIDSessionID
OfflineURL = ""    ' N/A

Then the Instantiation URL packages the Team Application values so that they can be returned to the Team Productivity Update as an XML stream.

' Set the XML Return values
ResultCode = 0
ResultDescription = "Instance was created successfully."

%>
<?xml version="1.0"?>
<TeamApp>
<URLs>
    <Launch><%= LaunchURL %></Launch>
    <Summary><%= SummaryURL %></Summary>
    <Search><%= SearchAppURL %></Search>
    <Offline><%= OfflineURL %></Offline >
    <Delete><%= DeleteURL %></Delete >
</URLs>
<Result>
    <Code><%= ResultCode %></Code>
    <Description><%= ResultDescription %></Description>
</Result>
</TeamApp>

At this time, the XML also returns result codes to indicate the successful instantiation of the application or the error that occurred. For more information, see XML Result Codes.