- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2015 06:41 AM
The parameters have been checked and re-checked at let 20 times, and tested with the apostrophe and without, as well as the Quote marks. But they are the same as the preview script data from the REST setup page as well.
Without the apostrophe and quote marks the error is diferrent error.
{"result":false,"description":"Could not read JSON: Unrecognized token 'Tomcat': was expecting ('true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@8775e8a; line: 1, column: 24]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Tomcat': was expecting ('true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@8775e8a; line: 1, column: 24]"}
Essentially it appears that when removing the apostrophe or quote marks it does not get the formatted data as expected. The service I am sending this to expects the quotes around the data as part of the string sent, and by removing one or the other it does not see these. it is passed as a string without the quotes in the data.
With the apostrophe and quote marks then I get the first error above.
Hope this clarifies it a little. I need to pass a string including quotes as such: "Tomcat Generic" to the receiving system. It expects a value that is in quotes so I need to pass the string to look as it is here.
Thanks to all who have attempted to help so far and those brave souls who will continue!