Code: Select all
$VAR1 = {
'Article' => {
'ArticleTypeID' => '5',
'Body' => 'Test via webservice',
'ContentType' => 'text/plain; charset=utf8',
'From' => 'test@gmail.com',
'SenderType' => '1',
'SenderTypeID' => '3',
'Subject' => 'Test via webservice'
},
'Attachment' => {
'Content' => 'cid:1366243570384',
'ContentType' => 'text/plain',
'Filename' => 'TestWebservice.txt'
},
'Password' => 'test',
'Ticket' => {
'CustomerID' => 'test@gmail.com',
'CustomerUser' => 'testcustomer',
'PriorityID' => '1',
'Queue' => 'Junk',
'QueueID' => '3',
'StateID' => '1',
'Title' => 'Test via webservice',
'TypeID' => '1'
},
'UserLogin' => 'test'
};
Below is the error
Code: Select all
$VAR1 = {
'Error' => {
'ErrorCode' => 'TicketCreate.InvalidParameter',
'ErrorMessage' => 'TicketCreate: Attahcment->ContentType is invalid!'
}
};