BEGIN_XMLOBJECT(XMLTOOL_API,Faultcode,xmltooling::XMLObject,SOAP 1.1 faultcode element);
/** Gets the QName content of the element. */
- virtual xmltooling::QName* getCode() const=0;
+ virtual const xmltooling::QName* getCode() const=0;
/** Sets the QName content of the element. */
virtual void setCode(const xmltooling::QName* qname)=0;
END_XMLOBJECT;
#include "soap/SOAP.h"
#include "soap/SOAPClient.h"
#include "util/XMLHelper.h"
-#include "validation/ValidatorSuite.h"\r
+#include "validation/ValidatorSuite.h"
#include <sstream>
#include <log4cpp/Category.hh>
XercesJanitor<DOMDocument> janitor(doc);
auto_ptr<XMLObject> xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true));
janitor.release();
- if (!m_validate)\r
- SchemaValidators.validate(xmlObject.get());\r
+ if (!m_validate)
+ SchemaValidators.validate(xmlObject.get());
Envelope* env = dynamic_cast<Envelope*>(xmlObject.get());
if (!env)
bool SOAPClient::handleFault(const Fault& fault)
{
- QName* code = (fault.getFaultcode() ? fault.getFaultcode()->getCode() : NULL);
+ const QName* code = (fault.getFaultcode() ? fault.getFaultcode()->getCode() : NULL);
auto_ptr_char str((fault.getFaultstring() ? fault.getFaultstring()->getString() : NULL));
Category::getInstance(XMLTOOLING_LOGCAT".SOAPClient").error(
"SOAP client detected a Fault: (%s) (%s)",