Hello World! XML; try { $responseMessage = ws_request($requestPayloadString, array( "to" => "http://localhost/samples/reply_echo_service.php")); printf("Response = %s
", htmlspecialchars($responseMessage->str)); } catch (Exception $e) { if ($e instanceof WSFault) { printf("Soap Fault: %s\n", $e->Reason); } else { printf("Message = %s\n",$e->getMessage()); } } ?>