Hello,
I've got a problem when I use the XML in-out mode (with php 5.3). I
developed a simple client. I use the XML in-out mode, and i use
SimpleXML to process the result. But I get a weird reaction. Sometimes
the result is good, sometimes the result is modified. I don't understand
why.
This is my code :
$auth = DolibarrParams::toXML();
$payloadMsg = <<<XML
<ws:isValidCivility
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://www.yousign.com/ws/"
xmlns:xs="http://www.w3.org/2000/XMLSchema-instance">
$auth
<civility xsi:type="xsd:string"
xs:type="type:string">$civility</civility>
</ws:isValidCivility>
XML;
$client = new WSClient(array("to"=>$to, "useSOAP" => 1.1));
$res = $client->request($payloadMsg);
$retUser = SimpleXMLElement($res->str);
print_r($retUser);
//Code ...
When I let the code run, I get a result modified but I don't know why.
But, if I put a "return" just after the "print_r($retUser) I get the
good result.
Do you understand this behaviour ?
Thanks for your help,
-- Pallavidino Luc Ingénieur en monétique et sécurité des systèmes Tél.
: +33-6-8070-3133 Mail : [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev