[midPoint] Custom Schema Attribute with type ObjectReferenceType
Oskar Butovič - AMI Praha a.s.
oskar.butovic at ami.cz
Tue Jul 12 09:08:02 CEST 2016
Hi Martin,
I had simillar problem recently.
1) it should be c:ObjectReferenceType
2) using explicit xsd location like <xsd:import namespace="
http://midpoint.evolveum.com/xml/ns/public/common/common-3" schemaLocation="
http://serverIp:8080/schema/common-3.xsd=http://midpoint.evolveum.com/xml/ns/public/common/common-3
<http://serverip:8080/schema/common-3.xsd=http://midpoint.evolveum.com/xml/ns/public/common/common-3>"/>
should help too. You have to publish xsd on your server in order for this
to work.
Regards
Oskar Butovič
2016-07-11 21:48 GMT+02:00 Martin Marchese <mmarchese at identicum.com>:
> Hi All,
>
> I'm trying to add a custom attribute to my role objects and I wanted to be
> a a reference to another object. I tried using the ObjectReferenceType like
> this
>
> *<?xml version="1.0" encoding="UTF-8" standalone="yes"?>*
> *<xsd:schema elementFormDefault="qualified"*
> *
> targetNamespace="http://midpoint.identicum.com/xml/ns/metaPerson
> <http://midpoint.identicum.com/xml/ns/metaPerson>"*
> * xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3
> <http://prism.evolveum.com/xml/ns/public/annotation-3>"*
> *
> xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3
> <http://midpoint.evolveum.com/xml/ns/public/common/common-3>"*
> *
> xmlns:tns="http://midpoint.evolveum.com/xml/ns/samples/extension-3
> <http://midpoint.evolveum.com/xml/ns/samples/extension-3>"*
> * xmlns:xsd="http://www.w3.org/2001/XMLSchema
> <http://www.w3.org/2001/XMLSchema>">*
> * <xsd:complexType name="RoleExtensionType">*
> * <xsd:annotation>*
> * <xsd:appinfo>*
> * <a:extension ref="c:RoleType"/>*
> * </xsd:appinfo>*
> * </xsd:annotation>*
> * <xsd:sequence>*
> * <xsd:element name="metaParent" type="xsd:ObjectReferenceType"
> minOccurs="0" maxOccurs="1" />*
> * </xsd:sequence>*
> * </xsd:complexType>*
> *</xsd:schema>*
>
> But when restarting midPoint I receive the following error:
>
> XML error during XSD schema parsing: undefined simple or complex type
> 'xsd:ObjectReferenceType'
>
> Is there a way to do this?
>
> Thanks in Advance
>
> *Ing. Martín Marchese*
> Identicum S.A.
> Anchorena 1357 PB
> Tel: +54 (11) 3526.5509
> mmarchese at identicum.com
> www.identicum.com
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
--
Oskar Butovič
solution architect
gsm: [+420] 774 480 101
e-mail: oskar.butovic at ami.cz
AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel.: [+420] 274 783 239
web: www.ami.cz
[image: AMI Praha a.s.]
[image: AMI Praha a.s.]
<http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za
společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně
písemnou formu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160712/bdc99666/attachment.htm>
More information about the midPoint
mailing list