
Chapter 3. z/TPF SOAP processing 35
Example 3-3 Using the SOAP fault builder
1 #include <stdlib.h> /* included for calloc */
2 #include <tpf/c_soap.h> /* included for tpf_soap_build_fault */
3 soapFault* f = calloc(1, sizeof(soapFault));;
4 f->xmlVersion = XML1_0;
5 f->version = SOAP1_2;
6 f->code = Sender;
7 f->reason = "Namespace URI mismatch";
8 f->detail = "The namespace URI in the header element was missing";
9 f->encoding = "iso-8859-1";
10 f->language = "en-US";
11 int rc = tpf_soap_build_fault(f, outputMessage);
3.4 SOAP message encoding
Data can be encoded in different character sets. The character set in which a SOAP message
is encoded ...