[prev in list] [next in list] [prev in thread] [next in thread]
List: wsf-c-commits
Subject: [Wsf-c-commits] svn commit r19842 - trunk/wsf/php/src/tests/samples
From: nandika () wso2 ! com
Date: 2008-07-22 7:50:26
Message-ID: E1KLCde-0008Ms-G6 () wso2 ! org
[Download RAW message or body]
Author: nandika
Date: Tue Jul 22 00:50:26 2008
New Revision: 19842
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19842
Log:
tests updated
Modified:
trunk/wsf/php/src/tests/samples/echo_client_rest_GET.phpt
trunk/wsf/php/src/tests/samples/echo_encrypt_client.phpt
trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_TRUE.phpt
trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_X509.phpt
trunk/wsf/php/src/tests/samples/ws_client_useWSA_boolean_FALSE.phpt
Modified: trunk/wsf/php/src/tests/samples/echo_client_rest_GET.phpt
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/php/src/tests/samples/echo_client_rest_GET.phpt?rev=19842&r1=19841&r2=19842&view=diff
==============================================================================
--- trunk/wsf/php/src/tests/samples/echo_client_rest_GET.phpt (original)
+++ trunk/wsf/php/src/tests/samples/echo_client_rest_GET.phpt Tue Jul 22 00:50:26 \
2008 @@ -3,34 +3,35 @@
--FILE--
<?php
-$reqPayloadString = <<<XML
- <ns1:echoString xmlns:ns1="http://php.axis2.org/samples">
+$requestPayloadString = <<<XML
+ <ns1:echoString xmlns:ns1="http://wso2.org/wsfphp/samples">
<text>Hello World!</text>
</ns1:echoString>
XML;
try {
- $client = new WSClient(
- array("to"=>"http://localhost/samples/echo_service_with_rest.php/echoString",
- "useSOAP"=>FALSE,
- "HTTPMethod"=>"GET"));
+ $client = new WSClient( array("to" => \
"http://localhost/samples/echo_service_with_rest.php/echoString", + \
"useSOAP" => FALSE, + "HTTPMethod" => "GET"));
-
- $resMessage = $client->request($reqPayloadString);
+
+ $responseMessage = $client->request($requestPayloadString);
- printf("Response = %s <br>", htmlspecialchars($resMessage->str));
+ printf("Response = %s <br>", htmlspecialchars($responseMessage->str));
} catch (Exception $e) {
- if ($e instanceof WSFault) {
- printf("Error Code: %s\n", $e->httpStatusCode);
- } else {
- printf("Message = %s\n",$e->getMessage());
- }
+ if ($e instanceof WSFault) {
+ printf("Error String: %s\n", $e->str);
+ printf("HTTP Code : %s\n", $e->httpStatusCode);
+ } else {
+ printf("Message = %s\n",$e->getMessage());
+ }
}
+
?>
--EXPECT--
-Response = <echoString><text>Hello \
World!</text><b>b</b></echoString> <br> +Response = \
<echoString><text>Hello World!</text></echoString> <br>
Modified: trunk/wsf/php/src/tests/samples/echo_encrypt_client.phpt
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/php/src/tests/samples/echo_encrypt_client.phpt?rev=19842&r1=19841&r2=19842&view=diff
==============================================================================
--- trunk/wsf/php/src/tests/samples/echo_encrypt_client.phpt (original)
+++ trunk/wsf/php/src/tests/samples/echo_encrypt_client.phpt Tue Jul 22 00:50:26 2008
@@ -13,7 +13,7 @@
$reqMessage = new WSMessage($reqPayloadString,
\
array("to"=>"http://localhost/samples/security/encryption/service.php",
- "action" => \
"http://php.axis2.org/samples/echoString")); + \
"action" => "http://wso2.org/wsfphp/samples/echoString"));
$sec_array = array("encrypt"=>TRUE,
"algorithmSuite" => "Basic256Rsa15",
@@ -43,5 +43,3 @@
?>
--EXPECT--
Response = <ns1:echo xmlns:ns1="http://php.axis2.org/samples"><text>Hello \
World!</text></ns1:echo>
-
-
Modified: trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_TRUE.phpt
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_TRUE.phpt?rev=19842&r1=19841&r2=19842&view=diff
==============================================================================
--- trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_TRUE.phpt (original)
+++ trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_TRUE.phpt Tue Jul 22 \
00:50:26 2008 @@ -13,7 +13,7 @@
$reqMessage = new WSMessage($reqPayloadString,
\
array("to"=>"http://localhost/samples/security/encryption/service.php",
- "action" => \
"http://php.axis2.org/samples/echoString")); + \
"action" => "http://wso2.org/wsfphp/samples/echoString"));
$sec_array = array("encrypt"=>TRUE,
"algorithmSuite" => "Basic256Rsa15",
Modified: trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_X509.phpt
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_X509.phpt?rev=19842&r1=19841&r2=19842&view=diff
==============================================================================
--- trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_X509.phpt (original)
+++ trunk/wsf/php/src/tests/samples/echo_encrypt_client_encr_X509.phpt Tue Jul 22 \
00:50:26 2008 @@ -5,7 +5,7 @@
$reqPayloadString = <<<XML
-<ns1:echo xmlns:ns1="http://php.axis2.org/samples"><text>Hello \
World!</text></ns1:echo> +<ns1:echo \
xmlns:ns1="http://wso2.org/wsfphp/samples"><text>Hello World!</text></ns1:echo> XML;
try {
@@ -14,7 +14,7 @@
$reqMessage = new WSMessage($reqPayloadString,
\
array("to"=>"http://localhost/samples/security/encryption/service.php",
- "action" => \
"http://php.axis2.org/samples/echoString")); + \
"action" => "http://wso2.org/wsfphp/samples/echoString"));
$sec_array = array("encrypt"=>"X509",
"algorithmSuite" => "Basic256Rsa15",
@@ -43,6 +43,6 @@
}
?>
--EXPECT--
-Response = <ns1:echo xmlns:ns1="http://php.axis2.org/samples"><text>Hello \
World!</text></ns1:echo> +Response = <ns1:echo \
xmlns:ns1="http://wso2.org/wsfphp/samples"><text>Hello World!</text></ns1:echo>
Modified: trunk/wsf/php/src/tests/samples/ws_client_useWSA_boolean_FALSE.phpt
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/php/src/tests/samples/ws_client_useWSA_boolean_FALSE.phpt?rev=19842&r1=19841&r2=19842&view=diff
==============================================================================
--- trunk/wsf/php/src/tests/samples/ws_client_useWSA_boolean_FALSE.phpt (original)
+++ trunk/wsf/php/src/tests/samples/ws_client_useWSA_boolean_FALSE.phpt Tue Jul 22 \
00:50:26 2008 @@ -12,7 +12,7 @@
$reqMessage = new WSMessage($reqPayloadString,
array("to"=>"http://localhost/samples/echo_service_addr.php",
- "action" => "http://php.axis2.org/samples/echoString"));
+ "action" => "http://wso2.org/wsfphp/samples/echoString"));
$client = new WSClient(array("useWSA" => FALSE));
_______________________________________________
Wsf-c-commits mailing list
Wsf-c-commits@wso2.org
http://www.wso2.org/cgi-bin/mailman/listinfo/wsf-c-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic