SOAPServer+php+iisv6(结束标记不正确)

SOAPServer+php+iisv6(结束标记不正确),php,iis-6,soapserver,Php,Iis 6,Soapserver,谢谢你的阅读。我在使用php中的SOAPServer类时遇到了一个大问题 当我们进行测试时,我们有这样的反应,这很好: <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:WSDL" xmlns:xsd="http:/

谢谢你的阅读。我在使用php中的SOAPServer类时遇到了一个大问题

当我们进行测试时,我们有这样的反应,这很好:

    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn: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:Body>
          <ns1:NotificacionClienteResponse>
             <NotificacionClienteReturn xsi:type="xsd:string"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
                <NotificacionCliente>
                   <RESULTADO>
                      <CODIGORETORNO>8</CODIGORETORNO>
                      <DESCRIPCIONRETORNO>Xml incorrecto</DESCRIPCIONRETORNO>
                   </RESULTADO>
                </NotificacionCliente>]]>
             </NotificacionClienteReturn>
          </ns1:NotificacionClienteResponse>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
但当我们做同样的事情时,但在其他服务器中,我们有以下响应:

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn: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:NotificacionClienteResponse>
               <NotificacionClienteReturn xsi:type="xsd:string">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
                   &lt;NotificacionCliente&gt;
                      &lt;RESULTADO&gt;
                         &lt;CODIGORETORNO&gt;8&lt;/CODIGORETORNO&gt;
                         &lt;DESCRIPCIONRETORNO&gt;Xml incorrecto&lt;/DESCRIPCIONRETORNO&gt;
                      &lt;/RESULTADO&gt;
                   &lt;/NotificacionCliente&gt;
                </NotificacionClienteReturn>
           </ns1:NotificacionClienteResponse>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope
正如您在第二个响应中看到的,有3个不同的问题:

它以<和>代替 在xml的末尾缺少de> xml没有格式化,我是为你做的: 有关服务器的信息:

相同的wsdl、web服务器、php_soap.dll、php.ini 我们使用IISV6和PHPV5.2.9-2 php以这种方式调用SOAPServer,在两个服务器中:

新的SOAPServer$Path,数组“encoding”=>“ISO-8859-1”

好吧,你能告诉我们的任何信息或任何你认为值得尝试的线索都告诉它。。。 当然,如果你需要更多的信息也一样


提前谢谢大家

请更正格式,尤其是代码部分。如果你想让别人读,不要让它更难。阿里,我有正确的格式,谢谢!我在使用Apache/2.2.22 Debian和php5.4.45-0+deb7u1时遇到了缺少结尾“>”的问题。尝试了各种编码-没有帮助。如果消息没有soap信封中的大量字节那么长,则不会发生这种情况。