Public Member Functions | |
void | setLocation (const std::string &url) |
void | setCredentials (const std::string &user, const std::string &pass) |
std::string | WsdlInvoker::getSoapMessage () |
void | setProxy (const std::string &host, int port=80) |
void | setVerbose (bool f) |
void | printTypeNames (bool f) |
std::string | errors () |
bool | status () const |
Constructors and Destructors | |
WsdlInvoker (const std::string &url) | |
WsdlInvoker () | |
~WsdlInvoker () | |
WSDL Inspection | |
bool | setWSDLUri (const std::string &url) |
bool | init (WsdlParser *parser) |
return names of operations (only for the SOAP binding portType) | |
int | getOperations (std::vector< std::string > &operations) |
std::string | getOpDocumentaion (const std::string &n) |
bool | setOperation (const std::string &operation, WsdlPull::MessageType mType=WsdlPull::Input) |
set the operation to invoke | |
std::string | getServiceEndPoint (const std::string &opname) |
Simple Invocation usage | |
bool | setValue (const std::string ¶m, void *val) |
sets the param value for an operation by name of the parameter | |
bool | setValue (const std::string ¶m, void **values, unsigned int occur) |
bool | setValue (const std::string ¶m, std::string val) |
bool | setValue (const std::string ¶m, std::vector< std::string > values) |
bool | setValue (const std::vector< std::string > &parents, void *val) |
bool | invoke (long timeout=0) |
void * | getValue (const std::string ¶m, Schema::Type &t) |
A more complex but powerful usage | |
int | getNextInput (std::string ¶m, Schema::Type &type, int &minimum, int &maximum) |
int | getNextInput (std::string ¶m, Schema::Type &type, int &minimum, int &maximum, std::vector< std::string > &parents) |
int | getNextHeaderInput (std::string ¶m, Schema::Type &type, int &minimum, int &maximum) |
int | getNextHeaderInput (std::string ¶m, Schema::Type &type, int &minimum, int &maximum, std::vector< std::string > &parents) |
int | nInputHeaders () const |
bool | setInputValue (const int param, void *val) |
bool | setInputValue (const int id, void **values, unsigned int occur) |
bool | setInputValue (const int param, std::string val) |
bool | setInputValue (const int param, std::vector< std::string > values) |
bool | getNextOutput (std::string &name, TypeContainer *&tc) |
TypeContainer * | getOutput (const std::string &name) |
bool | getNextHeaderOutput (std::string &name, TypeContainer *&tc) |
Definition at line 49 of file WsdlInvoker.h.
|
The default constructor for WsdlInvoker
Definition at line 56 of file WsdlInvoker.cpp. |
|
getNextHeaderInput Similar to the previous method except that it gets the SOAP headers if any Set methods are same as for regular inputs Definition at line 896 of file WsdlInvoker.cpp. |
|
getNextHeaderOutput get the type container which stores the SOAP header
Definition at line 1060 of file WsdlInvoker.cpp. |
|
getNextInput Calling this method repeatedly informs the caller of the input types the web service operation expects. Each call returns a unique id which must be used while setting the value using setInputValue.This method exposes only atomic types.Even if a web service needs a complex type,the api exposes only the constituent particles.The only exception is when a complex content model needs multiple occurrences which is still a TODO
Definition at line 871 of file WsdlInvoker.cpp. |
|
getNextOutput get the part/elem name and type container
Definition at line 1034 of file WsdlInvoker.cpp. |
|
getOutput return the type container which stores the output for the output part/elem name Definition at line 1049 of file WsdlInvoker.cpp. |
|
getServiceEndPoint returns the url to be invoked for the operation Definition at line 233 of file WsdlInvoker.cpp. |
|
getValue return the value of the output whose name is 'param'
Definition at line 1076 of file WsdlInvoker.cpp. |
|
return names of operations (only for the SOAP binding portType) getOperations
Definition at line 115 of file WsdlInvoker.cpp. References XmlPullParserException::col, Schema::SchemaParserException::col, WsdlPull::WsdlException::col, XmlPullParserException::description, Schema::SchemaParserException::description, WsdlPull::WsdlException::description, WsdlPull::Soap::getElementName(), WsdlPull::WsdlParser::getExtensibilityHandler(), WsdlPull::WsdlParser::getPortTypes(), XmlPullParserException::line, Schema::SchemaParserException::line, WsdlPull::WsdlException::line, WsdlPull::Soap::soapBindingUri, and WsdlPull::WsdlParser::status(). |
|
invoke invoke the web service operation
Definition at line 784 of file WsdlInvoker.cpp. References XmlSerializer::attribute(), XmlSerializer::endTag(), XmlSerializer::flush(), WsdlPull::WsdlElement::getName(), Schema::SchemaInstaceUri, Schema::SchemaUri, XmlSerializer::setPrefix(), WsdlPull::Soap::soapEncUri, WsdlPull::Soap::soapEnvUri, XmlSerializer::startDocument(), and XmlSerializer::startTag(). |
|
returns the number of input headers you may need to set Definition at line 337 of file WsdlInvoker.h. |
|
setInputValue sets the param value for an operation only simple types can be set.
Definition at line 657 of file WsdlInvoker.cpp. References Schema::XSDType::getContentModel(), Schema::ComplexType::getContentType(), Schema::SchemaParser::getType(), and Schema::XSDType::isSimple(). |
|
setInputValue sets the param value for an operation only simple types can be set.
Definition at line 694 of file WsdlInvoker.cpp. References Schema::XSDType::getContentModel(), Schema::ComplexType::getContentType(), Schema::SchemaParser::getType(), and Schema::XSDType::isSimple(). Referenced by setValue(). |
|
set the operation to invoke setOperation
Definition at line 206 of file WsdlInvoker.cpp. |
|
sets the param value for an operation by name of the parameter setValue
Definition at line 728 of file WsdlInvoker.cpp. References setInputValue(). |