Overview

Namespaces

  • None
  • PHP
  • tschiemer
    • Aspsms
      • Http
      • Soap
      • Xml

Classes

  • SoapClient
  • SoapSimpleClient
  • Overview
  • Namespace
  • Class
  • Tree

Class SoapClient

SOAP driver / interface.

tschiemer\Aspsms\AbstractClient
Extended by tschiemer\Aspsms\Soap\SoapClient
Namespace: tschiemer\Aspsms\Soap
Package: aspsms
Copyright: 2013 Philip Tschiemer, <tschiemer@filou.se>
License: v3 http://www.gnu.org/licenses/lgpl-3.0.txt
Version: 1.1.0
Link: https://github.com/tschiemer/aspsms-php
Located at lib/tschiemer/Aspsms/Soap/SoapClient.php
Methods summary
public
# __construct( string $options = array() )

Constructor, initialize and configure SoapClient Possible options (to be passed in assoc array):

Constructor, initialize and configure SoapClient Possible options (to be passed in assoc array):

"wsdl" optional WSDL resource to rely upon "soap" optional SOAP options

Parameters

$options
string
$wsdl

Throws

SoapFault
Most likely

See

tschiemer\Aspsms\Soap\SoapClient::$wsdl
tschiemer\Aspsms\Soap\SoapClient::$soapOpt
public array
# send( Aspsms\Request $request )

Send given request.

Send given request.

Parameters

$request
Aspsms\Request
$request

Returns

array

Throws

AspsmsException

See

AbstractClient::getResponse()
public
# post_default( )

Default Post-Processor (applied if no specific PP to be used)

Default Post-Processor (applied if no specific PP to be used)

public
# post_CheckCredits( )

Post-Processing for CheckCredits

Post-Processing for CheckCredits

public
# post_GetStatusCodeDescription( )

If invalid status code given, returns status code as description

If invalid status code given, returns status code as description

public
# post_CheckOriginatorAuthorization( )
public
# post_InquireDeliveryNotifications( )

Post-Processing for InquireDeliveryNotifications

Post-Processing for InquireDeliveryNotifications

public
# post_VersionInfo( )

Post-Processing for VersionInfo

Post-Processing for VersionInfo

Creates an associative array with complete response, service version and build number.

Methods inherited from tschiemer\Aspsms\AbstractClient
canProcess(), clear(), getResponse()
Properties summary
public string $wsdl 'https://webservice.aspsms.com/aspsmsx2.asmx?WSDL'
#

Default WSDL source

Default WSDL source

public SoapClient $soap
#
public array $soapOpt array( // 'cache_wsdl' => WSDL_CACHE_NONE, 'user_agent' => 'aspsms-php v1 soap:1' )
#

List or default SOAP options

List or default SOAP options

public array[] $requests array( 'getVersion' => array( 'service' => 'VersionInfo' ), 'getCredits' => array( 'service' => 'CheckCredits', 'param' => array( 'UserKey' => '', 'Password' => '' )), 'getStatusCodeDescription' => array( 'service' => 'GetStatusCodeDescription', 'param' => array( 'StatusCode' => '' )), 'sendText' => array( 'service' => 'SendUnicodeSMS', 'param' => array( 'UserKey' => '', 'Password' => '', 'Recipients'=> '', 'Originator'=> '', 'MessageText' => '', 'DeferredDeliveryTime' => '', 'FlashingSMS'=> '', 'TimeZone' => '', 'URLBufferedMessageNotification' => '', 'URLDeliveryNotification' => '', 'URLNonDeliveryNotification' => '', 'AffiliateId' => '' )), 'sendWapPush' => array( 'service' => 'SimpleWAPPush', 'param' => array( 'UserKey' => '', 'Password' => '', 'Recipients'=> '', 'Originator'=> '', 'WapDescription' => '', 'WapURL' => '', 'DeferredDeliveryTime' => '', 'FlashingSMS'=> '', 'TimeZone' => '', 'URLBufferedMessageNotification' => '', 'URLDeliveryNotification' => '', 'URLNonDeliveryNotification' => '', 'AffiliateId' => '' )), 'sendToken' => array( 'service' => 'SendTokenSMS', 'param' => array( 'UserKey' => '', 'Password' => '', 'Recipients'=> '', 'Originator'=> '', 'MessageData'=>'', 'TokenReference'=>'', 'TokenValidity'=>'5', 'TokenMask' => '', 'VerificationCode' => '', 'TokenCaseSensitive' => '0', 'URLBufferedMessageNotification' => '', 'URLDeliveryNotification' => '', 'URLNonDeliveryNotification' => '', 'AffiliateId' => '' )), 'verifyToken' => array( 'service' => 'VerifyToken', 'param' => array( 'UserKey' => '', 'Password' => '', 'PhoneNumber'=> '', 'TokenReference'=>'', 'VerificationCode' => '', )), 'getDeliveryStatus' => array( 'service' => 'InquireDeliveryNotifications', 'param' => array( 'UserKey' => '', 'Password' => '', 'TransactionReferenceNumbers'=> '' )), 'checkOriginator' => array( 'service' => 'CheckOriginatorAuthorization', 'param' => array( 'UserKey' => '', 'Password' => '', 'Originator'=> '' )), 'sendOriginatorCode' => array( 'service' => 'SendOriginatorUnlockCode', 'param' => array( 'UserKey' => '', 'Password' => '', 'Originator'=> '' )), 'unlockOriginator' => array( 'service' => 'UnlockOriginator', 'param' => array( 'UserKey' => '', 'Password' => '', 'Originator'=> '', 'OriginatorUnlockCode'=>'', 'AffiliateId'=> '' )) )
#

Request configuration

Request configuration

Foreach request: 'service' := actual service name to use 'param' := list of fields and default settings to use

Properties inherited from tschiemer\Aspsms\AbstractClient
$request, $response
aspsms-php API documentation generated by ApiGen 2.8.0