Webservice._pike
Go to the documentation of this file.
1 /*0*/
2 inherit "/classes/Script";
3 inherit "/base/webservice";
4 #include <macros.h>
5 #include <database.h>
6 #include <exception.h>
7 #include <classes.h>
8 #include <attributes.h>
9 #include <types.h>
10 class Webservice : public Script,webservice{
11 public:
12 
13 import soap;
14 
15 
16 
17 private:
18  void init_webservice() { }
19 
20 public:
21 protected:
22  void create_webservice() { }
23 
24 public:
25 protected:
26  void load_webservice() { }
27 
28 public:
29 
30 protected:
31  void init()
32 {
33  ::init();
34  init_webservice();
35 }
36 
37 public:
38 
39 protected:
40  void create_object()
41 {
42  create_webservice();
43 }
44 
45 public:
46 
47 protected:
48  void load_object()
49 {
50  load_webservice();
51 }
52 
53 public:
54 
55 string get_webservice_name() { return "service"; }
56 string get_webservice_urn() { return "service"; }
57 
58 mixed execute(mapping vars)
59 {
60  if ( vars->wsdl ) {
61  return ({ show_wsdl(), "text/xml" });
62  }
63 }
64 
65 int get_object_class() { return ::get_object_class() | CLASS_WEBSERVICE; }
66 string describe() { return _sprintf(); }
67 
68 
69 };