mdrpi is an undeclared prefix
Peter Schober
peter.schober at univie.ac.at
Thu Apr 25 11:10:51 EDT 2019
* Lohr, Donald <lohrda at jmu.edu> [2019-04-25 17:01]:
> “Error importing metadata from <path to xml file>: ‘mdrpi’ is an undeclared
> prefix. Line 3, position 6.
[...]
> <mdrpi:RegistrationInfo registrationAuthority="https://incommon.org"/>
That's because you did not define that prefix, as the error said.
> I found online one that looks like this:
>
> <mdrpi:RegistrationInfo xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi"
> registrationAuthority="https://incommon.org
Note the XML NameSpace declaration (xmlns:someprefix) there.
For my own locally managed metadata I simply declare all commonly used
XML namespaces in the root EntitiesDescriptor XML element so I don't
have to declare any within individual EntityDescriptors or child
elements thereof, e.g.:
<EntitiesDescriptor
xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
xmlns:disco="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns:init="urn:oasis:names:tc:SAML:profiles:SSO:request-init"
xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"
xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi"
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport"
xmlns:req-attr="urn:oasis:names:tc:SAML:protocol:ext:req-attr"
xmlns:refeds="http://refeds.org/metadata"
Name="http://your.example.org/local-entities">
<!-- your EntityDescriptor elements here -->
</EntitiesDescriptor>
-peter
More information about the users
mailing list