SoapClient调试
SoapClient debugging
我在 Yii 上有一个 PHP 项目调用内部 SOAP 服务 (http://mysite/api/hotels). How (and if ) could I initiate and debug the call to the controllers that are behind the API? I know it's possible to pass XDEBUG_SESSION_START to the URI parameter of the web service, but how do I properly construct SoapClient for it? I attempted passing it through $options as array('location' => 'http://mysite/api/hotels/?XDEBUG_SESSION_START=PHPSTORM) 但没有触发一线断点。
我们决定通过 URL 传递参数 XDEBUG_SESSION_START,这很好地完成了工作。
我在 Yii 上有一个 PHP 项目调用内部 SOAP 服务 (http://mysite/api/hotels). How (and if ) could I initiate and debug the call to the controllers that are behind the API? I know it's possible to pass XDEBUG_SESSION_START to the URI parameter of the web service, but how do I properly construct SoapClient for it? I attempted passing it through $options as array('location' => 'http://mysite/api/hotels/?XDEBUG_SESSION_START=PHPSTORM) 但没有触发一线断点。
我们决定通过 URL 传递参数 XDEBUG_SESSION_START,这很好地完成了工作。