コード例 #1
0
int getOnvifSoapActionNotSupportCode(struct soap *soap, const char *faultInfo,
		const char* faultDetail) {
	if (NULL == faultDetail)
		return soap_receiver_fault_subcode(soap, "ter:ActionNotSupported",
				faultInfo, "not support");
	else
		return soap_receiver_fault_subcode(soap, "ter:ActionNotSupported",
				faultInfo, faultDetail);
}
コード例 #2
0
static inline int onvif_receiver_fault_subcode_oom(struct soap *soap) {
	return soap_receiver_fault_subcode(
			soap,
			"ter:OutofMemory",
			"Out of Memory",
			"The device does not have sufficient memory to complete the action.");
}
コード例 #3
0
ファイル: wsseapi-lite.c プロジェクト: latelee/onvif_fw_stl
/**
@fn int soap_wsse_receiver_fault_subcode(struct soap *soap, const char *faultsubcode, const char *faultstring, const char *faultdetail)
@brief Sets receiver SOAP Fault (sub)code for server fault response.
@param soap context
@param[in] faultsubcode sub code string
@param[in] faultstring fault string
@param[in] faultdetail detail string
@return SOAP_FAULT
*/
int
soap_wsse_receiver_fault_subcode(struct soap *soap, const char *faultsubcode, const char *faultstring, const char *faultdetail)
{
#if defined(SOAP_WSA_2003) || defined(SOAP_WSA_2004) || defined(SOAP_WSA_200408) || defined(SOAP_WSA_2005)
  return soap_wsa_receiver_fault_subcode(soap, faultsubcode, faultstring, faultdetail);
#else
  return soap_receiver_fault_subcode(soap, faultsubcode, faultstring, faultdetail);
#endif
}
コード例 #4
0
int getOnvifSoapActionFailedCode(struct soap *soap, const char *faultInfo,
		const char* faultDetail) {
	return soap_receiver_fault_subcode(soap, "ter:Action", faultInfo,
			faultDetail);
}