The reason I'm asking is because I did find some examples on the web, and they don't seem to work here (PHP parser errors).
Thanks.
[COLOR=#6633FF]<?php[/COLOR]
[COLOR=#6633FF]$requestPayload = <<<XML[/COLOR]
[COLOR=#6633FF]<calculate>[/COLOR]
[COLOR=#6633FF]<param1>100</param1>[/COLOR]
[COLOR=#6633FF]<param2>43</param2>[/COLOR]
[COLOR=#6633FF]<param3>add</param3>[/COLOR]
[COLOR=#6633FF]</calculate>[/COLOR]
[COLOR=#6633FF]XML;[/COLOR]
[COLOR=#6633FF]try{[/COLOR]
[COLOR=#6633FF]$message = new WSMessage($requestPayload,[/COLOR]
[COLOR=#6633FF] array("to" => "http://localhost:81/CalculatorService.php"));[/COLOR]
[COLOR=#6633FF]$client = new WSClient();[/COLOR]
[COLOR=#6633FF]$response = $client->request($message); [/COLOR]
[COLOR=#6633FF]echo "Answer : $response->str";[/COLOR]
[COLOR=#6633FF]}[/COLOR]
[COLOR=#6633FF]catch (Exception $e){ [/COLOR]
[COLOR=#6633FF]if ($e instanceof WSFault){[/COLOR]
[COLOR=#6633FF] $fault = $e;[/COLOR]
[COLOR=#6633FF] printf("Soap Fault received. Code: '%s' .Reason: '%s'\n",[/COLOR]
[COLOR=#6633FF] $fault->code, $fault->reason);[/COLOR]
[COLOR=#6633FF]}else{[/COLOR]
[COLOR=#6633FF] printf("Exception occurred. Message: '%s'\n", $e->getMessage());[/COLOR]
[COLOR=#6633FF]}[/COLOR]
[COLOR=#6633FF]}[/COLOR]
[COLOR=#6633FF]?>[/COLOR]