#include <Soap.h>
Public Types | |
enum | SoapVersion { SOAP11, SOAP12 } |
enum | Encoding { LITERAL, ENCODED } |
enum | Style { RPC, DOC } |
enum | Transport { NONE, HTTP, SMTP } |
Public Member Functions | |
Soap (const std::string &schemaPath="", SoapVersion a_soapVersion=SOAP11) | |
virtual | ~Soap () |
void | setSchemaPath (const std::string &schemaPath) |
Transport | getTransportMethod () const |
Style | getStyle () const |
std::string | getNamespace () const |
void | setNamespacePrefix (std::string pre) |
std::string | getNamespacePrefix () const |
bool | isNamespaceHandler (const std::string &ns) const |
std::string | getExtensibilitySchema (void) const |
std::string | getEncodingSchema (void) const |
std::string | getEncodingUri (void) const |
std::string | getEnvelopeUri (void) const |
void | setSchemaParser (SchemaParser *spe) |
int | handleElement (int parent, XmlPullParser *) |
int | handleAttribute (int parent, std::string attName, XmlPullParser *) |
int | getElementName (int id) const |
int | getElemAttribute (int id, int att_num) |
int | getElemAttributeValue (int id, int att_num) |
int | getAttributeName (int id) const |
void | setStartId (int id) |
int | getStartId () const |
void | setWsdlParser (WsdlParser *wp) |
WsdlParser * | wsdlParser () const |
bool | wasUsed () const |
void | serialize (std::ostream &out) |
void | getSoapOperationInfo (int elemId, std::string &soapAction, Soap::Style &style) |
void | getSoapBodyInfo (int elemId, std::string &ns, Soap::Encoding &use, std::string &encodingStyle) |
void | getSoapHeaderInfo (int elemId, std::string &ns, int &partId, const Message *&m) |
bool | getServiceLocation (int elemId, std::string &location) |
SoapVersion | getSoapVersion () const |
bool | isSoapBody (int id) |
bool | isSoapHeader (int id) |
Static Public Attributes | |
static const std::string | httpTransport = "http://schemas.xmlsoap.org/soap/http" |
static const std::string | httpBinding = "http://schemas.xmlsoap.org/wsdl/http/" |
static const std::string | soapEncUri11 = "http://schemas.xmlsoap.org/soap/encoding/" |
static const std::string | soapEnvUri11 = "http://schemas.xmlsoap.org/soap/envelope/" |
static const std::string | soapEncUri12 = "http://www.w3.org/2003/05/soap-encoding" |
static const std::string | soapEnvUri12 = "http://www.w3.org/2003/05/soap-envelope" |
static const std::string | soapBindingUri11 = "http://schemas.xmlsoap.org/wsdl/soap/" |
static const std::string | soapBindingUri12 = "http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12.xsd" |
Definition at line 38 of file Soap.h.
WsdlPull::Soap::Soap | ( | const std::string & | schemaPath = "" , |
|
SoapVersion | a_soapVersion = SOAP11 | |||
) |
Definition at line 48 of file Soap.cpp.
References SOAP12, soapBindingUri11, and soapBindingUri12.
void WsdlPull::Soap::setSchemaPath | ( | const std::string & | schemaPath | ) | [virtual] |
Set path to directory containing XML schemas.
Reimplemented from WsdlPull::WsdlExtension.
Soap::Transport WsdlPull::Soap::getTransportMethod | ( | ) | const [inline] |
Soap::Style WsdlPull::Soap::getStyle | ( | ) | const [inline] |
std::string WsdlPull::Soap::getNamespace | ( | void | ) | const [inline, virtual] |
Implements WsdlPull::WsdlExtension.
void WsdlPull::Soap::setNamespacePrefix | ( | std::string | pre | ) | [inline, virtual] |
Implements WsdlPull::WsdlExtension.
std::string WsdlPull::Soap::getNamespacePrefix | ( | ) | const [inline, virtual] |
Implements WsdlPull::WsdlExtension.
bool WsdlPull::Soap::isNamespaceHandler | ( | const std::string & | ns | ) | const [inline, virtual] |
Implements WsdlPull::WsdlExtension.
std::string WsdlPull::Soap::getExtensibilitySchema | ( | void | ) | const [virtual] |
Implements WsdlPull::WsdlExtension.
Definition at line 79 of file Soap.cpp.
References WsdlPull::WsdlParser::useLocalSchema_.
std::string WsdlPull::Soap::getEncodingSchema | ( | void | ) | const |
Definition at line 93 of file Soap.cpp.
References getSoapVersion(), SOAP11, SOAP12, soapEncUri11, soapEncUri12, and WsdlPull::WsdlParser::useLocalSchema_.
std::string WsdlPull::Soap::getEncodingUri | ( | void | ) | const |
Definition at line 117 of file Soap.cpp.
References getSoapVersion(), SOAP11, SOAP12, soapEncUri11, and soapEncUri12.
Referenced by WsdlPull::WsdlInvoker::invoke().
std::string WsdlPull::Soap::getEnvelopeUri | ( | void | ) | const |
Definition at line 132 of file Soap.cpp.
References getSoapVersion(), SOAP11, SOAP12, soapEnvUri11, and soapEnvUri12.
Referenced by WsdlPull::WsdlInvoker::invoke().
void WsdlPull::Soap::setSchemaParser | ( | SchemaParser * | spe | ) | [inline, virtual] |
Implements WsdlPull::WsdlExtension.
int WsdlPull::Soap::handleElement | ( | int | parent, | |
XmlPullParser * | xParser | |||
) | [virtual] |
Implements WsdlPull::WsdlExtension.
Definition at line 147 of file Soap.cpp.
References Schema::SchemaParserException::description, Schema::SchemaParser::getElement(), XmlPullParser::getName(), Schema::Element::getType(), and Schema::SchemaValidator::validate().
int WsdlPull::Soap::handleAttribute | ( | int | parent, | |
std::string | attName, | |||
XmlPullParser * | xParser | |||
) | [virtual] |
Implements WsdlPull::WsdlExtension.
int WsdlPull::Soap::getElementName | ( | int | id | ) | const [inline, virtual] |
Implements WsdlPull::WsdlExtension.
int WsdlPull::Soap::getElemAttribute | ( | int | id, | |
int | att_num | |||
) |
int WsdlPull::Soap::getElemAttributeValue | ( | int | id, | |
int | att_num | |||
) |
int WsdlPull::Soap::getAttributeName | ( | int | id | ) | const [inline, virtual] |
Implements WsdlPull::WsdlExtension.
void WsdlPull::Soap::setStartId | ( | int | id | ) | [inline, virtual] |
Implements WsdlPull::WsdlExtension.
int WsdlPull::Soap::getStartId | ( | ) | const [inline, virtual] |
Implements WsdlPull::WsdlExtension.
void WsdlPull::Soap::setWsdlParser | ( | WsdlParser * | wp | ) | [inline, virtual] |
Reimplemented from WsdlPull::WsdlExtension.
WsdlParser * WsdlPull::Soap::wsdlParser | ( | ) | const [inline, virtual] |
Reimplemented from WsdlPull::WsdlExtension.
bool WsdlPull::Soap::wasUsed | ( | ) | const [inline, virtual] |
Implements WsdlPull::WsdlExtension.
void WsdlPull::Soap::serialize | ( | std::ostream & | out | ) |
void WsdlPull::Soap::getSoapOperationInfo | ( | int | elemId, | |
std::string & | soapAction, | |||
Soap::Style & | style | |||
) |
void WsdlPull::Soap::getSoapBodyInfo | ( | int | elemId, | |
std::string & | ns, | |||
Soap::Encoding & | use, | |||
std::string & | encodingStyle | |||
) |
void WsdlPull::Soap::getSoapHeaderInfo | ( | int | elemId, | |
std::string & | ns, | |||
int & | partId, | |||
const Message *& | m | |||
) |
bool WsdlPull::Soap::getServiceLocation | ( | int | elemId, | |
std::string & | location | |||
) |
SoapVersion WsdlPull::Soap::getSoapVersion | ( | ) | const [inline] |
Definition at line 124 of file Soap.h.
Referenced by getEncodingSchema(), getEncodingUri(), and getEnvelopeUri().
bool WsdlPull::Soap::isSoapBody | ( | int | id | ) |
Definition at line 464 of file Soap.cpp.
References Schema::SchemaParser::getElement().
bool WsdlPull::Soap::isSoapHeader | ( | int | id | ) |
Definition at line 481 of file Soap.cpp.
References Schema::SchemaParser::getElement().
const std::string WsdlPull::Soap::httpTransport = "http://schemas.xmlsoap.org/soap/http" [static] |
const std::string WsdlPull::Soap::httpBinding = "http://schemas.xmlsoap.org/wsdl/http/" [static] |
const std::string WsdlPull::Soap::soapEncUri11 = "http://schemas.xmlsoap.org/soap/encoding/" [static] |
Definition at line 44 of file Soap.h.
Referenced by getEncodingSchema(), and getEncodingUri().
const std::string WsdlPull::Soap::soapEnvUri11 = "http://schemas.xmlsoap.org/soap/envelope/" [static] |
Definition at line 45 of file Soap.h.
Referenced by getEnvelopeUri().
const std::string WsdlPull::Soap::soapEncUri12 = "http://www.w3.org/2003/05/soap-encoding" [static] |
Definition at line 46 of file Soap.h.
Referenced by getEncodingSchema(), and getEncodingUri().
const std::string WsdlPull::Soap::soapEnvUri12 = "http://www.w3.org/2003/05/soap-envelope" [static] |
Definition at line 47 of file Soap.h.
Referenced by getEnvelopeUri().
const std::string WsdlPull::Soap::soapBindingUri11 = "http://schemas.xmlsoap.org/wsdl/soap/" [static] |
const std::string WsdlPull::Soap::soapBindingUri12 = "http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12.xsd" [static] |