GetAllowedFiles Functions
The GetAllowedFiles and GetAllowedFilesSession functions return a list of the Projects or files in a Project to which the user has access. These two functions differ only in respect to parameters for login. For more information, see Login Parameters.
Syntax
The following is the syntax for an HTTP request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/GetAllowedFiles HTTP/1.1
Host: HostName
Content-Type: application/x-www-form-urlencoded
Content-Length: length

UserName=string&Password=string&GroupName=string&ProjectName=string
Parameters
In addition to login parameters, both the GetAllowedFiles and GetAllowedFilesSession functions use this parameter:
ProjectName—The name of the Windchill Risk and Reliability Project. This value is case-sensitive. If a Project name is specified, the list of Project files to which the user has access is returned. If no Project name is specified, the list of Projects to which the user has access is returned.
The following is an example of an HTTP POST request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/GetAllowedFiles HTTP/1.1
Host: vm-test
Content-Type: application/x-www-form-urlencoded
Content-Length: length
UserName=Bill&Password=passwd&GroupName=Manager&ProjectName=Tablet PC
Returns
If the user is authenticated and the Project is found, a list of files available to this user is returned. The list includes the following file types: System, List Library, FRACAS Lookup Table, Report Design, and Graph Template.
<?xml version="1.0" encoding="utf-8"?>
<DataEngineFileListResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ptc.com/WindchillRiskandReliability/12.0/">
<Success>true</Success>
<AllowedFiles>
<Files Type="System">
<FileNames>
<string>Tablet PC</string>
</FileNames>
</Files>
<Files Type="List Library">
<FileNames>
<string>List Library</string>
</FileNames>
</Files>
<Files Type="FRACAS Lookup Table">
<FileNames>
<string>FRACAS Lookup Table 1</string>
<string>FRACAS Lookup Table 2</string>
<string>FRACAS Lookup Table 3</string>
</FileNames>
</Files>
<Files Type="Report Design">
<FileNames>
<string>(Common) FMEA AIAG-4 Design</string>
<string>(Common) FMEA AIAG-4 Process</string>
<string>(Common) FMEA Control Plan</string>
<string>(Common) FMEA DVP</string>
<string>(Common) FMEA MIL-STD-1629 Task 101</string>
<string>(Common) FMEA MIL-STD-1629 Task 102</string>
<string>(Common) FRACAS Failure Modes Summary</string>
<string>(Common) FRACAS Incident Report</string>
<string>(Common) FRACAS Incidents by Part Number</string>
<string>(Common) FRACAS Incidents by Problem</string>
<string>(Common) FMEA Standard Design</string>
<string>(Common) FMEA Standard Process</string>
<string>(Common) FTA (Summary)</string
<string>(Common) FTA ARP4761 (Summary)</string>
<string>(Common) FTA ARP4761 Cut Sets</string>
<string>(Common) FTA ARP4761 Gates-Evemts</string>
<string>(Common) FTA ARP4761 Importance Measures</string>
<string>(Common) FTA ARP4761 Overview</string>
<string>(Common) FTA Calculation Results</string>
<string>(Common) FTA Cut Sets</string>
<string>(Common) FTA Diagram</string>
<string>(Common) FTA Gates-Events</string>
<string>(Common) FTA Importance Measures</string>
<string>(Common) FTA Overview</string>
</FileNames>
</Files>
<Files Type="Graph Template">
<FileNames>
<string>(Common) FMEA Initial Risk Matrix</string>
<string>(Common) FMEA Risk Level Distribution</string>
<string>(Common) FMEA Severity Distribution</string>
<string>(Common) FMEA Top 10 Failure Mode Causes</string>
<string>(Common) FMEA Top 10 Mode Criticalities</string>
<string>(Common) FMEA Top 10 RPN</string>
<string>(Common) FRACAS Incident Status</string>
<string>(Common) FRACAS Incidents Over Time</string>
<string>(Common) FRACAS Incidents by Severity</string>
<string>(Common) FRACAS Incidents per Part Number</string>
<string>(Common) FTA Unavailability v Time</string>
<string>(Common) FTA Unreliability v Time</string>
</FileNames>
</Files>
</AllowedFiles>
</DataEngineFileListResponse>
If no ProjectName is specified, then a list of Projects to which the user has access is returned.
<?xml version="1.0" encoding="utf-8"?>
<DataEngineFileListResponse
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://tempuri.org/">
<Success>true</Success>
<AllowedFiles>
<Files Type="Project">
<FileNames>
<string>Tablet PC<string>
</FileNames>
</Files>
</AllowedFiles>
</DataEngineFileListResponse>
If the call fails, the AdditionalData tag provides the reason for the failure.