Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my test case:
- <?php
- $client = new SoapClient("http://www.scottnichol.com/samples/hellowsdl2.php?wsdl&debug=1",array(
- "trace"=>1,
- $obj = $client->hello(array('firstname'=>"Scott",'age'=>"50",'gender'=>"M"));
- $xml = simplexml_load_string($client->__getLastRequest());
- $json= json_encode($xml);
- var_dump($xml);
- echo "<BR>";
- var_dump ($json);
- ?>
- The result:
- Output for 4.4.2 - 4.4.9, 5.1.0 - 5.5.8
- Parse error: syntax error, unexpected ';', expecting ')' in /in/ju1MQ on line 4
- Process exited with code 255.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement