Method | /testsite/Services/Gateway.asmx/AddDocumentToRequest |
Sertifi API Web Service > All Operations Resource Group : /testsite/Services/Gateway.asmx/AddDocumentToRequest (Method) |
The request body is of type AddDocumentToRequest.
Name | Description | Data Type |
---|---|---|
pstr_APICode | The API code of the site. This can be found through your Sertifi web interface under Administration -> Account Settings. | (undefined) |
pstr_FileID | The ID of the file you want to add the document to. | xml:string |
pbyt_File | The document you wish to add to the file. | xml:base64Binary |
pstr_FileName | The uploaded file's name. | xml:string |
pstr_Title | The name you'd like the document to have in the file. | xml:string |
pstr_Xml | Prefill data in XML format. | xml:string |
The response body is of type AddDocumentToRequestResponse.
Name | Description | Data Type |
---|---|---|
AddDocumentToRequestResult | Returns "SUCESS" or an error message. | xml:string |
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<AddDocumentToRequest xmlns="http://apps.sertifi.net/services/">
<pstr_APICode>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</pstr_APICode>
<pstr_Xml><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<record>
<field Name="Requisition_PositionTitle" Text="Dave Test Sertifi Old"/>
<field Name="Requisition_HiringStartDate" Text=""/>
<field Name="Requisition_EndDate" Text=""/>
<field Name="Requisition_HiringManager" Text=""/>
<field Name="Requisition_Recruiter" Text="Administrator Luceo"/>
<field Name="Requisition_EmploymentType" Text=""/>
<field Name="Requisition_CompensationBase" Text=""/>
<field Name="Requisition_CompensationBonus" Text=""/>
<field Name="Candidate_LastName" Text="LUISSINT"/>
<field Name="Candidate_FirstName" Text="DIDIER"/>
<field Name="Candidate_PreferredName" Text=""/>
<field Name="Candidate_AddressLine1" Text="10, Place André Malraux"/>
<field Name="Candidate_AddressLine2" Text=""/>
<field Name="Candidate_City" Text="VILLENEUVE-LA-GARENNE"/>
<field Name="Candidate_State" Text=""/>
<field Name="Candidate_Zip" Text="92390"/>
<field Name="Candidate_Email" Text="cand[email protected]"/>
<field Name="Candidate_HomePhone" Text="01.47.92.08.00"/>
<field Name="Candidate_MobilePhone" Text="06.18.55.52.20"/>
</record>]]>
</pstr_Xml>
<pstr_Title>sertif test molly 2.pdf</pstr_Title>
<pstr_FileName>560.pdf</pstr_FileName>
<pstr_FileID>DTGmsF0C+Sg=</pstr_FileID>
<pbyt_File>JVBERi[...This is a very long string which represents a base64 encoded pdf document...]I0NzQNCiUlRU9GDQo=</pbyt_File>
</AddDocumentToRequest>
</soap12:Body>
</soap12:Envelope>
Common Error messages include:
"ERROR: Invalid API Code"
"ERROR: Title cannot be empty or null"
"ERROR: Title cannot be exceed 100 characters"
"ERROR: You are attempting to upload a null referenced byte array" "ERROR: You are attempting to upload a zero-length file" "ERROR: pstr_FileName parameter is an invalid." "ERROR: pstr_FileName parameter cannot exceed length of 100 characters." "ERROR: pstr_FileName parameter is an invalid."
"ERROR: File could not be accessed"
"ERROR: Room Expired"
"ERROR: Not enough licenses available to upload this document"