aboutsummaryrefslogtreecommitdiffstats
path: root/gsxlib.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-10-10 09:21:56 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-10-10 09:21:56 +0300
commitf08692025def2e9382dd19ec27b2aee73f1d551f (patch)
treeb2fec2dfe88743cdb979ed47bfa8f24227455102 /gsxlib.php
parent0f153b0097e373448c5830ad67fcbfeea8ce5f2a (diff)
downloadgsxlib-f08692025def2e9382dd19ec27b2aee73f1d551f.tar.gz
gsxlib-f08692025def2e9382dd19ec27b2aee73f1d551f.tar.bz2
gsxlib-f08692025def2e9382dd19ec27b2aee73f1d551f.zip
added GSX 2 WSDL support
Diffstat (limited to 'gsxlib.php')
-rw-r--r--gsxlib.php11
1 files 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;
-
+
}
/**