PHP Classes

File: tests/resources/generated/ValidApiCreate.php

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP SOAP Package Generator  >  tests/resources/generated/ValidApiCreate.php  >  Download  
File: tests/resources/generated/ValidApiCreate.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP SOAP Package Generator
Generate package to call SOAP services using WSDL
Author: By
Last change:
Date: 6 years ago
Size: 2,470 bytes
 

Contents

Class file image Download
<?php

namespace Api\ServiceType;

use \
WsdlToPhp\PackageBase\AbstractSoapClientBase;

/**
 * This class stands for Create ServiceType
 * @package Api
 * @subpackage Services
 * @release 1.1.0
 */
class ApiCreate extends AbstractSoapClientBase
{
   
/**
     * Method to call the operation originally named CreateQueue
     * Meta informations extracted from the WSDL
     * - documentation: The CreateQueue action creates a new queue, or returns the URL of an existing one. When you request CreateQueue, you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the
     * scope of your own queues. If you provide the name of an existing queue, a new queue isn't created and an error isn't returned. Instead, the request succeeds and the queue URL for the existing queue is returned. A CreateQueue call may include
     * attributes to set on a newly created queue. The effect is the same as the CreateQueue call followed by a SetQueueAttributes call (with the same attributes). However, when the queue already exists CreateQueue will not update any attributes. It simply
     * compares the attribute values provided with the current settings on the existing queue, and returns the queue URL if the values match. Otherwise, it responds with an error otherwise. SetQueueAttributes should be used to change the values of
     * attributes for an existing queue.
     * @uses AbstractSoapClientBase::getSoapClient()
     * @uses AbstractSoapClientBase::setResult()
     * @uses AbstractSoapClientBase::getResult()
     * @uses AbstractSoapClientBase::saveLastError()
     * @param \Api\StructType\ApiCreateQueue $body
     * @return \Api\StructType\ApiCreateQueueResponse|bool
     */
   
public function CreateQueue(\Api\StructType\ApiCreateQueue $body)
    {
        try {
           
$this->setResult(self::getSoapClient()->CreateQueue($body));
            return
$this->getResult();
        } catch (\
SoapFault $soapFault) {
           
$this->saveLastError(__METHOD__, $soapFault);
            return
false;
        }
    }
   
/**
     * Returns the result
     * @see AbstractSoapClientBase::getResult()
     * @return \Api\StructType\ApiCreateQueueResponse
     */
   
public function getResult()
    {
        return
parent::getResult();
    }
   
/**
     * Method returning the class name
     * @return string __CLASS__
     */
   
public function __toString()
    {
        return
__CLASS__;
    }
}

For more information send a message to info at phpclasses dot org.