OVERVIEW
This Web Service helps to insert attachments to FTP
Input:
Web service URL: https://xxxxxx.orcanos.com/xxxxx/qpackserv/qpackserv.asmx?op=Add_Attachment
Add an attachment to a work item
Parameter |
Value |
Is Mandatory? |
Description |
User_Name | String | Yes | Enter valid User Name |
User_Password | String | Yes | Enter valid Password |
Object_ID | Int | Yes | Item/defect ID |
Object_Type | String | No | OBJECT/DEFECT. The default value is OBJECT
Please note: Use capital letters |
Attachment_Name | String | Yes | Filename and extension such as “orcanos.jpg” File extension are mandatory. |
Attachment_Type | String | Yes | FILE. The default value is File. |
Attachment64 | String64 Encode | Yes | Attachments in 64 encode. Mandatory if attachment type is File. |
Attachment_Description | String | No | Attachment description |
Created_By | String | No | The user that adds the attachment. Default is the input User_Name |
Created_Date | String | No | Date format: DD/MM/YYYY Default value is Now |
Over_Write | String | No | Yes/ No Default value is Yes |
Attach_Size | Int | Yes | Enter size like 1,2 etc |
KeepOldname | String | No | Enter Yes/no if wants to keep the old name or not |
Output:
When invoke the Web Service, it will return results in the below format if details are correct:
<fmea>XML Data</fmea>
Newly added attachment file id with name and URL will display here.
For Example:
<string xmlns="http://orcanos.com/"> <Attachment ID="3732" Name="qpack.jpg" url="https://xxxx.orcanos.com//testcloudFTP/PROJECT_48159/OBJECT_48204_qpack.jpg"/> </string>
And, if details are wrong then, it will give an error message:
<Error>
<ErroStatus></ErrorStatus>
</Error>
For Example:
<Error>
<ErrorStatus>0</ErrorStatus>
<ErrorInfo>Email / User Name or password are incorrect </ErrorInfo>
<ErrorTrace>Add_Attachment</ErrorTrace>
</Error>