Article ID: 117578, created on Sep 30, 2013, last review on May 8, 2014

  • Applies to:
  • Virtual Automation

Symptoms

Creating container using API requests (PHP) fails with the following message:

[code] => 307
[message] => Message processing was terminated because timeout was reached waiting for a response

Cause

There is incorrect structure for XML packet

Resolution

The structure of the packet for creation request should be the following:

$createParam = new stdClass();
$createParam -> config = new stdClass();
$createParam -> config -> name = "testv1";
$createParam -> config -> hostname = "cloneTestv1";
$createParam -> config -> type="virtuozzo";    
$createParam -> config -> base_sample_id = "6b031d4b-346c-324a-baf2-0e898dac3552";
$createParam -> config -> os_template = new stdClass();
$createParam -> config -> os_template -> name = ".centos-5-x86_64";

Search Words

PHP SOAP API

PHP API

creating container

319940068c5fa20655215d590b7be29b 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF