Validation Practices

From: Date: Tue, 28 Mar 2006 15:39:34 +0000
Subject: Validation Practices
Groups: php.soap 
Request: Send a blank email to php-soap+get-2183@lists.php.net to get a copy of this message
Apologies if this topic has already been covered, but I couldn't find anything recent in the archives. I'm working on both server and client for a service that will eventually handle some relatively complex data sets. Initially, I'm just working with a parameter that is restricted with an enumeration. I'd expected PHP to throw a SOAPFault when I fed in an invalid value for that parameter, but it seems not (and from what I can gather XSD support in libxml2 seems quite limited?) So my question is how people here approach validation of complex types? Do you duplicate the schema rules in code? Do you use some sort of code generation? Are there extra libraries that can be used? Any suggestions gratefully received. thanks. James. -- James Stewart Play: http://james.anthropiccollective.org Work: http://jystewart.net

« previous php.soap (#2183) next »