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

WSDL Schema validation

Expand Messages
  • anupama_an
    Hi All I am new to WSDL and Soap::Lite. I have written a client/server in perl. ...
    Message 1 of 1 , Aug 31, 2005
    • 0 Attachment
      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:complexType>
      <s:sequence>
      <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:sequence>
      </s:complexType>
      </s:element>
      <s:simpleType name="WorkOrderStatusType">
      <s:restriction base="s:string">
      <s:enumeration value="Open" />
      <s:enumeration value="Closed" />
      <s:enumeration value="Completed" />
      </s:restriction>
      </s:simpleType>
      <s:element name="WorkOrderStatusResponse">
      <s:complexType />
      </s:element>
      </s:schema>
      </wsdl:types>
      :
      :
      :
      <wsdl:message name="WorkOrderStatusSoapIn">
      <wsdl:part name="parameters" element="tns:WorkOrderStatus" />
      </wsdl:message>

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

      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?

      thanks
      Anu
    Your message has been successfully submitted and would be delivered to recipients shortly.