Hy,just to reopen the discussion.How can I define the content-type in a Java-Rest-SOE?I have this method: public byte[] handleRESTRequest(String capabilities, String resourceName, String operationName, String operationInput, String outputFormat, String requestProperties, String[] responseProperties) throws IOException {
So the "responseProperties" is an array of String.In the last post, this should solve the problem:Map<String,String> responsePropertiesMap = new HashMap<String, String>();responsePropertiesMap.put("Content-Type", "text/xml");
How can I return the "responsePropertiesMap" in your example?Something like this doesn't work: responseProperties[0]=responsePropertiesMap:Just found it now:This is a solution I got it working:
JSONObject contentType = new JSONObject();
contentType.put("Content-Type", "text/xml");
responseProperties[0] = contentType.toString();
Tom