Basically, you could create an HTTP Request (with POST method) the xml file onto
https://servername:port/agenapi (the xml must be encoded with UTF-

.
The xml file should look like this:
* Category, subCategory, title, description and status are mandatory fields. You must specify them in every request.
* If you specify the ID, it would update and existing SR. For new service request, please don't specify the ID (remove the ID tag entirely from the XML).
* thirdLevelCategory, urgency, uniqueFlag and additionalFields are optional.
* The uniqueFlag is default false. If you set it to true the system tries to find if there's already a similar service request in the system (by several parameters). In case it finds it, it would update that service request. If not, it would create a new service request.
* The values you should for each field is specified below.
status: integer
urgency: integer
id: integer
status: integer
description: text, unlimited
title: text, 255 characters
category: text, 64 characters
sub category: text, 64 characters
third level category: text, 64 characters
* additionalFields needs to be entered in the following format:
FIELD-NAME####FIELD-VALUE!!!!FIELD-NAME####FIELD-VALUE!!!!FIELD-NAME####FIELD-VALUE
(four pound signs separate between the field name and the field value, four exclamation marks separate between the several additional field you wish to add).
The FIELD-NAME should be replaced with any of the following (expected data type and maximum size is specified in brackets):
submitUser (text, 64 characters)
cc (text, 255 characters)
ci (text, 64 characters)
fullName (text, 255 characters)
requestUser (text, 64 characters)
assignedTo (text, 64 characters)
assignedGroup (text, 64 characters)
updateUser (text, 64 characters)
notes (text, 4000 characters)
solution (text, 4000 characters)
resolution (text, 4000 characters)
dueDate (timestamp: YYYY-MM-DD HH:MM:SS)
followupPlannedDate (timestamp: YYYY-MM-DD HH:MM:SS)
followupActualDate (timestamp: YYYY-MM-DD HH:MM:SS)
knowledgeBase (integer)
location (integer)
priority (integer)
escalation (integer)
custList1 (integer)
custList2 (integer)
custInt1 (integer)
custInt2 (integer)
custDate1 (timestamp: YYYY-MM-DD HH:MM:SS)
custDate2 (timestamp: YYYY-MM-DD HH:MM:SS)
custText1 (text, 255 characters)
custText2 (text, 255 characters)
custNotes (text, 4000 characters)
followupText (text, 4000 characters)
followupUser (text, 64 characters)