I have a wsdl file that starts with:
Code: Select all
<?xml version='1.0' encoding='ISO-8859-1'?>The wsdl file is saved in ISO-8859-1 format.
The client is defined as:
Code: Select all
$cliente = new SoapClient("file.wsdl",
array('style' => SOAP_RPC,
'use' => SOAP_ENCODED,
'encoding' => 'ISO-8859-1',
'trace' => 1));and i'm keep getting the request and response messages in utf-8 format:
Code: Select all
Request :<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Interacesso" 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:Envelope>
Response :<?xml version="1.0" encoding="UTF-8"?>
......thank you.