2
* Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
3
* CrossWire Bible Society
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation version 2.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
21
char server[] = "http://localhost:18083";
23
int main(int argc, char **argv) {
27
if (soap_call_sword__SWMgr_new(server, NULL, mgr)) {
28
soap_print_fault(stderr);
29
soap_print_fault_location(stderr);
34
if (soap_call_sword__SWMgr_getModulesIterator(server, NULL, mgr, modIt)) {
35
soap_print_fault(stderr);
36
soap_print_fault_location(stderr);
42
if (soap_call_sword__ModList_iterator_val(server, NULL, modIt, module)) {
43
soap_print_fault(stderr);
44
soap_print_fault_location(stderr);
52
if (soap_call_sword__SWModule_getName(server, NULL, module, name)) {
53
soap_print_fault(stderr);
54
soap_print_fault_location(stderr);
57
if (soap_call_sword__SWModule_getDescription(server, NULL, module, desc)) {
58
soap_print_fault(stderr);
59
soap_print_fault_location(stderr);
63
cout << "[" << name << "] " << desc << endl;
65
if (soap_call_sword__ModList_iterator_next(server, NULL, modIt, noop)) {
66
soap_print_fault(stderr);
67
soap_print_fault_location(stderr);
75
if (soap_call_sword__SWMgr_delete(server, NULL, mgr, noop)) {
76
soap_print_fault(stderr);
77
soap_print_fault_location(stderr);
81
if (soap_call_sword__Quick_getModuleRenderText(server, NULL, "KJV", "jas1:19", text)) {
82
soap_print_fault(stderr);
83
soap_print_fault_location(stderr);
88
printf("success: %d\n", mgr);
93
#include "sword.nsmap"