コード例 #1
0
ファイル: SoapHookTest.php プロジェクト: alnutile/drunatra
 public function testShouldHandleSOAPVersion12()
 {
     $expectedHeader = 'application/soap+xml; charset=utf-8; action="http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP"';
     $this->soapHook->enable($this->getHeaderCheckCallback($expectedHeader));
     $client = new \SoapClient('http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL', array('soap_version' => SOAP_1_2));
     $client->setLibraryHook($this->soapHook);
     $client->GetCityWeatherByZIP(array('ZIP' => '10013'));
 }