4 Replies Latest reply: Oct 8, 2012 9:49 AM by 814541 RSS

    WebLogic does not validate minOccurs=“1” in webservices


      My WebService is deployed on WebLogic 10.3.3.

      WSDL/XSD describes input parameter number as mandatory:

      <xs:element minOccurs="1" maxOccurs="1" name="number" type="xs:int"/>

      MinOccurs="1" means that XML message must contain <number> tag, isn't it?

      I expect WebLogic has to validate all requests and server error response should be thrown when request is invalid.

      Unfortunatelly, my SOAP client is able to send SOAP request without <number> tag and my webservice implementation receives such an invalid request.

      Could you tell me please, is it correct behavior or is it defect in WebLogic?

      Should my webservice perform it's own XML validation?