PHP SOAP服务器正在发回部分响应
我已经编写了一个SOAP服务,因此我的Silverlight应用程序可以将entires添加到我的数据库中。服务器是用PHP编写的,为了测试一切,我编写了一个PHP客户端 我的客户发送的请求似乎是正确的。这是调用_getLastRequest()时生成的:PHP SOAP服务器正在发回部分响应,soap,response,soapserver,Soap,Response,Soapserver,我已经编写了一个SOAP服务,因此我的Silverlight应用程序可以将entires添加到我的数据库中。服务器是用PHP编写的,为了测试一切,我编写了一个PHP客户端 我的客户发送的请求似乎是正确的。这是调用_getLastRequest()时生成的: 1. 1. 1. Web服务测试 测试 但是,当服务器响应时,仅显示部分消息: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:S
1.
1.
1.
Web服务测试
测试
但是,当服务器响应时,仅显示部分消息:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:blogPosts"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:saveBlogPostRe
我的解决方案:忘记SOAP,使用REST:)哦,响应应该返回为布尔值。在被调用的函数中,我只是返回true。
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:blogPosts"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:saveBlogPostRe