Advertisement
BlueWall

Integration Example PHP Client

Jul 1st, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $command = json_encode(array('command'=>'test'));
  4.  
  5. $context = stream_context_create(array('http' => array(
  6.    'method' => "POST",
  7.    'header' => "Content-Type: text/xml",
  8.    'content' => $command)));
  9.  
  10. $file = file_get_contents(
  11.     "http://ascent.bluewallgroup.com:8002:/bluewall", // << your url here
  12.     false,
  13.     $context);
  14.  
  15. $msg = json_decode($file, true);
  16. print $msg["Message"]."\n";
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement