Re: working with Complex .net types in php
[email protected] (Ammarmar)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
> > looks mostly good, $MyUser gets turned into a nice PHP dataset. its a > object > called stdClass that contains structures, arrays and other stdClass > objects > (how come these classes are not named properly?) > > now...without doing anaything to it I pass it right back to .net to save: > It all depends on the WSDL. If, for example, WSDL contains abstract types, you MUST send typed objects (StdClass must be "wrapped" in SoapVar with namespace specified). If you don't specify the type of send object, the default (abstract) type will be applied - which in most cases will result in empty (or incomplete) object. Read up on SoapVar objects in PHP manual and check some old posts on this forum concerning SoapVars.