Używam SoapServer i chciałbym wiedzieć czy jest on w stanie sam zwalidować parametry wejściowe (struktura, występowanie parametru)?

Przykładowy WSDL
  1. <?xml version="1.1" encoding="utf-8"?>
  2. <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://wookieb/service" xmlns:tns="http://wookieb/service" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  3. <portType name="wookieb_port_type">
  4. <operation name="testowa">
  5. <input message="tns:testowa_wejscie"/>
  6. <output message="tns:testowa_wyjscie"/>
  7. </operation>
  8. </portType>
  9. <binding name="wookieb_binding" type="tns:wookieb_port_type">
  10. <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  11. <operation name="testowa">
  12. <soap:operation soapAction="#testowa" style="rpc"/>
  13. <input>
  14. <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wookieb/service"/>
  15. </input>
  16. <output>
  17. <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wookieb/service"/>
  18. </output>
  19. </operation>
  20. </binding>
  21. <message name="testowa_wejscie">
  22. <part name="test" type="xsd:string"/>
  23. <part name="id_sesji" type="xsd:string"/>
  24. </message>
  25. <message name="testowa_wyjscie">
  26. <part name="test" type="xsd:string"/>
  27. <part name="test2" type="xsd:string"/>
  28. </message>
  29. <service name="wookieb">
  30. <port name="wookieb_port" binding="tns:wookieb_binding">
  31. <soap:address location="http://wookieb/service"/>
  32. </port>
  33. </service>
  34. </definitions>


I przykładowo taki request
  1. <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://wookieb/service">
  2. <soapenv:Header/>
  3. <soapenv:Body>
  4. <ser:testowa soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  5. <test xsi:type="xsd:string">test</test>
  6. </ser:testowa>
  7. </soapenv:Body>
  8. </soapenv:Envelope>

Przechodzi. Choć przecież ilość parametrów się nie zgadza.
Jak mogę zmusić serwer aby nie przepuszczał takie przypadki?