Skip to content
Snippets Groups Projects
Commit 49398c86 authored by Andy Summers's avatar Andy Summers
Browse files

Support QA and DV CBS environments

parent d5110a47
No related branches found
No related tags found
1 merge request!64Define contract for creating SOAP clients with WSDLs
{
"name": "adi-ia/cbs-techstore-client-php",
"description": "A PHP client used to connect with the CBS API and perform requests",
"version": "5.0.4",
"version": "6.0.0",
"license": "Apache-2.0",
"homepage": "https://wiki.doit.wisc.edu/confluence/display/ADIIA/CBS",
"authors": [
......
......@@ -7,13 +7,6 @@ namespace edu\wisc\services\cbs\api;
interface SoapService extends Service
{
/** Paths to QA CBS WSDLs */
const QA_HEADER = __DIR__ . '/../../../../../resources/doit_soa_order_iface_h_v2.xml';
const QA_LINE = __DIR__ . '/../../../../../resources/doit_soa_order_iface_l_v2.xml';
const QA_PAYMENT = __DIR__ . '/../../../../../resources/doit_soa_payment_v2.xml';
const QA_INTERFACING = __DIR__ . '/../../../../../resources/doit_soa_order_iface_i_v2.xml';
const QA_PRICE = __DIR__ . '/../../../../resources/doit_soa_pricing_v2.xml';
/**
* A SOAP service is constructed with a username and password. If a {@link \SoapClient} is provided, the username
* and password are ignored.
......
......@@ -14,6 +14,11 @@ use edu\wisc\services\cbs\order\OrderServiceResponse;
class SoapOrderHeaderService implements OrderHeaderService, SoapService
{
/** URL for QA WSDL */
const CBQA12 = 'http://pegasus.doit.wisc.edu:8018/webservices/SOAProvider/plsql/doit_soa_order_iface_h_v2/?wsdl';
/** URL for DV WSDL */
const CBDV12 = 'http://pegasus.doit.wisc.edu:8016/webservices/SOAProvider/plsql/doit_soa_order_iface_h_v2/?wsdl';
/** @var DOIT_SOA_ORDER_IFACE_H_V2_Service */
private $soapClient;
......
......@@ -13,6 +13,11 @@ use edu\wisc\services\cbs\order\OrderServiceResponse;
class SoapOrderInterfacingService implements OrderInterfacingService, SoapService
{
/** URL for QA WSDL */
const CBQA12 = 'http://pegasus.doit.wisc.edu:8018/webservices/SOAProvider/plsql/doit_soa_order_iface_i_v2/?wsdl';
/** URL for DV WSDL */
const CBDV12 = 'http://pegasus.doit.wisc.edu:8016/webservices/SOAProvider/plsql/doit_soa_order_iface_i_v2/?wsdl';
/** @var DOIT_SOA_ORDER_IFACE_I_V2_Service */
private $soapClient;
......
......@@ -10,6 +10,11 @@ use edu\wisc\services\cbs\order\OrderServiceResponse;
class SoapOrderLineService implements SoapService, OrderLineService
{
/** URL for QA WSDL */
const CBQA12 = 'http://pegasus.doit.wisc.edu:8018/webservices/SOAProvider/plsql/doit_soa_order_iface_l_v2/?wsdl';
/** URL for DV WSDL */
const CBDV12 = 'http://pegasus.doit.wisc.edu:8016/webservices/SOAProvider/plsql/doit_soa_order_iface_l_v2/?wsdl';
/** @var DOIT_SOA_ORDER_IFACE_L_V2_Service */
private $soapClient;
......
......@@ -15,6 +15,11 @@ use Money\Money;
class SoapOrderPaymentService implements OrderPaymentService, SoapService
{
/** URL for QA WSDL */
const CBQA12 = 'http://pegasus.doit.wisc.edu:8018/webservices/SOAProvider/plsql/doit_soa_payment_v2/?wsdl';
/** URL for DV WSDL */
const CBDV12 = 'http://pegasus.doit.wisc.edu:8016/webservices/SOAProvider/plsql/doit_soa_payment_v2/?wsdl';
/** @var DOIT_SOA_PAYMENT_V2_Service */
private $soapClient;
......
......@@ -14,6 +14,11 @@ use Money\Money;
class SoapPriceService implements PriceService, SoapService
{
/** URL for QA WSLD */
const CBQA12 = 'http://pegasus.doit.wisc.edu:8018/webservices/SOAProvider/plsql/doit_soa_pricing_v2/?wsdl';
/** URL for DV WSDL */
const CBDV12 = 'http://pegasus.doit.wisc.edu:8016/webservices/SOAProvider/plsql/doit_soa_pricing_v2/?wsdl';
/** @var \SoapClient */
private $soapClient;
......
......@@ -14,6 +14,13 @@ use edu\wisc\services\cbs\product\update\generated\DOIT_SOA_ITEM_UPDATE_V4_Servi
class SoapProductService implements ProductService
{
/** URLS for QA WSDLs */
const CBQA12_CREATE = 'http://pegasus.doit.wisc.edu:8018/webservices/SOAProvider/plsql/doit_soa_item_create_v4/?wsdl';
const CBQA12_UPDATE = 'http://pegasus.doit.wisc.edu:8018/webservices/SOAProvider/plsql/doit_soa_item_update_v4/?wsdl';
/** URLs for DV WSDLs */
const CBDV12_CREATE = 'http://pegasus.doit.wisc.edu:8016/webservices/SOAProvider/plsql/doit_soa_item_create_v4/?wsdl';
const CBDV12_UPDATE = 'http://pegasus.doit.wisc.edu:8016/webservices/SOAProvider/plsql/doit_soa_item_update_v4/?wsdl';
/** @var DOIT_SOA_ITEM_CREATE_V4_Service */
private $productCreateSoapClient;
......
......@@ -35,7 +35,7 @@ class SoapOrderHeaderServiceIT extends IntegrationTestCase
$soapOrderHeaderService = new SoapOrderHeaderService(
static::$itData['cbs.username'],
static::$itData['cbs.password'],
SoapService::QA_HEADER
SoapOrderHeaderService::CBQA12
);
static::assertNotNull($soapOrderHeaderService);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment