Everyone was tearing their hair out back in 2006 about how to supply attributes to Zimbra SOAP function-name elements when Corey Scott saved the day:
I've tried this trick for calling the SearchRequest function, which takes a 'type' attribute, but Corey's solution doesn't work for me.
Originally Posted by Corey Scott
I have this for my __soapCall():
But the XML that's produced dumbly repeats the attributes for the closing tag:
$result = $client2->__soapCall(
'SearchRequest type="contact"', // function name
$params, // arguments
null, // options
$soapHeader); // input headers
Corey, anyone, how did you get this to work? How can one use PHP SOAP and attach XML attributes to the function-name element?
Using Corey's SoapVar trick to attach attributes to *parameter* elements works fine. But I can't see how to do the same for the actual Zimbra functions which themselves require attributes.
Many thanks for any tips!