付録C.3 CPA拡張定義ファイルで使用するXMLスキーマ

CPA拡張定義ファイルで使用するXMLスキーマを次に示します。

<?xml version="1.0" encoding="Shift_JIS"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       targetNamespace="http://www.hitachi.co.jp/soft/xml/ebxml/msh/schema/cpa-entinfo.xsd"
       xmlns="http://www.hitachi.co.jp/soft/xml/ebxml/msh/schema/cpa-entinfo.xsd">

 <xsd:element name="CPAExtendInfo">
   <xsd:complexType>
     <xsd:sequence>
       <xsd:element ref="SignatureRequired" minOccurs="0"/>
       <xsd:element ref="SignPayload" minOccurs="0"/>
       <xsd:element ref="DurationTime" minOccurs="0"/>
       <xsd:element ref="AccessAuthenticationInfo" minOccurs="0"/>
       <xsd:element ref="ConnectionTimeout" minOccurs="0"/>
     </xsd:sequence>
    </xsd:complexType>
 </xsd:element>
 
 <xsd:element name="SignatureRequired" type="xsd:string"/>
  <xsd:element name="SignPayload" type="xsd:string"/>
 <xsd:element name="DurationTime" type="xsd:duration"/>
 <xsd:element name="AccessAuthenticationInfo">
 <xsd:complexType>
     <xsd:sequence>
       <xsd:element ref="Basic" minOccurs="1"/>
       </xsd:sequence>
    </xsd:complexType>
 </xsd:element>
 <xsd:element name="ConnectionTimeout" type="xsd:string" />
 <xsd:element name="Basic">
 <xsd:complexType>
     <xsd:sequence>
        <xsd:element ref="UserId"/>
        <xsd:element ref="Password"/>
        </xsd:sequence>
    </xsd:complexType>
 </xsd:element>
 <xsd:element name="UserId" type="non-empty-string" />
 <xsd:element name="Password" type="xsd:string" />
 

 <xsd:simpleType name="non-empty-string">
       <xsd:restriction base="xsd:string">
               <xsd:minLength value="1"/>
       </xsd:restriction>
</xsd:simpleType>

</xsd:schema>