tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/276-configuration-publishingCascade CMS: Discussion 2018-10-18T20:36:42Ztag:help-archives.hannonhill.com,2010-02-09:Comment/208820472012-11-15T21:08:04Z2012-11-15T21:08:04ZConfiguration Publishing<div><p>Hi,</p>
<blockquote>
<p>Is it possible to edit the destinations that configurations are
published to via web services/wsdl?</p>
</blockquote>
<p>It is possible to add page configurations to the Content Type
via Web Services. You are seeing an empty object in the response
from your read operation due to this <a href=
"https://hannonhill.jira.com/browse/CSI-426">known defect</a>.</p>
<p>There is a workaround; however, to get this information. After
calling the read operation, use the
<code>__getLastResponse()</code> method to output the raw response.
You would echo this raw response like so:</p>
<pre>
<code>echo $client->__getLastResponse();</code>
</pre>
<p>Note: you must have <strong>trace</strong> set to
<strong>1</strong> when creating your SOAP client to access this
response.</p>
<p>That being said, the edit operation works just fine, you would
use something like the following structure (in PHP):</p>
<pre>
<code>$response = $client->edit(array(
'authentication' => array(
'username' => 'admin',
'password' => 'admin'
),
'asset' => array(
'contentType' => array(
'id' => 'b548ada70a00016c6a59d8da34651523',
'parentContainerId' => '35579a2a7f0000010020a23942810a06',
'name' => 'Standard Page',
'siteName' => 'example.com',
'pageConfigurationSetId' => 'b5474c910a00016c6a59d8da7e6099f5',
'metadataSetId' => 'b668909d0a00016c6a59d8daa2092996',
'contentTypePageConfigurations' => array(
'contentTypePageConfiguration' => array(
array(
'pageConfigurationId' => 'd1776d360a00016c5e4c03d48ab76feb',
'publishMode' => 'selected-destinations',
'destinations' => array(
array('type' => 'destination', 'id' => '44a8d0450a0001ed002b661b6bdf9a49')
)
),
)
)
)
)
));</code>
</pre>
<p>Note: The <strong>pageConfigurationId</strong> would be the
individual configuration (ie HTML or XML).</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/208820472012-11-19T14:17:23Z2012-11-19T14:17:23ZConfiguration Publishing<div><p>Perfect, thanks!</p></div>thugsb