[IdP] SP metadata xml invalid

Forge Component
(39)
Published on 4 Nov by Telmo Martins
39 votes
Published on 4 Nov by Telmo Martins

SP metadata xml file exported from IdP seems to be invalid. My Service Provider (SAP) doesn't accept it, and I tried to validate it with https://www.samltool.com/validate_xml.php and here is the output I get:

Line: 3 | Column: 0  --> Element '{urn:oasis:names:tc:SAML:2.0:metadata}RoleDescriptor', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value '{http://docs.oasis-open.org/wsfed/federation/200706}ApplicationServiceType' of the xsi:type attribute does not resolve to a type definition.

Line: 3 | Column: 0  --> Element '{urn:oasis:names:tc:SAML:2.0:metadata}RoleDescriptor': The type definition is abstract.

Line: 55 | Column: 0  --> Element 'Attribute': This element is not expected. Expected is one of ( {urn:oasis:names:tc:SAML:2.0:metadata}AssertionConsumerService, {urn:oasis:names:tc:SAML:2.0:metadata}AttributeConsumingService ).


Any known issue with it?

Can you validate the type without corresponding XSD. What if the type is defined in some-file.xsd ?