[wsf-c-dev] svn commit r390 - wsf/php/src/samples

svn at wso2.com svn at wso2.com
Wed Jan 10 22:39:41 PST 2007


Author: buddhika
Date: Wed Jan 10 22:39:36 2007
New Revision: 390

Modified:
   wsf/php/src/samples/wsdl_service.php
Log:
modifing sample


Modified: wsf/php/src/samples/wsdl_service.php
==============================================================================
--- wsf/php/src/samples/wsdl_service.php	(original)
+++ wsf/php/src/samples/wsdl_service.php	Wed Jan 10 22:39:36 2007
@@ -16,52 +16,55 @@
  */
 
 
-  /** The Add function
-   * @param int $x
-   * @param int $y
-   * @return int
-   */
-  function addFunction($x,$y) 
-  {
+/** The Add function
+ * @param int $count the number of widgets to buy
+ * (maps to the xs:nonNegativeInteger XML schema type )
+ * @param string $date the datethose items were sold
+ * (maps to the xs:gDay XML schema type)
+ * @return string $t time for buying it
+ *(maps to the xs:QName XML schema type )
+ */
+function addFunction($x,$y)
+{
+    return $x+$y;
+}
+
+/** The new function
+ * @param float $count the number of widgets to buy
+ * (maps to the xs:double XML schema type )
+ * @param string $date the datethose items were sold
+ * (maps to the xs:NOTATION XML schema type)
+ * @return string $t time for buying it
+ *(maps to the xs:base64Binary XML schema type )
+ */
+function newFunction($x,$y)
+{
     return $x+$y;
-  }
+}
+
+/** The type Missmatch function
+ * @param boolean $boolean the number of widgets to buy
+ * (maps to the xs:int XML schema type )
+ * @param string $date the datethose items were sold
+ * (maps to the xs:gYear XML schema type)
+ * @return int $t time for buying it
+ *(maps to the xs:language XML schema type )
+ */
+function missmatchType($x,$y)
+{
+    return $x+$y;
+}
+
+
+
+
+$operations = array("function1"=>"addFunction",
+		    "function2"=>"newFunction",
+		    "wrongTypes"=>"missmatchType");
 
-  /** The Sub function
-   * @param int $a
-   * @param int $b
-   * @return int
-   */
-  function subFunction($a,$b) 
-  {
-    return $x-$y;
-  }
-
- /** The Mul function
-   * @param int $c
-   * @param int $d
-   * @return int
-   */
-  function mulFunction($c,$d) 
-  {
-    return $x*$y;
-  }
-
-  /** The Div function
-   * @param int $e
-   * @param int $f
-   * @return int
-   */
-  function divFunction($e,$f) 
-  {
-    return $x%$y;
-  }
-
-$operations = array("Add"=>"addFunction",
-		    "Sub"=>"subFunction",
-		    "Mul"=>"mulFunction",
-		    "Div"=>"divFunction");
+//$svr = new WSService(array("operations"=>$operations, "bindingStyle"=>"doc-lit"));
+$svr = new WSService(array("operations"=>$operations, "bindingStyle"=>"doc-lit"));
 
-$svr = new WSService(array("operations"=>$operations));
 
 $svr->reply();
 




More information about the Wsf-c-dev mailing list