Hi guys,
Not sure, but I think I may have stumbled across a bug here - maybe you can tell me if I’m using this correctly or not?
According to the BESAPI.xsd
, you can define a “<DisplayName>
” as well as a “<Name>
” for a custom site:
<xs:element name="CustomSite">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:normalizedString"/>
<xs:element name="DisplayName" type="xs:normalizedString" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Resource" type="xs:string" use="required"/>
<xs:attribute name="LastModified" type="xs:normalizedString"/>
</xs:complexType>
</xs:element>
However, when I attempt to use it:
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<CustomSite>
<Name>Superman</Name>
<DisplayName>Clark Kent</DisplayName>
<Description>Something, something, something, dark side ...</Description>
<Domain>BESC</Domain>
<GlobalReadPermission>true</GlobalReadPermission>
<Subscription>
<Mode>None</Mode>
</Subscription>
</CustomSite>
</BES>
I get an error:
Status: 500 Internal Server Error
XML Parsing error:
no declaration found for element 'DisplayName'
Line 5, Character 5
Am I looking at the wrong thing? Or should this work?