From f08692025def2e9382dd19ec27b2aee73f1d551f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 10 Oct 2011 09:21:56 +0300 Subject: added GSX 2 WSDL support --- gsxlib.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gsxlib.php b/gsxlib.php index d27ee7b..fe25b00 100644 --- a/gsxlib.php +++ b/gsxlib.php @@ -44,7 +44,14 @@ class GsxLib } } - $wsdl = 'https://gsxws'.$environment.'.apple.com/gsx-ws/services/'.$region.'/asp?wsdl'; + $wsdl = 'https://gsxws2%s.apple.com/wsdl/%sAsp/gsx-%sAsp.wsdl'; + + if( $environemnt == 'ut' ) { + $wsdl = 'https://gsxws2%s.apple.com/gsx-ws/services/%s/asp?wsdl'; + } + + $wsdl = sprintf( $wsdl, $environment, $region, $region ); + $this->client = new SoapClient($wsdl, array('exceptions' => TRUE, 'trace' => 1)); if (!$this->client) { @@ -268,7 +275,7 @@ class GsxLib )); return $this->request($req)->parts; - + } /** -- cgit v1.2.3