Re: [SOAP] xsi:type or maybe SoapVar misuse?
| From: | ammarmar at wp dot pl | Date: | Mon, 11 Jun 2007 16:27:02 +0000 |
| Subject: | Re: [SOAP] xsi:type or maybe SoapVar misuse? | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2557@lists.php.net to get a copy of this message | ||
Dnia 01-05-2007 o 01:29:14 Andrew Ettinger <aettinger@airadvice.com> napisał(a):
Ah, also note in the error message that SOAPCustomerSearchBasic extends SearchRecord, which for all intents and purposes I guess an abstract class as it has no properties (if that helps with any divination on the error message). Cheers, AndrewIn fact, this is the main issue. You have to use SoapVars AND specify namespace & typename if you send ComplexType that extends some abstract type (or what you send will be treated like SearchRecord and not SOAPCustomerSearchBasic). It should look something like that (I hope the URI is right - it should be the namespace the SOAPCustomerSearchBasic is in): $param = new SoapVar($ssr, SOAP_ENC_OBJECT, "SOAPCustomerSearchBasic", "urn:relationships_2_5.lists.webservices.netsuite.com"); I stomped into the same problem when integrating PHP with Microsoft CRM - that generates record types dynamically, so abstract types are a must :-)