Machine Learning Library
soapgoogleapiProxy.h
Go to the documentation of this file.
1 /* soapgoogleapiProxy.h
2  Generated by gSOAP 2.7.0e from googleapi.h
3  Copyright (C) 2001-2004 Genivia, Inc. All Rights Reserved.
4  This software is released under one of the following three licenses:
5  GPL, the gSOAP public license, or Genivia's license for commercial use.
6  See README.txt for further details.
7 */
8 
9 #ifndef soapgoogleapi_H
10 #define soapgoogleapi_H
11 #include "soapH.h"
13 class googleapi
14 { public:
15  struct soap *soap;
16  const char *endpoint;
18  { soap = soap_new(); endpoint = "http://api.google.com/search/beta2"; if (soap && !soap->namespaces) { static const struct Namespace namespaces[] =
19  {
20  {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope"},
21  {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding"},
22  {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance"},
23  {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema"},
24  {"api", "urn:GoogleSearch"},
25  {NULL, NULL}
26  };
27  soap->namespaces = namespaces; } };
28  virtual ~googleapi() { if (soap) { soap_destroy(soap); soap_end(soap); soap_done(soap); SOAP_FREE((void*)soap); } };
29  virtual int api__doGoogleSearch(char *key, char *q, int start, int maxResults, enum _Enum_1 filter, char *restrict_, enum _Enum_1 safeSearch, char *lr, char *ie, char *oe, struct api__doGoogleSearchResponse *response) { return soap ? soap_call_api__doGoogleSearch(soap, endpoint, NULL, key, q, start, maxResults, filter, restrict_, safeSearch, lr, ie, oe, response) : SOAP_EOM; };
30  virtual int api__doGetCachedPage(char *key, char *url, struct xsd__base64Binary *_return) { return soap ? soap_call_api__doGetCachedPage(soap, endpoint, NULL, key, url, _return) : SOAP_EOM; };
31  virtual int api__doSpellingSuggestion(char *key, char *phrase, char **_return) { return soap ? soap_call_api__doSpellingSuggestion(soap, endpoint, NULL, key, phrase, _return) : SOAP_EOM; };
32 };
34 #endif
_Enum_1
Definition: soapStub.h:21
SOAP_FMAC5 int SOAP_FMAC6 soap_call_api__doGoogleSearch(struct soap *, const char *, const char *, char *, char *, int, int, enum _Enum_1, char *, enum _Enum_1, char *, char *, char *, struct api__doGoogleSearchResponse *)
Definition: stdsoap2.h:988
Definition: googleapi.h:23
googleapi()
Definition: soapgoogleapiProxy.h:17
Definition: stdsoap2.h:1215
virtual int api__doGoogleSearch(char *key, char *q, int start, int maxResults, enum _Enum_1 filter, char *restrict_, enum _Enum_1 safeSearch, char *lr, char *ie, char *oe, struct api__doGoogleSearchResponse *response)
Definition: soapgoogleapiProxy.h:29
#define soap_destroy(soap)
Definition: stdsoap2.h:536
Definition: soapStub.h:85
const struct Namespace * namespaces
Definition: stdsoap2.h:1236
virtual int api__doSpellingSuggestion(char *key, char *phrase, char **_return)
Definition: soapgoogleapiProxy.h:31
virtual ~googleapi()
Definition: soapgoogleapiProxy.h:28
struct soap * soap
Definition: soapgoogleapiProxy.h:15
SOAP_NMAC struct Namespace namespaces[]
SOAP_FMAC1 void SOAP_FMAC2 soap_done(struct soap *)
virtual int api__doGetCachedPage(char *key, char *url, struct xsd__base64Binary *_return)
Definition: soapgoogleapiProxy.h:30
#define SOAP_END_NAMESPACE(name)
Definition: stdsoap2.h:79
SOAP_FMAC1 void SOAP_FMAC2 soap_end(struct soap *)
#define SOAP_BEGIN_NAMESPACE(name)
Definition: stdsoap2.h:75
const char * endpoint
Definition: soapgoogleapiProxy.h:16
SOAP_FMAC5 int SOAP_FMAC6 soap_call_api__doGetCachedPage(struct soap *, const char *, const char *, char *, char *, struct xsd__base64Binary *)
SOAP_FMAC1 struct soap *SOAP_FMAC2 soap_new(void)
#define SOAP_EOM
Definition: stdsoap2.h:826
Definition: soapgoogleapiObject.h:13
SOAP_FMAC5 int SOAP_FMAC6 soap_call_api__doSpellingSuggestion(struct soap *, const char *, const char *, char *, char *, char **)
#define SOAP_FREE(p)
Definition: stdsoap2.h:410