Hello World! XML; try { $reqMessage = new WSMessage($requestPayloadString, array( "to" => "http://localhost/samples/echo_service_addr.php", "action" => "http://wso2.org/wsfphp/samples/echoString")); $client = new WSClient(array("useWSA" => TRUE)); $responseMessage = $client->request($reqMessage); printf("Response = %s \n", htmlspecialchars($responseMessage->str)); } catch (Exception $e) { if ($e instanceof WSFault) { printf("Soap Fault : %s\n", $e->Reason); } else { printf("Message = %s\n",$e->getMessage()); } } ?>