<div dir="ltr">can you post what have so far? Here is ours, trimmed down of course as we have many types from orgs, roles, and user types<div><br></div><div><div><?xml version="1.0" encoding="UTF-8" standalone="yes"?></div><div><br></div><div><xsd:schema elementFormDefault="qualified"</div><div> targetNamespace="<a href="http://midpoint.bshp.edu/bshp">http://midpoint.bshp.edu/bshp</a>"</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>xmlns:tns="<a href="http://midpoint.bshp.edu/bshp">http://midpoint.bshp.edu/bshp</a>"</div><div> xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"</div><div> xmlns:a="<a href="http://prism.evolveum.com/xml/ns/public/annotation-3">http://prism.evolveum.com/xml/ns/public/annotation-3</a>"</div><div> xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><!-- Enumerated Objects --></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:simpleType name="bshpAffiliation"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:annotation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:documentation>Choices for Affiliation</xsd:documentation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></xsd:annotation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:restriction base="xsd:string"></div><div> <xsd:enumeration value="faculty"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:label>faculty</a:label></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> </xsd:enumeration></div><div> <xsd:enumeration value="staff"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:label>staff</a:label></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> </xsd:enumeration></div><div> <xsd:enumeration value="student"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:label>student</a:label></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> </xsd:enumeration></div><div> <xsd:enumeration value="alumni"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:label>alumni</a:label></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> </xsd:enumeration></div><div> <xsd:enumeration value="external"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:label>external</a:label></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> </xsd:enumeration></div><div> </xsd:restriction></div><div> </xsd:simpleType></div><div><br></div><div> <!-- User Extension --></div><div><br></div><div> <xsd:complexType name="UserTypeExtensionType"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:extension ref="c:UserType"/></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> <xsd:sequence></div><div> <xsd:element name="otherMailbox" type="xsd:string" minOccurs="0" maxOccurs="unbounded"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:indexed>true</a:indexed></div><div> <a:displayName>Other Mailbox</a:displayName></div><div> <a:displayOrder>120</a:displayOrder></div><div> <a:help><a href="mailto:someone@example.com">someone@example.com</a></a:help></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> </xsd:element></div><div> <xsd:element name="campus" type="xsd:string" minOccurs="0" maxOccurs="1"></div><div> <xsd:annotation></div><div> <xsd:appinfo></div><div> <a:indexed>true</a:indexed></div><div> <a:displayName>Campus</a:displayName></div><div> <a:displayOrder>160</a:displayOrder></div><div> </xsd:appinfo></div><div> </xsd:annotation></div><div> </xsd:element></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:element name="bshpAffiliation" type="tns:bshpAffiliation" minOccurs="0" maxOccurs="1"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:annotation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><a:indexed>true</a:indexed></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><a:displayName>Affiliation</a:displayName></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><a:displayOrder>170</a:displayOrder></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></xsd:annotation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></xsd:element></div><div> </xsd:sequence></div><div> </xsd:complexType></div><div></xsd:schema></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">JASON</div></div></div><div class="gmail_quote"><br></div></div><div class="gmail_extra">
<br><div class="gmail_quote">On Wed, Feb 22, 2017 at 12:24 PM, Pálos Gustáv <span dir="ltr"><<a href="mailto:gustav.palos@evolveum.com" target="_blank">gustav.palos@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Dmitry,<div><br></div><div>do you checked for example this sample?</div><div><a href="https://github.com/Evolveum/midpoint/blob/master/samples/schema/extension-samples.xsd" target="_blank">https://github.com/Evolveum/mi<wbr>dpoint/blob/master/samples/sch<wbr>ema/extension-samples.xsd</a><br></div><div><br></div><div>best regards,</div><div><br></div><div>Gustav</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5"><div><div class="gmail-m_-3592376083088728301gmail-h5">2017-02-22 18:49 GMT+01:00 Dmitriy Berezkin <span dir="ltr"><<a href="mailto:berezkin.dmitriy@gmail.com" target="_blank">berezkin.dmitriy@gmail.com</a>></span>:<br></div></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><div><div class="gmail-m_-3592376083088728301gmail-h5">
<div>
<div name="messageBodySection">Hi!<br></div>
<div name="messageReplySection"><br>
Could you tell me how I can extend UserType with complexType object?<br>
<br>
I tried to add <xsd:complexType> under <xsd:sequence> of my custom xsd but got error:<br>
<blockquote type="cite" style="margin:5px;padding-left:10px;border-left:thin solid rgb(26,188,156)">
<div name="messageBodySection">
<div>
<div>org.springframework.beans.fact<wbr>ory.BeanCreationException: Error creating bean with name 'repositoryFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.fact<wbr>ory.BeanCreationException: Could not autowire field: private <a href="http://com.evolveum.midpoint.prism.Pr" target="_blank">com.evolveum.midpoint.prism.Pr</a><wbr>ismContext com.evolveum.midpoint.init.Rep<wbr>ositoryFactory.prismContext; nested exception is org.springframework.beans.fact<wbr>ory.BeanCreationException: Error creating bean with name 'prismContext' defined in class path resource [ctx-configuration.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.Bean<wbr>InstantiationException: Failed to instantiate [com.evolveum.midpoint.prism.P<wbr>rismContext]: Factory method 'createInitializedPrismContext<wbr>' threw exception; nested exception is com.evolveum.midpoint.util.exc<wbr>eption.SchemaException: XML error during XSD schema parsing: <b>Unexpected <xsd:complexType> appears at line 65 column 42(embedded exception null)</b> in file C:\midpoint\schema\test1.xsd</div>
</div>
</div>
</blockquote>
<br>
Do you have any example of using complexType attribute with UserExtensionType?<br>
<br>
---<br>
<div name="messageSignatureSection">
<div>Dmitry</div>
</div>
</div>
</div>
<br></div></div></div></div>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
<br></blockquote></div><span class="gmail-m_-3592376083088728301gmail-HOEnZb"><font color="#888888"><br><br clear="all"><span class="gmail-HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="gmail-m_-3592376083088728301gmail-m_8526714387436473393gmail_signature">s pozdravom<div><br></div><div>Gustáv Pálos</div></div>
</font></span></font></span></div><span class="gmail-HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="gmail-HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-3592376083088728301gmail_signature"><div dir="ltr"><div>Gustáv Pálos</div><div>Identity Engineer</div><a href="http://evolveum.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">evolveum.com</a><br></div></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br></div></div>