int soap_outdecimal(struct soap *soap, const char *tag, int id, const long double *p, const char *type, int n) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, p, n), type) || soap_string_out(soap, soap_decimal2s(soap, *p), 0)) return soap->error; return soap_element_end_out(soap, tag); }
int soap_out_xsd__integer(struct soap *soap, const char *tag, int id, const __int128_t *p, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, p, SOAP_TYPE_xsd__integer), type) || soap_string_out(soap, soap_xsd__integer2s(soap, *p), 0)) return soap->error; return soap_element_end_out(soap, tag); }
SOAP_FMAC1 void SOAP_FMAC2 soap_out_SOAP_ENV__Fault(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Fault *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_SOAP_ENV__Fault), type); soap_out_string(soap, "faultcode", -1, &a->faultcode, ""); soap_out_string(soap, "faultstring", -1, &a->faultstring, ""); soap_out_string(soap, "faultactor", -1, &a->faultactor, ""); soap_out_string(soap, "detail", -1, &a->detail, ""); soap_element_end_out(soap, tag); }
int soap_out_xsd__dateTime(struct soap *soap, const char *tag, int id, const struct tm *a, const char *type) { if (!soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_xsd__dateTime), type)) { strftime(soap->tmpbuf, sizeof(soap->tmpbuf), "%Y-%m-%dT%H:%M:%SZ", a); if (soap_string_out(soap, soap->tmpbuf, 0)) return soap->error; } else return soap->error; return soap_element_end_out(soap, tag); }
SOAP_FMAC1 void SOAP_FMAC2 soap_out_ns__getQuoteResponse(struct soap *soap, const char *tag, int id, const struct ns__getQuoteResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_ns__getQuoteResponse), type); soap_out_float(soap, "result", -1, &a->result, ""); soap_element_end_out(soap, tag); }
SOAP_FMAC1 void SOAP_FMAC2 soap_out_ns__getQuote(struct soap *soap, const char *tag, int id, const struct ns__getQuote *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_ns__getQuote), type); soap_out_string(soap, "symbol", -1, &a->symbol, ""); soap_element_end_out(soap, tag); }
SOAP_FMAC1 void SOAP_FMAC2 soap_out_SOAP_ENV__Header(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Header *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_SOAP_ENV__Header), type); /* transient dummy skipped */ soap_element_end_out(soap, tag); }
int soap_out_xsd__dateTime(struct soap *soap, const char *tag, int id, const struct timeval *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_xsd__dateTime), type) || soap_string_out(soap, soap_xsd__dateTime2s(soap, *a), 0)) return soap->error; return soap_element_end_out(soap, tag); }
int soap_out_xsd__duration(struct soap *soap, const char *tag, int id, const LONG64 *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_xsd__duration), type) || soap_string_out(soap, soap_xsd__duration2s(soap, *a), 0)) return soap->error; return soap_element_end_out(soap, tag); }