Java Reference
In-Depth Information
37. <option value "Married-AF-spouse"> Married-AF-spouse
38. <option value "Married-civ-spouse" selected > Married-civ-spouse
39. <option value "Married-spouse-absent"> Married-spouse-absent
40. <option value "Never-married"> Never-married
41. <option value "Separated"> Separated
42. <option value "Widowed"> Widowed
43. </select><br/></td>
44. </tr>
45.
46. <tr>
47. <td>capital-gain</td>
48. <td align "Left"><input style "width:100%"
49. type "text" name "capital-gain" value "0"/><br/></td>
50. </tr>
51. </table>
52. <br>
53. <table cellpadding "5" cellspacing "0" border "1" width "50%">
54. <tr align "center">
55. <td><input type "submit" value "SCORE"></td>
56. </tr>
57. </table>
58. </form>
59. <br>
The following sections provide details of the PHP code, which
calls JDM Web services. When calling SOAP invocations through
NuSOAP, the programmer has two design choices: either he provides
the “call” method with arguments directly in XML format, or he
creates structures of recursive arrays that NuSOAP translates in the
proper XML structure. These two options and their use will be
discussed in later sections.
In this example, we assume that some models have been created
in the MOR and are accessible through the data mining engine
(DME) implementation.
14.1.2
Saving the ApplySettings Object
The file Product.php contains the HTML form as well as the call to the
JDM Web services through PHP. Here, we describe how to use the
NuSOAP library [NuSOAP 2004] to call the JDM Web services.
The PHP section starts at line 60, as shown here:
60. <?php
61. function beginsWith( $str, $sub ) {
62. $str strtoupper($str);
63. $sub strtoupper($sub);
 
Search WWH ::




Custom Search