diff GEMBASSY-1.0.3/gsoap/extras/fault.cpp @ 2:8947fca5f715 draft default tip

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:21:44 -0400
parents 84a17b3fad1f
children
line wrap: on
line diff
--- a/GEMBASSY-1.0.3/gsoap/extras/fault.cpp	Fri Jun 26 05:20:29 2015 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-/*
-	Contributed by Allan Kelly, June 17, 2002
-	Provides C++ alternatives for
-	soap_print_fault and soap_print_fault_location functions
-
-	Note: soap_stream_fault in stdsoap2.cpp provides similar functionality
-*/
-
-/******************************************************************************/
-
-SOAP_FMAC1
-void
-SOAP_FMAC2
-soap_print_fault(struct soap *soap, std::ostream& msg)
-{ if (soap->error)
-  { if (!*soap_faultcode(soap))
-      soap_set_fault(soap);
-    if (!*soap_faultstring(soap))
-      *soap_faultstring(soap) = "";
-    msg << "SOAP FAULT: "
-        << *soap_faultcode(soap) << std::endl
-        << "\"" << *soap_faultstring(soap) << "\"" << std::endl;
-    if (*soap_faultdetail(soap))
-      msg << "Detail: " << *soap_faultdetail(soap) << std::endl;
-  }
-}
-
-/******************************************************************************/
-
-SOAP_FMAC1
-void
-SOAP_FMAC2
-soap_print_fault_location(struct soap *soap, std::ostream& msg)
-{ int c;
-  if (soap->error && soap->buflen > 0)
-  { if (soap->bufidx == 0)
-      soap->bufidx = 1;
-    c = soap->buf[soap->bufidx-1];
-    soap->buf[soap->bufidx-1] = '\0';
-    if (soap->bufidx < soap->buflen)
-      msg << soap->buf << static_cast<char> (c) << std::endl
-          << "** HERE **" << std::endl << soap->buf+soap->bufidx
-          << std::endl;
-    else
-      msg << soap->buf << static_cast<char> (c) << std::endl
-          << "** HERE **" << std::endl;
-  }
-}
-
-/******************************************************************************/