《智慧统战建设数据接口模型XMLSchema、样例、RESTful接口模型.docx》由会员分享,可在线阅读,更多相关《智慧统战建设数据接口模型XMLSchema、样例、RESTful接口模型.docx(10页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、智慧统战建设数据接口模型XMLSchema、样例、RESTful接口模型附录 A 数据接口模型的X X ML Schema数据接口模型的XML Schema表示如下:<?xml version=1.0 encoding=UTF-8?> <xs:schema xmlns:xs=http:/www.w3.org/2001/XMLSchema elementFormDefault=qualified> <xs:element name=ExchangeData> <xs:complexType> <xs:sequence> <xs:e
2、lement ref=EnvelopInfo/> <xs:element ref=PackageInfo/> <xs:element ref=AttachmentsType/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name=EnvelopInfo> <xs:complexType> <xs:sequence> <xs:element ref=MessageId/> <xs:element ref
3、=MessageType/> <xs:element ref=MessageTime/> <xs:element ref=MessageSender/> <xs:element ref=MessageReceive/> <xs:element ref=Count/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name=MessageId type=xs:NCName/> <xs:element name=Mess
4、ageType type=xs:NCName/> <xs:element name=MessageTime type=xs:NCName/> <xs:element name=MessageSender type=xs:NCName/> <xs:element name=MessageReceive type=xs:NCName/> <xs:element name=Count type=xs:NCName/> <xs:element name=PackageInfo> <xs:complexType> <xs
5、:sequence> <xs:element maxOccurs=unbounded ref=DataNode/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name=DataNode> <xs:complexType><xs:sequence> <xs:element ref=peopleType/> <xs:element ref=personName/> <xs:element ref=sex/
6、> <xs:element ref=nation/> <xs:element ref=idNumber/> <xs:sequence minOccurs=0> <xs:element ref=certificateType/> <xs:element ref=certificateNum/> <xs:element ref=birthday/> <xs:element ref=nationality/> <xs:element ref=homeDomicile/> <xs:element
7、 ref=political/> <xs:element ref=nativePlace/> <xs:element ref=fullTimeDegree/> <xs:element ref=academicDegree/> <xs:element ref=onJobEducation/> <xs:element ref=onJobDegree/> <xs:element ref=email/> <xs:element ref=telephone/> </xs:sequence> </x
8、s:sequence> </xs:complexType> </xs:element> <xs:element name=peopleType type=xs:NCName/> <xs:element name=personName type=xs:NCName/> <xs:element name=sex type=xs:NCName/> <xs:element name=nation type=xs:NCName/> <xs:element name=idNumber type=xs:NCName/>
9、 <xs:element name=certificateType type=xs:NCName/> <xs:element name=certificateNum type=xs:NCName/> <xs:element name=birthday type=xs:NCName/> <xs:element name=nationality type=xs:NCName/> <xs:element name=homeDomicile type=xs:NCName/> <xs:element name=political type
10、=xs:NCName/> <xs:element name=nativePlace type=xs:NCName/> <xs:element name=fullTimeDegree type=xs:NCName/> <xs:element name=academicDegree type=xs:NCName/> <xs:element name=onJobEducation type=xs:NCName/> <xs:element name=onJobDegree type=xs:NCName/> <xs:element
11、name=email type=xs:NCName/> <xs:element name=telephone type=xs:NCName/> <xs:element name=AttachmentsType> <xs:complexType><xs:sequence> <xs:element ref=Attachment/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name=Attachment> &l
12、t;xs:complexType> <xs:sequence> <xs:element ref=AttachmentID/> <xs:element ref=AttachmentName/> <xs:element ref=AttachmentDescription/> <xs:element ref=AttachmentType/> <xs:element ref=AttachmentContent/> </xs:sequence> </xs:complexType> </xs:ele
13、ment> <xs:element name=AttachmentID type=xs:NCName/> <xs:element name=AttachmentName type=xs:NCName/> <xs:element name=AttachmentDescription type=xs:NCName/> <xs:element name=AttachmentType type=xs:NCName/> <xs:element name=AttachmentContent type=xs:NCName/> </xs:
14、schema>附录 B 数据样例以统战对象基本信息的数据样例XML表示如下:<?xml version=1.0 encoding=UTF-8?> <ExchangeData><EnvelopInfo><MessageId>报文编号</MessageId><MessageType>报文业务编号</MessageType><MessageTime>报文发送时间</MessageTime><MessageSender>报文发送者</MessageSender>&l
15、t;MessageReceive>报文接受者</MessageReceive><Count>业务记录数</Count></EnvelopInfo><PackageInfo> <DataNode> <peopleType>统战对象类型</peopleType> <personName>姓名</personName><sex>性别</sex><nation>民族</nation><idNumber>身份证号码<
16、;/idNumber><certificateType>有效证件类型</certificateType><certificateNum>有效证件号码</certificateNum><birthday>诞生日期</birthday> <nationality>国籍</nationality><homeDomicile>常住地</homeDomicile><political>政治面貌</political><nativePlace>户
17、籍所在地</nativePlace><fullTimeDegree>全日制学历</fullTimeDegree><academicDegree>全日制学位</academicDegree><onJobEducation>在职教化学历</onJobEducation><onJobDegree>在职教化学位</onJobDegree><email>电子邮件</email><telephone>移动电话</telephone> </Data
18、Node> <DataNode> <peopleType>统战对象类型</peopleType> <personName>姓名</personName><sex>性别</sex><nation>民族</nation><idNumber>身份证号码</idNumber> </DataNode> </PackageInfo><AttachmentsType> <Attachment> <AttachmentI
19、D>附件标识</AttachmentID><AttachmentName>附件名称</AttachmentName><AttachmentDescription>附件描述</AttachmentDescription><AttachmentType>附件类型</AttachmentType><AttachmentContent>附件内容</AttachmentContent> </Attachment></AttachmentsType> </Exch
20、angeData>附录 C RESTful 接口模型恳求接口 http(s):/ip:port/接口服务名称/业务编码/功能类型+业务编码 恳求参数 businessCode:业务编码, functionType:功能类型 data:参数编码:参数值,参数编码:参数值 返回结果 message:恳求状态说明 , code: 恳求状态,businessCode:业务编码, page: totalCount: 数据总数量, pageSize: 数据每页数量, totalPage: 数据总页数, currPage: 数据当前页, list: / 返回数据集合 数据项编码:数据值, 数据项编码:数据值, 数据项编码:数据值