webservice._pike
Go to the documentation of this file.
1 /*0*/
2 #include <attributes.h>
3 #include <macros.h>
4 class webservice {
5 public:
6 import soap;
7 
8 
9  array webservices = ({ });
10 
11 
12  bool do_set_attribute(string key, mixed|void val);
13 
14 protected:
15  void register_webservice(function func, mixed ... params)
16 {
17  object service = ServiceFunction(func, params);
18  webservices += ({ service });
19 }
20 
21 public:
22 
23 protected:
24  void deploy_webservice(string deploy)
25 {
26  do_set_attribute(OBJ_URL, deploy);
27 }
28 
29 public:
30 
31 string show_wsdl()
32 {
33  object ws = Service(this_object());
34  object wsdl = WSDL(ws);
35  return wsdl->render_wsdl();
36 }
37 
38 array get_webservices()
39 {
40  return webservices;
41 }
42 
43 
44 
45 
46 
47 
48 
49 };