Je dois créer une requête SOAP comme ceci:Comment ajouter des attributs XML à demander dans 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>
Pour autant que je comprends que je dois utiliser des tableaux imbriqués, mais le problème est dans les propriétés XML. SoapVar ne semble pas exactement ce dont j'ai besoin.
Maintenant, j'ai un tel appel:
$client->__callSoap("createDocument",
array(new SoapParam($name, "name"),
new SoapParam(
new SoapParam(
new SoapParam(
$contents,
"bytes"
),
"valueBinary"
),
"properties"
)
)
);
Comment ajouter des attributs à "propriétés"?
Merci d'avance.
Solutine hackish avec XSD_ANYXML ... –