{ "id": "133711", "key": "AC-1239", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2014-08-04T05:45:07.000+0000", "created": "2014-07-25T10:59:04.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:37.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Hi,\r\n\r\ni have build the web service which is returning me the Json String.\r\nI am passing 3 params...which is simple. No XML and no Json string for now.\r\n\r\nBelow is the code that i am requesting: \r\n\r\nfunction doClick(e){\r\n Titanium.API.info(\"You clicked the button\");\r\n xhr.open('POST','http://192.168.60.31:8080/SearchContactProcessor/SearchContactProcessorPort?wsdl');\r\nxhr.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\");\r\nxhr.send({\r\n searchType:'CON',\r\n searchString:'Ros',\r\n addStr:''\r\n \r\n});\r\n};\r\n\r\nAbove code giving me below error :\r\n (TiHttpClient-1) [700,40331] HTTP Error (org.apache.http.client.HttpResponseException): Unsupported Media Type\r\n\r\ni have changed the content type to (text/xml) :\r\nxhr.setRequestHeader(\"Content-Type\",\"text/xml\");\r\n\r\nI got below error: \r\nfrom titanium\r\n-----------------\r\n(TiHttpClient-1) [645,31890] HTTP Error (org.apache.http.client.HttpResponseException): Internal Server Error\r\n\r\nfrom webservice\r\n---------------------\r\nInternal server is : \r\nCaused by: com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]\r\n\r\n\r\n\r\n\r\nPlease help me on this.\r\nI am stuck since two days on this.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Connecting to soap web service- Urgent!!!", "creator": { "name": "dhaval", "key": "dhaval", "displayName": "Dhaval Shah", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "dhaval", "key": "dhaval", "displayName": "Dhaval Shah", "active": true, "timeZone": "Asia/Kolkata" }, "environment": null, "comment": { "comments": [ { "id": "316757", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello!\r\n\r\nThe best way to test this is make sure that your webservice is working properly. Please get an extension of your favorite browser that allows you to run the webservice testing. \r\n\r\nOnce you make sure the webservice is working, please print with Ti.API.info the response, and let's work from there. \r\n\r\nIt's strange in your report you mention SOAP (which is XML by nature - http://stackoverflow.com/questions/9140299/why-not-soap-with-json) and later you mention JSON. Please you have to decide: either you are using SOAP (XML) or JSON. \r\n\r\nBest Regards!", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-03T06:12:38.000+0000", "updated": "2014-08-03T06:12:38.000+0000" }, { "id": "316788", "author": { "name": "dhaval", "key": "dhaval", "displayName": "Dhaval Shah", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Mauro,\r\n\r\nthanks it is resolved now.I have Passed request xml in sent and convert response in json.\r\nYou can close the call now.", "updateAuthor": { "name": "dhaval", "key": "dhaval", "displayName": "Dhaval Shah", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-08-04T05:38:21.000+0000", "updated": "2014-08-04T05:38:21.000+0000" }, { "id": "316790", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Closed per last customer's comment. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-04T05:45:08.000+0000", "updated": "2014-08-04T05:45:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }