Мне нужно создать SOAP-запрос следующим образом:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:stor="http://storage.xdoc.xx/">
<soapenv:Header/>
<soapenv:Body>
<stor:createDocument>
<parentEntryId>workspace://SpacesStore/15f33e3a-32ba-4a5d-976f-c9e2096e1112</parentEntryId>
<name>test.txt</name>
<properties module="" name="Content" type="Binary">
<valueBinary>
<bytes>cXdlcnR5</bytes>
</valueBinary>
</properties>
</stor:createDocument>
</soapenv:Body>
</soapenv:Envelope>
Насколько я понимаю, мне нужно использовать вложенные массивы, но проблема в свойствах XML. SoapVar, кажется, не совсем то, что мне нужно.
Теперь у меня есть такой звонок:
$client->__callSoap("createDocument",
array(new SoapParam($name, "name"),
new SoapParam(
new SoapParam(
new SoapParam(
$contents,
"bytes"
),
"valueBinary"
),
"properties"
)
)
);
Как добавить атрибуты в "свойства"?
Заранее спасибо.