0
我已经在zend框架2中创建了一个Soap Web服务,这个WS作为一个模块在理论上工作正常,但我的客户端无法读取或得到响应。肥皂服务zf2返回无效xml
这是响应,我不确定这个响应是否确定,我的意思是为什么要显示这种方式?
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://evaluaciones.dev.com/soporte?wsdl" 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:getCountUserByNameResponse><return xsi:type="xsd:int">687</return></ns1:getCountUserByNameResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
这是一个可以正常工作的WS响应。
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tid.pruebas.com/webservice-soporte-portal" 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:Body>
<ns1:getCountUserByNameResponse>
<return xsi:type="xsd:int">1290</return>
</ns1:getCountUserByNameResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
在这一点上,我只想知道这种情况是否会影响客户端的响应解释?
我明白了,问题必须是客户端,我认为zfw版本可能会有所作为,客户端(2.0.3)的版本比WS(2.3.9)早。 – cenceros
嗯,从这篇文章到今天,我再次遇到这个问题,在这种情况下,我把整个模块到其他zf proyect和web服务实际工作,但在原来不是,我找不到问题,有人可以帮助我? – cenceros