php Soapserver为空php://input
我正在设置soapserver,由于某种原因,在尝试连接文件\u get\u内容时('php://input“)是空的 在Fiddler中,我可以看到clientprogram实际上发送了以下内容: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
<?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 那总是空的。