📄 inquire_v2.cpp
字号:
/*inquire_v2.cppUDDI V2 Inquiry Interface--------------------------------------------------------------------------------gSOAP XML Web services toolsCopyright (C) 2004-2005, Robert van Engelen, Genivia Inc. All Rights Reserved.This software is released under one of the following two licenses:GPL or Genivia's license for commercial use.--------------------------------------------------------------------------------GPL license.This program is free software; you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation; either version 2 of the License, or (at your option) any laterversion.This program is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along withthis program; if not, write to the Free Software Foundation, Inc., 59 TemplePlace, Suite 330, Boston, MA 02111-1307 USAAuthor contact information:engelen@genivia.com / engelen@acm.org--------------------------------------------------------------------------------A commercial use license is available from Genivia, Inc., contact@genivia.com--------------------------------------------------------------------------------*/#include "inqH.h"#define SOAP_NMAC static#define uddiH_H#include "InquireSoap.nsmap"//////////////////////////////////////////////////////////////////////////////////// uddi2:find_binding//////////////////////////////////////////////////////////////////////////////////uddi2__find_USCOREbinding::uddi2__find_USCOREbinding(struct soap *soap){ // Initialize this object and associate it with the gSOAP context soap_default(soap); this->generic = "2.0";}uddi2__find_USCOREbinding::uddi2__find_USCOREbinding(struct soap *soap, const char *tModelKey){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI tModelKey this->tModelBag = soap_new_uddi2__tModelBag(soap, -1); this->tModelBag->soap_default(soap); this->tModelBag->tModelKey.push_back(soap_strdup(soap, tModelKey)); this->generic = "2.0";}uddi2__find_USCOREbinding::uddi2__find_USCOREbinding(struct soap *soap, std::vector<char*> tModelKeys){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI tModelKey Bag this->tModelBag = soap_new_uddi2__tModelBag(soap, -1); this->tModelBag->soap_default(soap); this->tModelBag->tModelKey = tModelKeys; this->generic = "2.0";}uddi2__bindingDetail *uddi2__find_USCOREbinding::send(const char *endpoint){ // Allocate result uddi2__bindingDetail *result = soap_new_uddi2__bindingDetail(soap, -1); // Invoke the wrapper soap_set_namespaces(soap, namespaces); if (soap_call___inq2__find_USCOREbinding(soap, endpoint, NULL, this, result)) return NULL; return result;} //////////////////////////////////////////////////////////////////////////////////// uddi2:find_business//////////////////////////////////////////////////////////////////////////////////uddi2__find_USCOREbusiness::uddi2__find_USCOREbusiness(struct soap *soap){ // Initialize this object and associate it with the gSOAP context soap_default(soap); this->generic = "2.0";}uddi2__find_USCOREbusiness::uddi2__find_USCOREbusiness(struct soap *soap, const char *name){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI name uddi2__name *uname = soap_new_uddi2__name(soap, -1); uname->soap_default(soap); uname->__item = soap_strdup(soap, name); this->name.push_back(uname); this->generic = "2.0";}uddi2__find_USCOREbusiness::uddi2__find_USCOREbusiness(struct soap *soap, std::vector<uddi2__keyedReference*> keyedReferences){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI tModelBag this->categoryBag = soap_new_uddi2__categoryBag(soap, -1); this->categoryBag->soap_default(soap); this->categoryBag->keyedReference = keyedReferences; this->generic = "2.0";}uddi2__find_USCOREbusiness::uddi2__find_USCOREbusiness(struct soap *soap, std::vector<char*> tModelKeys){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI tModelBag this->tModelBag = soap_new_uddi2__tModelBag(soap, -1); this->tModelBag->soap_default(soap); this->tModelBag->tModelKey = tModelKeys; this->generic = "2.0";}uddi2__businessList *uddi2__find_USCOREbusiness::send(const char *endpoint){ // Allocate result uddi2__businessList *result = soap_new_uddi2__businessList(soap, -1); // Invoke the wrapper soap_set_namespaces(soap, namespaces); if (soap_call___inq2__find_USCOREbusiness(soap, endpoint, NULL, this, result)) return NULL; return result;} //////////////////////////////////////////////////////////////////////////////////// uddi2:find_relatedBusinesses//////////////////////////////////////////////////////////////////////////////////uddi2__find_USCORErelatedBusinesses::uddi2__find_USCORErelatedBusinesses(struct soap *soap){ // Initialize this object and associate it with the gSOAP context soap_default(soap); this->generic = "2.0";}uddi2__find_USCORErelatedBusinesses::uddi2__find_USCORErelatedBusinesses(struct soap *soap, const char *businessKey){ // Initialize this object and associate it with the gSOAP context soap_default(soap); this->businessKey = soap_strdup(soap, businessKey); this->generic = "2.0";}uddi2__relatedBusinessesList *uddi2__find_USCORErelatedBusinesses::send(const char *endpoint){ // Allocate result uddi2__relatedBusinessesList *result = soap_new_uddi2__relatedBusinessesList(soap, -1); // Invoke the wrapper soap_set_namespaces(soap, namespaces); if (soap_call___inq2__find_USCORErelatedBusinesses(soap, endpoint, NULL, this, result)) return NULL; return result;} //////////////////////////////////////////////////////////////////////////////////// uddi2:find_service//////////////////////////////////////////////////////////////////////////////////uddi2__find_USCOREservice::uddi2__find_USCOREservice(struct soap *soap){ // Initialize this object and associate it with the gSOAP context soap_default(soap); this->generic = "2.0";}uddi2__find_USCOREservice::uddi2__find_USCOREservice(struct soap *soap, const char *name){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI name uddi2__name *uname = soap_new_uddi2__name(soap, -1); uname->soap_default(soap); uname->__item = soap_strdup(soap, name); this->name.push_back(uname); this->generic = "2.0";}uddi2__find_USCOREservice::uddi2__find_USCOREservice(struct soap *soap, std::vector<uddi2__keyedReference*> keyedReferences){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI tModelBag this->categoryBag = soap_new_uddi2__categoryBag(soap, -1); this->categoryBag->soap_default(soap); this->categoryBag->keyedReference = keyedReferences; this->generic = "2.0";}uddi2__find_USCOREservice::uddi2__find_USCOREservice(struct soap *soap, std::vector<char*> tModelKeys){ // Initialize this object and associate it with the gSOAP context soap_default(soap); // Create a new UDDI tModelBag this->tModelBag = soap_new_uddi2__tModelBag(soap, -1); this->tModelBag->soap_default(soap); this->tModelBag->tModelKey = tModelKeys; this->generic = "2.0";}uddi2__serviceList* uddi2__find_USCOREservice::send(const char *endpoint){ // Allocate result uddi2__serviceList *result = soap_new_uddi2__serviceList(soap, -1); // Invoke the wrapper soap_set_namespaces(soap, namespaces); if (soap_call___inq2__find_USCOREservice(soap, endpoint, NULL, this, result)) return NULL; return result;} //////////////////////////////////////////////////////////////////////////////////// uddi2:find_tModel//////////////////////////////////////////////////////////////////////////////////uddi2__find_USCOREtModel::uddi2__find_USCOREtModel(struct soap *soap){ // Initialize this object and associate it with the gSOAP context soap_default(soap); this->generic = "2.0";}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -