[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-commits
Subject:    [Wsf-c-commits] svn commit r19905 - trunk/wsf/php/docs
From:       nandika () wso2 ! com
Date:       2008-07-23 11:41:06
Message-ID: E1KLciQ-0004DF-3T () wso2 ! org
[Download RAW message or body]

Author: nandika
Date: Wed Jul 23 04:41:05 2008
New Revision: 19905
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19905

Log:
manual updated

Modified:
   trunk/wsf/php/docs/wsdl_manual.html

Modified: trunk/wsf/php/docs/wsdl_manual.html
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/php/docs/wsdl_manual.html?rev=19905&r1=19904&r2=19905&view=diff
 ==============================================================================
--- trunk/wsf/php/docs/wsdl_manual.html	(original)
+++ trunk/wsf/php/docs/wsdl_manual.html	Wed Jul 23 04:41:05 2008
@@ -364,7 +364,8 @@
 You can use the <a href="wsdl_manual.html#4">wsdl2php.php script</a> to generate the \
classes for the WSDL.  </p>
 
-<pre class="php"><span style="color: rgb(0, 0, 0); font-weight: bold;">class</span> \
orderInfo <span style="color: rgb(102, 204, 102);">{</span>  +<pre class="php">
+<span style="color: rgb(0, 0, 0); font-weight: bold;">class</span> orderInfo <span \
style="color: rgb(102, 204, 102);">{</span>   <span style="color: rgb(0, 0, 0); \
font-weight: bold;">public</span> <span style="color: rgb(0, 0, \
255);">$productName</span>; <span style="color: rgb(128, 128, 128); font-style: \
italic;">// string</span>  <span style="color: rgb(0, 0, 0); font-weight: \
bold;">public</span> <span style="color: rgb(0, 0, 255);">$quantity</span>; <span \
style="color: rgb(128, 128, 128); font-style: italic;">// float</span>  
@@ -442,7 +443,24 @@
     <span style="color: rgb(0, 0, 255);">$return_value</span>-&gt;<span \
style="color: rgb(0, 102, 0);">product</span> = <span style="color: rgb(0, 0, \
                255);">$product</span>;
     <span style="color: rgb(177, 177, 0);">return</span> <span style="color: rgb(0, \
0, 255);">$return_value</span>;  
-<span style="color: rgb(102, 204, 102);">}</span></pre>
+<span style="color: rgb(102, 204, 102);">}
+<span style="color: black"><span style="color: blue">
+$operations</span> = array( "<span style="color: red">QueryPurchaseOrder</span>"
+    =&gt; "<span style="color: red">QueryPurchaseOrder</span>"); 
+
+// define the actions =&gt; operations map 
+
+<span style="color: blue">$actions</span> = array( "<span style="color: \
red">http://www.wso2.org/php/QueryPurchaseOrder</span>" =&gt; "<span style="color: \
red">QueryPurchaseOrder</span>");  +// create service in WSDL mode 
+
+<span style="color: blue">$service</span> = new WSService(array ("<span
+        style="color: red">wsdl</span>" =&gt;"<span style="color: \
red">sample_wsdl_11.wsdl</span>", +    "<span style="color: red">actions</span>" \
=&gt; $actions,  +	"<span style="color: red">classmap</span>" =&gt; $class_map, \
"<span style="color: red">operations</span>" =&gt; $operations));  +// process client \
requests and reply  +
+<span style="color: blue">$service</span>-&gt;reply();
+</span></span></pre>
 
 <h3 id="3">10.3. WSDL Generation for a Given Service</h3>
 
@@ -485,7 +503,6 @@
 </p>
 
 <pre>
-
 Usage: <i>php wsdl2php.php [-s] &lt;wsdl&gt; </i>
     wsdl - URL or path to WSDL file
 

_______________________________________________
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