Uploading a BIRT design
The following request uploads version 2 of a BIRT design file to the target volume specified in the SOAP header. The request keeps a maximum of six versions of the file in the Encyclopedia volume. BIRT iHub does not overwrite existing versions that have the same name as this file. If there are older versions of this file in the Encyclopedia volume, BIRT iHub copies three properties from the latest of those older versions to the new version.
<SOAP-ENV:Header>
<TargetVolume>SeventySix</TargetVolume>
<AuthId>g4yxAKHFJg9FY0JssYijJI5X=</AuthId>
<Locale>en_US</Locale>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UploadFile>
<NewFile>
<Name>/Arizona/Phoenix_Q2.rptdesign;2</Name>
<ReplaceExisting>false</ReplaceExisting>
<MaxVersions>6</MaxVersions>
</NewFile>
<CopyFromLatestVersion>
<String>Permissions</String>
<String>Description</String>
<String>ArchiveRules</String>
</CopyFromLatestVersion>
<Content>
<ContentId>PQ2.rptdesign</ContentId>
<ContentType>application/octet-stream</ContentType>
<ContentLength>4189760</ContentLength>
<ContentEncoding>utf-8</ContentEncoding>
</Content>
</UploadFile>
</SOAP-ENV:Body>
The preceding request returns the FileId as a string when the request succeeds, as shown in the following example. If a request fails, an error message appears.
<SOAP-ENV:Body>
<UploadFileResponse>
<FileId>951</FileId>
</UploadFileResponse>
</SOAP-ENV:Body>