Third party/EasySoap++-0.6.1/src/SOAPServerDispatch.cpp
//
//
// Quick method for writing a SOAP Fault
//
// TODO:  Fix things so we can write a Fault
// out the correct way....
//
Quick method for writing a SOAP Fault
TODO:  Fix things so we can write a Fault
out the correct way
Quick method for writing a SOAP Fault TODO : Fix things so we can write a Fault out the correct way
void
SOAPServerDispatch::WriteFault(const SOAPFault& fault)
{
	m_writer.Reset();
	m_writer.StartTag("SOAP-ENV:Envelope");
	m_writer.AddXMLNS("SOAP-ENV", SOAPEnv::base);
	m_writer.AddXMLNS("xsi", XMLSchema2001::xsi);
	m_writer.AddXMLNS("xsd", XMLSchema2001::xsd);
	m_writer.StartTag("SOAP-ENV:Body");
	fault.WriteSOAPPacket(m_writer);
	m_writer.EndTag("SOAP-ENV:Body");
	m_writer.EndTag("SOAP-ENV:Envelope");
	m_transport->SetError();
	m_transport->Write(m_response.GetBody().GetMethod(), m_writer.GetBytes(), m_writer.GetLength());
}
void SOAPServerDispatch :: WriteFault ( const SOAPFault & fault ) { m_writer . Reset ( ) ; m_writer . StartTag ( " " ) ; m_writer . AddXMLNS ( " " , SOAPEnv :: base ) ; m_writer . AddXMLNS ( " " , XMLSchema2001 :: xsi ) ; m_writer . AddXMLNS ( " " , XMLSchema2001 :: xsd ) ; m_writer . StartTag ( " " ) ; fault . WriteSOAPPacket ( m_writer ) ; m_writer . EndTag ( " " ) ; m_writer . EndTag ( " " ) ; m_transport -> SetError ( ) ; m_transport -> Write ( m_response . GetBody ( ) . GetMethod ( ) , m_writer . GetBytes ( ) , m_writer . GetLength ( ) ) ; }
Quick method for writing a SOAP Fault
TODO:  Fix things so we can write a Fault
out the correct way....
Quick method for writing a SOAP Fault TODO : Fix things so we can write a Fault out the correct way ....