Re: php5 soap deserializer error
| From: | dtra | Date: | Tue, 13 Sep 2005 00:39:51 +0000 |
| Subject: | Re: php5 soap deserializer error | ||
| References: | 1 2 3 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1990@lists.php.net to get a copy of this message | ||
dtra wrote:
ok, hi it shows up a few times in the wsdl file as part of a complex type <sequence>oops, sorry about the double post, i did a reply-all, and it posted to the group twice just a quick update on what i've tried i tried setting the $arrDestinationAddressSet directly as a string not an array, same problem tried putting the string $arrID[$i] in place of the object $sd in the sendSms() call, same problem dave<element name="destinationAddressSet" nillable="true" type="impl:ArrayOf_xsd_string"/> <element name="senderName" nillable="true" type="xsd:string"/> <element name="message" nillable="true" type="xsd:string"/> <element name="encoding" nillable="true" type="xsd:string"/></sequence> the encoding element above can be 'text', '8 bit', or 'unicode' as it's values i'll just add some more of the php code that accesses it [php] for ($i = 0; $i < $intCount; $i++) { # arrID is a string array that is set earlier where we get data from our own db$arrDestinationAddressSet = array($arrID[$i]); $sd = new SmsDelivery($arrDestinationAddressSet, $strSenderName, $strEncoding, $strMessage); try {# error occurs on below line, line 36, i'm guessing it is the $sd object$strReturnValue = $sc->sendSms($strAccessID, $strPassword, $strUrl, $sip, $sd); } catch (SoapFault $strException) { print $strException; } catch (Exception $e) { print $e->getMessage(); } }[/php] please let me know if you need more information thanks dave