Below is an example of how the values of the ticket is added (Android Java side).
Code: Select all
request.addProperty("UserLogin", soapUsername);
request.addProperty("Password", soapPass);
Hashtable<String, String> ticket = new Hashtable<String, String>();
ticket.put("Title", subject);
ticket.put("CustomerUser", email);
ticket.put("CustomerID", "soapwebnologin");
ticket.put("QueueID", "3");
ticket.put("State", "open");
ticket.put("PriorityID", "1");
ticket.put("Lock", "unlock");
ticket.put("OwnerID", "2");
request.addProperty("Ticket", ticket);
Hashtable<String, String> article = new Hashtable<String, String>();
article.put("Subject", subject);
article.put("Body", complaint);
article.put("ContentType", "text/plain; charset=utf8");
request.addProperty("Article", article);
Code: Select all
Hashtable<String, String> ticketDynamicField = new Hashtable<String, String>();
ticketDynamicField.put("DynamicField_TelephoneNumber", telnum);
request.addProperty("DynamicFieldObject", ticketDynamicField);