Skip to content

Commit

Permalink
Lagt til kommentar med Dolly i XML-request
Browse files Browse the repository at this point in the history
#deploy-tps-messaging-service
  • Loading branch information
krharum committed Apr 24, 2024
1 parent 0fa7790 commit 6b89279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ private TpsServicerutineM201Response unmarshallFromXml(String endringsmeldingRes

private String prepareRequest(List<String> identer, boolean isProd) {

return "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" source=\"Dolly\"?>" +
return "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +
"<!-- Melding fra Dolly -->" +
"<tpsPersonData>" +
"<tpsServiceRutine>" +
"<serviceRutinenavn>FS03-FDLISTER-DISKNAVN-M</serviceRutinenavn>" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private Map<String, TpsServicerutineS610Response> readFromTps(String ident, List
.build();

var xmlRequest = ServiceRutineUtil.marshallToXML(requestContext, request)
.replace("standalone=\"yes\"", "standalone=\"yes\" source=\"Dolly\"");
.replace("?>", "?><!-- Melding fra Dolly -->");

var miljoerResponse = servicerutineConsumer.sendMessage(xmlRequest, miljoer);

Expand Down

0 comments on commit 6b89279

Please sign in to comment.