Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php Soapserver为空php://input_Php_Soap - Fatal编程技术网

php Soapserver为空php://input

php Soapserver为空php://input,php,soap,Php,Soap,我正在设置soapserver,由于某种原因,在尝试连接文件\u get\u内容时('php://input“)是空的 在Fiddler中,我可以看到clientprogram实际上发送了以下内容: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001

我正在设置soapserver,由于某种原因,在尝试连接文件\u get\u内容时('php://input“)是空的

在Fiddler中,我可以看到clientprogram实际上发送了以下内容:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><AuthenticationHeader xmlns="http://www.cito.nl/DULTService/"><Username>dult</Username><Password>dult</Password><Brincode>99DE00</Brincode></AuthenticationHeader></soap:Header><soap:Body><DULTValidateCredentials xmlns="http://www.cito.nl/DULTService/" /></soap:Body></soap:Envelope>
dultdult99DE00
soapclient首先发送两个空调用,然后再发送上面的一个,不确定这是否相关


非常感谢您的帮助

为什么需要
php://input
是否不为空?你想用它来代替SoapServer吗?我需要阅读正在发送的xml,检查用户名/密码并发送正确的响应。顺便说一句,如果我使用$server->handle()函数“DULTValidateCredentials”也从未调用过。当您使用
SoapServer
SoapClient
时,绝对不需要直接处理XML请求和响应。我会看看是否能找到PHP+SOAP教程。谢谢你。我使用$server->handle(),它总是工作并在指定的类中调用适当的函数。但在这种情况下,情况并非如此。这就是我检查的原因php://input 那总是空的。