Ge...">

Expanded WSDL removes XSD constraints

I am trying to deploy web services using TOP-DOWN and Axis 1.4 using the Eclipse Wizard "Web Services> Generate Java Skeleton", I have a WSDL with its schemas inside. One particular complexType has restrictions on its elements (for input):

      <xsd:complexType name="InformacionClienteRequestModel">
    <xsd:sequence>
      <xsd:element name="numRut">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:pattern value="\d{9}\-[k|K|0-9]"/>
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:element>          
      <xsd:element name="codSituacion">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:pattern value="([ABST][AP][AP])?|([ABST][AP][AP])(,([ABST][AP][AP]))*"/>
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:element>
      <xsd:element name="filtroCodSituacion">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:pattern value="[IE]?"/>
          </xsd:restriction>            
        </xsd:simpleType>
      </xsd:element>            
      <xsd:element name="pagina">
        <xsd:simpleType>
          <xsd:restriction base="xsd:int">
            <xsd:minInclusive value="1"/>               
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:element>
      <xsd:element name="registrosPorPagina">
        <xsd:simpleType>
          <xsd:restriction base="xsd:int">
            <xsd:minInclusive value="1"/>
            <xsd:maxInclusive value="50"/>
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:element>          
    </xsd:sequence>
  </xsd:complexType>

      

When deployed to the server (I've tried both Websphere and Tomcat), this complexType ends up like this:

<complexType name="InformacionClienteRequestModel">
<sequence>
<element name="numRut" type="xsd:string"/>
<element name="codSituacion" type="xsd:string"/>
<element name="filtroCodSituacion" type="xsd:string"/>
<element name="pagina" type="xsd:int"/>
<element name="registrosPorPagina" type="xsd:int"/>
</sequence>
</complexType>

      

It does not explicitly validate input via SOAP, I google'd everywhere but got nothing.

Any ideas?

+3


source to share





All Articles