,
78 "https://intrawebdev8/staff/gouriano/samplesoap/samplesoap.cgi",
80 "http://ncbi.nlm.nih.gov/")
106any->SetName(
"Description");
114 Invoke(response,request,fault);
115 returnSOAP_GetKnownObject<CDescriptionText>(response);
128req->SetClientID(client_id);
132 Invoke(response,request,fault);
133 returnSOAP_GetKnownObject<CVersionResponse>(response);
148 Invoke(response,request,fault);
149 returnSOAP_GetKnownObject<CMathResponse>(response);
161 virtual void Init(
void);
162 virtual int Run(
void);
174 stringprog_description =
"Test NCBI C++ Toolkit Sample Soap Server\n";
175arg_desc->SetUsageContext(
GetArguments().GetProgramBasename(),
176prog_description,
false);
190cout << v1->GetText() << endl;
192 ERR_POST(
Error<< fault->GetFaultcode() <<
": "<< fault->GetFaultstring());
197cout <<
v2->GetVersionStruct().GetMajor() <<
"."<<
198 v2->GetVersionStruct().GetMinor() <<
": "<<
199 v2->GetVersionStruct().GetClientID() << endl;
201 ERR_POST(
Error<< fault->GetFaultcode() <<
": "<< fault->GetFaultstring());
218 for(
auto i: v3->GetMathResult()) {
222 ERR_POST(
Error<< fault->GetFaultcode() <<
": "<< fault->GetFaultstring());
Serializable object that stores any combination of parsable data.
virtual int Run(void)
Run the application.
virtual void Init(void)
Initialize the application.
CConstRef< CDescriptionText > GetDescription(CConstRef< CSoapFault > *fault=0)
CConstRef< CMathResponse > DoMath(CMath &ops, CConstRef< CSoapFault > *fault=0)
CConstRef< CVersionResponse > GetVersion(const string &client_id, CConstRef< CSoapFault > *fault=0)
const string & GetDefaultNamespaceName(void) const
Get default namespace name.
void RegisterObjectType(TTypeInfoGetter type_getter)
Register incoming object type.
void Invoke(CSoapMessage &response, const CSoapMessage &request, CConstRef< CSoapFault > *fault=0, const string &soap_action=kEmptyStr) const
Invoke SOAP server procedure synchronously: send 'request' and receive 'response'.
void AddObject(const CSerialObject &obj, EMessagePart destination)
Include a standard set of the NCBI C++ Toolkit most basic headers.
virtual void Init(void)
Initialize the application.
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)
Setup the command line argument descriptions.
const CNcbiArguments & GetArguments(void) const
Get the application's cached unprocessed command-line arguments.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
void Error(CExceptionArgs_Base &args)
TOperand & SetOperand(void)
Assign a value to Operand data member.
@ eAttlist_operation_subtract
if(yy_accept[yy_current_state])
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines command line argument related classes.
Defines unified interface to application:
int NcbiSys_main(int argc, ncbi::TXChar *argv[])
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4