Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:21204 php.internals:21205 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1373 invoked by uid 1010); 13 Dec 2005 18:49:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 1357 invoked from network); 13 Dec 2005 18:49:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2005 18:49:48 -0000 X-Host-Fingerprint: 66.249.82.201 xproxy.gmail.com Linux 2.4/2.6 Received: from ([66.249.82.201:21585] helo=xproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D3/EF-49905-CC71F934 for ; Tue, 13 Dec 2005 13:49:48 -0500 Received: by xproxy.gmail.com with SMTP id s7so1322068wxc for ; Tue, 13 Dec 2005 10:49:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=D4g5QvzPO56+jnA1FUr0XfZgXTFOaI1qmhynUYsXSjMpHpckZcLs15LkNaQNcBy0ygMNxKiuazPgjuSIuSVfbOSIME1oTe4zmzMAZ1603jrNhWz8S6qfw/0dOUBhuRQBBJ/DBbWzhIcDCBpf29zjpn8FbuAZtbg5jGS1aSRAe+Q= Received: by 10.70.94.8 with SMTP id r8mr1037817wxb; Tue, 13 Dec 2005 10:49:10 -0800 (PST) Received: by 10.65.40.15 with HTTP; Tue, 13 Dec 2005 10:48:39 -0800 (PST) Message-ID: Date: Tue, 13 Dec 2005 13:48:39 -0500 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: SOAP Question re: Class Mapping & Constructors From: matt.friedman@gmail.com (Matt Friedman) Hi, We are using the built-in SOAP extension. From the docs: $server =3D new SoapClient("books.wsdl", array('classmap' =3D> array('book' =3D> "MyBook"))); Soap server will return a complex data type 'book'. The data fields for book will be mapped to the php class' data fields in MyBook. It seems that the constructor for MyBook is never called (according to our tests). The data fields are mapped somehow internally. If I want MyBook to be much more than just a data container, then I can foresee that I will often want/need a constructor but __construct is not called. Could this be considered a bug? Any thoughts? -- -- Matt Friedman