Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36060 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99990 invoked from network); 8 Mar 2008 09:40:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2008 09:40:19 -0000 Authentication-Results: pb1.pair.com header.from=giovanni@giacobbi.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=giovanni@giacobbi.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain giacobbi.net from 62.149.226.38 cause and error) X-PHP-List-Original-Sender: giovanni@giacobbi.net X-Host-Fingerprint: 62.149.226.38 host38-226-149-62.serverdedicati.aruba.it Linux 2.5 (sometimes 2.4) (4) Received: from [62.149.226.38] ([62.149.226.38:47320] helo=lowca.thgnet.it) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/D2-18442-FFE52D74 for ; Sat, 08 Mar 2008 04:40:18 -0500 Received: from lowca.thgnet.it (lowca [127.0.0.1]) by lowca.thgnet.it (8.12.11.20060308/8.12.11) with ESMTP id m289e79j000494 for ; Sat, 8 Mar 2008 10:40:07 +0100 Received: (from johnny@localhost) by lowca.thgnet.it (8.12.11.20060308/8.12.11/Submit) id m289e7VM000492 for internals@lists.php.net; Sat, 8 Mar 2008 10:40:07 +0100 Date: Sat, 8 Mar 2008 10:40:07 +0100 To: internals@lists.php.net Message-ID: <20080308094007.GB11842@lowca.thgnet.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: SOAP extension and object records From: giovanni@giacobbi.net (Giovanni Giacobbi) Greetings, I'm a newbie in SOAP, and I'm doing my first experiments using PHP. I suspect there is a bug in records processing, but I thought it was useful to discuss it here before submitting a possibly bogus bug report. I'll explain briefly the test case, but before a tiny side note: I've been reading thru the ext/soap source code and cleaned up some white spaces. Shall I submit that patch? Back in topic, I define a simple record type: And a simple operation: Now the SOAP envelope. First a complete record but with bogus data (a string in place of the int): hello Product name So far all fine, a SOAP fault is returned: SOAP-ENV:ServerSOAP-ERROR: Encoding: Violation of encoding rules But if I submit an incomplete record no errors are returned: Product name The server callback function is called with the following arguments: array(1) { [0]=> object(stdClass)#2 (1) { ["title"]=> string(12) "Product name" } } But I'd expect another encoding violation fault, because there was NOT minOccurs="0" in Product's element definition. Am I doing something wrong? Thank you -- Giovanni Giacobbi