Skip to content

Commit f15ac57

Browse files
committed
Fixed ping service (after string replace).
1 parent e126cb5 commit f15ac57

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/org/nameapi/client/services/system/pinger/PingerService.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace org\nameapi\client\services\system\ping;
44

5-
use org\nameapi\client\commonwsdl\PriceArguments;
65
use org\nameapi\ontology\input\context\Context;
76

87
require_once('wsdl/SoapPingerService.php');
@@ -23,14 +22,6 @@ public function __construct(Context $context) {
2322
$this->soapPingerService = new wsdl\SoapPingerService();
2423
}
2524

26-
/**
27-
* @return int
28-
*/
29-
public function price() {
30-
$parameters = new PriceArguments();
31-
return $this->soapPingerService->price($parameters)->getReturn();
32-
}
33-
3425
/**
3526
* @return string
3627
*/

src/org/nameapi/client/services/system/pinger/wsdl/SoapPingerService.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace org\nameapi\client\services\system\ping\wsdl;
44

5-
use org\nameapi\client\commonwsdl\PriceArguments;
6-
use org\nameapi\client\commonwsdl\PriceResponse;
75
use org\nameapi\client\services\BaseSoapClient;
86

97
require_once(__DIR__.'/../../../Util.php');
@@ -18,7 +16,7 @@
1816
class SoapPingerService extends BaseSoapClient {
1917

2018
private static $classmap = array(
21-
'pinger' => 'org\nameapi\client\services\system\ping\wsdl\PingArguments',
19+
'ping' => 'org\nameapi\client\services\system\ping\wsdl\PingArguments',
2220
'pingResponse' => 'org\nameapi\client\services\system\ping\wsdl\PingResponse',
2321
);
2422

@@ -31,20 +29,13 @@ public function __construct(array $options = array(), $wsdl = 'http://api.nameap
3129
parent::__construct($wsdl, self::$classmap, $options);
3230
}
3331

34-
/**
35-
* @param PriceArguments $parameters
36-
* @return PriceResponse
37-
*/
38-
public function price(PriceArguments $parameters) {
39-
return $this->__soapCall('price', array($parameters));
40-
}
4132

4233
/**
4334
* @param PingArguments $parameters
4435
* @return PingResponse
4536
*/
4637
public function ping(PingArguments $parameters) {
47-
return $this->__soapCall('pinger', array($parameters));
38+
return $this->__soapCall('ping', array($parameters));
4839
}
4940

5041
}

0 commit comments

Comments
 (0)