diff options
author | Filipp Lepalaan <filipp@mac.com> | 2011-10-10 09:21:56 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2011-10-10 09:21:56 +0300 |
commit | f08692025def2e9382dd19ec27b2aee73f1d551f (patch) | |
tree | b2fec2dfe88743cdb979ed47bfa8f24227455102 | |
parent | 0f153b0097e373448c5830ad67fcbfeea8ce5f2a (diff) | |
download | gsxlib-f08692025def2e9382dd19ec27b2aee73f1d551f.tar.gz gsxlib-f08692025def2e9382dd19ec27b2aee73f1d551f.tar.bz2 gsxlib-f08692025def2e9382dd19ec27b2aee73f1d551f.zip |
added GSX 2 WSDL support
-rw-r--r-- | gsxlib.php | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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; - + } /** |