Php 删除响应头-nuSOAP服务器端实例

Php 删除响应头-nuSOAP服务器端实例,php,ws-security,nusoap,pci-dss,Php,Ws Security,Nusoap,Pci Dss,我需要能够限制通过服务器端nuSOAP的send_response()方法发送的内容 当$server->service($HTTP\u RAW\u POST\u DATA)时,它会自动调用私有方法send\u response() (见第236-282行) 我需要在服务器级别抑制此标头。非常感谢您的帮助。这是我的一段代码 $server = new soap_server (); $server->configureWSDL ( "wsprocessor", "urn:wsprocess

我需要能够限制通过服务器端nuSOAP的send_response()方法发送的内容

当$server->service($HTTP\u RAW\u POST\u DATA)时,它会自动调用私有方法send\u response()

(见第236-282行)

我需要在服务器级别抑制此标头。非常感谢您的帮助。这是我的一段代码

$server = new soap_server ();
$server->configureWSDL ( "wsprocessor", "urn:wsprocessor" );
$server->register ( "getRequestReturnResponse", array (
        "$inputXml" => "xsd:string"
), array (
        "return" => "xsd:string"
), "urn:wsprocessor", "urn:wsprocessor#getRequestReturnResponse", "rpc", "encoded", "Get Response back from server as XML String" );

$server->service ( $HTTP_RAW_POST_DATA );

好的,这个问题的答案是一个小小的破解

$server->service ( $HTTP_RAW_POST_DATA );
//Call the following 
header_remove('X-SOAP-Server');
header_remove('X-SOAP-Server:');
header_remove('X-Powered-By');
header_remove('X-Powered-By:');

无论哪一个标题需要删除,请说明我需要在哪里添加这些行?有人能解释清楚吗?