Thursday, 3 December 2015

XML : soap service zf2 return invalid xml

I've created a Soap Web Service in zend framework 2, this WS works as a module that in theory works fine but my client can't read or get the response.

This is the response, i'm not sure if this response is ok, i mean why is showing this way?.

   <?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>    

This is a WS response that works fine.

  <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>    

at this point, i just wanna know if this situation can affect the response interpretation in the client?

No comments:

Post a Comment