Loading ...
Sorry, an error occurred while loading the content.

4875WSDL Schema validation

Expand Messages
  • anupama_an
    Aug 31, 2005
      Hi All
      I am new to WSDL and Soap::Lite.
      I have written a client/server in perl.
      I have a wsdl file like this:

      <s:element name="WorkOrderStatus">
      <s:element minOccurs="1" maxOccurs="1" name="externalId"
      type= "s:string" />
      <s:element minOccurs="1" maxOccurs="1" name="subOrderNumber"
      type="s:int" />
      <s:element minOccurs="1" maxOccurs="1" name="status"
      type="tns:WorkOrderStatusType" />
      <s:element minOccurs="1" maxOccurs="1" name="date"
      type="s:dateTime" />
      <s:simpleType name="WorkOrderStatusType">
      <s:restriction base="s:string">
      <s:enumeration value="Open" />
      <s:enumeration value="Closed" />
      <s:enumeration value="Completed" />
      <s:element name="WorkOrderStatusResponse">
      <s:complexType />
      <wsdl:message name="WorkOrderStatusSoapIn">
      <wsdl:part name="parameters" element="tns:WorkOrderStatus" />

      <wsdl:message name="WorkOrderStatusSoapOut">
      <wsdl:part name="parameters"element="tns:WorkOrderStatusResponse" />

      Now I would like to know how I can validate the data to match the
      data types as described in the wsdl.
      ex: WorkOrderStatusType should be either Open, Closedo= or Completed
      how can i validate the data against this condition?