Re: SOAP-Server don't validate request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Ammarmar,

thanks for your helpful answer.

First of all - at the moment validation in SOAP Server is worth zilch. It is practically non-existent.

_Always_ validate manually everything in PHP.

I already imagined such a thing. But I needed still the confirmation of a further specialist. It could have been, that I made an little error and I'm to bind to see it. ;-)

As for missing parameters, I'm not sure if this is the problem, but binding section in your WSDL file is missing parts declaration (specifies part names and order). Try to use such code:

<wsdl:input>
    <soap:body use="literal" parts="FirstName SurName" />
</wsdl:input>

(similarly for output)

I already tested this case, but without success.

As for validating params type or such luxurious things like enumerations or regexps (yes, XML Schema supports regexps, too) - forget it. Do it yourself in your PHP code.

Hope this helps a bit.
	
I had already modified the XERCES-Parser for another project to validate an XML-Request. I think, I must modify this Parser to validate SOAP-Requests.

Thank you and best greetings

Jörg

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux