PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Getting Started

Once you have registered for a StrikeIron account and signed up for the Super Data Pack, you're ready to start using Zend_Service_StrikeIron.

StrikeIron consists of hundreds of different web services. Zend_Service_StrikeIron can be used with many of these services but provides supported wrappers for three of them:

The class Zend_Service_StrikeIron provides a simple way of specifying your StrikeIron account information and other options in its constructor. It also has a factory method that will return clients for StrikeIron services:

<?php
$strikeIron 
= new Zend_Service_StrikeIron(array('username' => 'your-username',
                                                
'password' => 'your-password'));

$taxBasic $strikeIron->getService(array('class' => 'SalesUseTaxBasic'));

The getService() method will return a client for any StrikeIron service by the name of its PHP wrapper class. In this case, the name 'SalesUseTaxBasic' refers to the wrapper class Zend_Service_StrikeIron_SalesUseTaxBasic. Wrappers are included for three services and described in Bundled Services.

The getService() method can also return a client for a StrikeIron service that does not yet have a PHP wrapper. This is explained in Using Services by WSDL.

Zend Framework