Commit 83b51384 authored by Tony Schaller's avatar Tony Schaller

Fixing xml namespace in order to get it validated by the EVS client

git-svn-id: https://svn.code.sf.net/p/ehealthconnector/code/trunk@1685 e99adb7c-5e35-42fd-8d1b-cdb378af05e8
parent d21555de
......@@ -77,8 +77,14 @@ public class PurposeOfUseBuilder extends AbstractXMLObjectBuilder<OpenSamlPurpos
@Override
public OpenSamlPurposeOfUse buildObject(String namespaceURI, String localName,
String namespacePrefix) {
final OpenSamlPurposeOfUse ppou = new PurposeOfUseImpl(namespaceURI, localName,
namespacePrefix);
// This is just to make the assertion Valid in the Gazelle EVS Client:
// https://ehealthsuisse.ihe-europe.net/EVSClient/xml/validator.seam?extension=CH%3AXUA&standard=CH%3AXUA&type=XML
// The prefox lead to schema error on 19.7.2018
// final OpenSamlPurposeOfUse ppou = new PurposeOfUseImpl(namespaceURI,
// localName,
// namespacePrefix);
final OpenSamlPurposeOfUse ppou = new PurposeOfUseImpl(namespaceURI, localName, "");
if (!StringUtils.isEmpty(code)) {
ppou.setCode(code);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment