|
PTLib Version 2.10.2
|
SOAP Message classes. More...
#include <psoap.h>
Public Types | |
| enum | { NoFault, VersionMismatch, MustUnderstand, Client, Server } |
| State of the PSOAPMessage when used as a response. More... | |
Public Member Functions | |
| PSOAPMessage (int options=PXMLParser::Indent+PXMLParser::NewLineAfterElement) | |
| Construct a SOAP message. | |
| PSOAPMessage (const PString &method, const PString &nameSpace) | |
| Construct a SOAP message with method name and namespace already provided. | |
| void | SetMethod (const PString &name, const PString &nameSpace, const PString &methodPrefix="m:") |
| Set the method name and namespace. | |
| void | GetMethod (PString &name, PString &nameSpace) |
| Get the method name and namespace. | |
| void | AddParameter (PString name, PString type, PString value) |
| Add a simple parameter called name, with type type and value value. | |
| void | AddParameter (PXMLElement *parameter, PBoolean dirty=true) |
| Add a parameter using a PXMLElement. | |
| PBoolean | GetParameter (const PString &name, PString &value) |
| Get parameter "name" with type "string". | |
| PBoolean | GetParameter (const PString &name, int &value) |
| Get parameter "name" with type "int". | |
| PXMLElement * | GetParameter (const PString &name) |
| Get parameter "name". | |
| PBoolean | Load (const PString &str) |
| Parse a string for a valid SOAP message. | |
| PINDEX | GetFaultCode () const |
| PString | GetFaultText () const |
| void | SetFault (PINDEX code, const PString &text) |
SOAP Message classes.
SOAP message according to http://www.w3.org/TR/SOAP/
| anonymous enum |
State of the PSOAPMessage when used as a response.
| PSOAPMessage::PSOAPMessage | ( | int | options = PXMLParser::Indent+PXMLParser::NewLineAfterElement | ) |
Construct a SOAP message.
Construct a SOAP message with method name and namespace already provided.
Add a simple parameter called name, with type type and value value.
| void PSOAPMessage::AddParameter | ( | PXMLElement * | parameter, |
| PBoolean | dirty = true |
||
| ) |
Add a parameter using a PXMLElement.
| PINDEX PSOAPMessage::GetFaultCode | ( | ) | const [inline] |
| PString PSOAPMessage::GetFaultText | ( | ) | const [inline] |
Get the method name and namespace.
| PXMLElement* PSOAPMessage::GetParameter | ( | const PString & | name | ) |
Get parameter "name".
Get parameter "name" with type "string".
Get parameter "name" with type "int".
| void PSOAPMessage::SetFault | ( | PINDEX | code, |
| const PString & | text | ||
| ) |
| void PSOAPMessage::SetMethod | ( | const PString & | name, |
| const PString & | nameSpace, | ||
| const PString & | methodPrefix = "m:" |
||
| ) |
Set the method name and namespace.