diff --git a/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceGroupController.java b/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceGroupController.java index 8afcdefa7cc4206da0637fdaed0895ff2cecf9cb..69ec28997552a5e33df822c7394f456f4602d43d 100644 --- a/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceGroupController.java +++ b/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceGroupController.java @@ -41,7 +41,6 @@ import java.util.List; import static eu.europa.ec.smp.api.Identifiers.asString; import static org.apache.commons.lang3.StringUtils.isNotBlank; -import static org.springframework.http.MediaType.TEXT_XML_VALUE; import static org.springframework.http.ResponseEntity.created; import static org.springframework.http.ResponseEntity.ok; @@ -76,7 +75,7 @@ public class ServiceGroupController { private BaseServiceMetadataInterfaceImpl serviceMetadataService; - @GetMapping(produces = TEXT_XML_VALUE) + @GetMapping(produces = "text/xml; charset=UTF-8") public ServiceGroup getServiceGroup(@PathVariable String serviceGroupId) { log.info("GET ServiceGrooup: {}", serviceGroupId); diff --git a/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceMetadataController.java b/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceMetadataController.java index d18abac267b4eb34035d70aa02553e9568e4f763..0c989655a5f4c1bcab5d7f2be2760671cb399cbf 100644 --- a/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceMetadataController.java +++ b/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/controllers/ServiceMetadataController.java @@ -33,7 +33,6 @@ import java.io.UnsupportedEncodingException; import static eu.europa.ec.smp.api.Identifiers.asDocumentId; import static eu.europa.ec.smp.api.Identifiers.asParticipantId; -import static org.springframework.http.MediaType.TEXT_XML_VALUE; import static org.springframework.http.ResponseEntity.created; import static org.springframework.http.ResponseEntity.ok; @@ -59,7 +58,7 @@ public class ServiceMetadataController { @Autowired private ServiceMetadataPathBuilder pathBuilder; - @GetMapping(produces = TEXT_XML_VALUE) + @GetMapping(produces = "text/xml; charset=UTF-8") public String getServiceMetadata(@PathVariable String serviceGroupId, @PathVariable String serviceMetadataId) throws TransformerException, UnsupportedEncodingException {