<div dir="ltr">Hi Martin,<div><br></div><div>I had simillar problem recently. </div><div><br></div><div>1) it should be c:ObjectReferenceType </div><div>2) using explicit xsd location like <span style="font-size:12.8px"><xsd:import namespace="</span><a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank" style="font-size:12.8px">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a><span style="font-size:12.8px">" schemaLocation="</span><a href="http://serverip:8080/schema/common-3.xsd=http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank" style="font-size:12.8px">http://serverIp:8080/schema/common-3.xsd=http://midpoint.evolveum.com/xml/ns/public/common/common-3</a><span style="font-size:12.8px">"/> should help too. You have to publish xsd on your server in order for this to work.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regards</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Oskar Butovič</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-11 21:48 GMT+02:00 Martin Marchese <span dir="ltr"><<a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>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</div><div><br></div><div><div><font size="1"><i><?xml version="1.0" encoding="UTF-8" standalone="yes"?></i></font></div><div><font size="1"><i><xsd:schema elementFormDefault="qualified"</i></font></div><div><font size="1"><i>            targetNamespace="<a href="http://midpoint.identicum.com/xml/ns/metaPerson" target="_blank">http://midpoint.identicum.com/xml/ns/metaPerson</a>"</i></font></div><div><font size="1"><i>            xmlns:a="<a href="http://prism.evolveum.com/xml/ns/public/annotation-3" target="_blank">http://prism.evolveum.com/xml/ns/public/annotation-3</a>"</i></font></div><div><font size="1"><i>            xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"</i></font></div><div><font size="1"><i>            xmlns:tns="<a href="http://midpoint.evolveum.com/xml/ns/samples/extension-3" target="_blank">http://midpoint.evolveum.com/xml/ns/samples/extension-3</a>"</i></font></div><div><font size="1"><i>            xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>"></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">      </span><xsd:complexType name="RoleExtensionType"></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">                </span><xsd:annotation></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">                    </span><xsd:appinfo></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">                               </span><a:extension ref="c:RoleType"/></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">                   </span></xsd:appinfo></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">              </span></xsd:annotation></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">           </span><xsd:sequence></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">                      </span><xsd:element name="metaParent" type="xsd:ObjectReferenceType"   minOccurs="0" maxOccurs="1" /></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">             </span></xsd:sequence></i></font></div><div><font size="1"><i><span style="white-space:pre-wrap">     </span></xsd:complexType></i></font></div><div><font size="1"><i></xsd:schema></i></font></div></div><div><br></div><div>But when restarting midPoint I receive the following error:</div><div><br></div><div> XML error during XSD schema parsing: undefined simple or complex type 'xsd:ObjectReferenceType'<br></div><div><br></div><div>Is there a way to do this?</div><div><br></div><div>Thanks in Advance</div><div><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><span></span><span></span>Ing. Martín Marchese</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>Anchorena 1357 PB<br>Tel: <a href="tel:%2B54%20%2811%29%203526.5509" value="+541135265509" target="_blank">+54 (11) 3526.5509</a><br><a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br><a href="http://www.identicum.com" target="_blank">www.identicum.com</a></div></div></div></div></div>
</div></div>
<br>_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><table style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important"><tbody><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;width:160px;vertical-align:bottom;padding:0px;border:0px solid gray!important"><p><span style="font-size:14px;font-weight:bold">Oskar Butovič</span><br>solution architect<br><br>gsm: [+420] 774 480 101<br>e-mail: <a href="mailto:oskar.butovic@ami.cz" target="_blank">oskar.butovic@ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important">   </td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray!important">   </td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;width:123px;border:0px solid gray!important"><p>AMI Praha a.s.<br>Pláničkova 11<br>162 00 Praha 6<br>tel.: [+420] 274 783 239<br>web: <a href="http://www.ami.cz/" target="_blank">www.ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important">   </td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray!important">   </td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;margin:8px;border:0px solid gray!important;width:116px"><p><img src="http://www.ami.cz/images/podpis/ami_logo.gif" alt="AMI Praha a.s." style="border:0px"></p></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td colspan="7" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px solid gray!important"><br><a href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management" target="_blank"><img src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png" alt="AMI Praha a.s." style="border:0px;width:480px!important;height:82px!important"></a></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td colspan="7" style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:11px;padding:0px;border:0px solid gray!important"><br>Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<br>jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.<br><br></td></tr></tbody></table></div></div></div></div></div></div></div>
</div>