Web services 如何编写XSD

Web services 如何编写XSD,web-services,rest,xsd,cxf,Web Services,Rest,Xsd,Cxf,我不知道如何写下这个请求的xsd 路标 请求参数 所有必需的 标签名 publicId type String publicIdType type String actorType type String startDate type Date endDate type Date 范例 <actor> <actorPublicId>2424252</actorPublicId> <actorPublicIdType>1341416&

我不知道如何写下这个请求的xsd

路标

请求参数

所有必需的

标签名

publicId type String 
publicIdType type String
actorType type String
startDate type Date
endDate   type Date
范例

<actor>
  <actorPublicId>2424252</actorPublicId>
  <actorPublicIdType>1341416</actorPublicIdType>
  <actorType>test</actorType>
  <startDate>2014-03-10T22:34:34.999+2:00</startDate>
  <endDate>2014-03-10T22:34:34.999+2:00</endDate>
</actor>

2424252
1341416
测试
2014-03-10T22:34:34.999+2:00
2014-03-10T22:34:34.999+2:00
您的XSD是

<xs:schema 
   attributeFormDefault="unqualified" 
   elementFormDefault="qualified" 
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   targetNamespace="yourNamespace" 
    xmlns:pref="yourNamespace">

    <xs:element name="actor" type="pref:actor"/>
    <xs:complexType name="actor">
      <xs:sequence>
        <xs:element type="xs:string" name="actorPublicId"/>
        <xs:element type="xs:string" name="actorPublicIdType"/>
        <xs:element type="xs:string" name="actorType"/>
        <xs:element type="xs:dateTime" name="startDate"/>
        <xs:element type="xs:dateTime" name="endDate"/>
      </xs:sequence>
    </xs:complexType>

</xs:schema>

您解决了这个问题吗?如果是,您是如何解决的?