Advertisement
smaction

caffinated

Jan 22nd, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. my test case:
  2.  
  3. <?php
  4. $client = new SoapClient("http://www.scottnichol.com/samples/hellowsdl2.php?wsdl&debug=1",array(
  5. "trace"=>1,
  6. $obj = $client->hello(array('firstname'=>"Scott",'age'=>"50",'gender'=>"M"));
  7. $xml = simplexml_load_string($client->__getLastRequest());
  8. $json= json_encode($xml);
  9.  
  10. var_dump($xml);
  11. echo "<BR>";
  12. var_dump ($json);
  13.  
  14.  
  15. ?>
  16.  
  17. The result:
  18.  
  19. Output for 4.4.2 - 4.4.9, 5.1.0 - 5.5.8
  20. Parse error: syntax error, unexpected ';', expecting ')' in /in/ju1MQ on line 4
  21.  
  22. Process exited with code 255.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement