[Web Service] SOAP et PHP no.xml.data.specified
Bonjour,
je découvre le SOAP avec PHP et j'ai un webservice que je n'arrive pas à utiliser.
Je peux m'y connecter et faire quelques affaires comme par exemple $client->getVersion(). Ca fonctionne il n'y a pas de souci mais dès qu'il faut passer des paramètres c'est impossible.
J'ai essayé beaucoup de choses mais visiblement pas tout car je ne trouve pas la solution à mon problème.
J'ai une action à appeller "transcode" et elle prend en paramètre un string formé en XML.
J'ai une enveloppe de test qui fonctionne mais je n'arrive pas a l'exécuter en PHP.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="http://snellwilcox.com/xmlbinding/icr/2007/04/control">
<soapenv:Header/>
<soapenv:Body>
<con:transcode>
<arg0>
<![CDATA[
<!-- OverlayTextOnly.xml -->
<trans:transcodeparameters xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:trans='http://www.amberfin.com/schema/TranscoderParameters'
xsi:schemaLocation='http://www.amberfin.com/schema/TranscoderParameters TranscoderParameters.xsd'>
<trans:inputs>
<trans:input id="main">
<trans:file name = "D:\Media\Segment1.mxf"/>
</trans:input>
</trans:inputs>
<trans:segments>
<trans:segment id="clip1">
<trans:input>main</trans:input>
</trans:segment>
</trans:segments>
<!-- SD adds White text only with 50% opacity -->
<trans:output template="TestTemplate" conversion="TestProfile">
<trans:singlepass>false</trans:singlepass>
<trans:directory name="D:\Media\Output"/>
<trans:overlays>
<trans:text>
<trans:text>My test text</trans:text>
<trans:font>Ariel</trans:font>
<trans:fontsize>36</trans:fontsize>
<trans:colour value="255,255,255"/>
<trans:position>240,120</trans:position>
<trans:horizontalalignment>right</trans:horizontalalignment>
<trans:verticalalignment>top</trans:verticalalignment>
<trans:size>200,100</trans:size>
<trans:opacity>80</trans:opacity>
</trans:text>
</trans:overlays>
</trans:output>
</trans:transcodeparameters>
]]>
</arg0>
</con:transcode>
</soapenv:Body>
</soapenv:Envelope> |
Comment faire pour mettre ça dans un tableau et le mettre en paramètre car quand j'execute mon script et que je regarde la methode __getLastRequest() elle me retourne ça :
Code:
1 2 3 4 5 6 7
|
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://snellwilcox.com/xmlbinding/icr/2007/04/control"
<SOAP-ENV:Body
<ns1:transcode/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> |
Quelqu'un aurait-il une solution ou du moins une piste à explorer ?
Merci d'avance !
PY.