
Chapter 4. z/TPF communications bindings 65
127 default:
128 r->status = 500;
129 r->status_line = "500 Internal Server Error";
130 break;
131 }
132 ap_send_http_header(r);
133 if (outputMsg->XMLptr) {
134 ap_rputs(outputMsg->XMLptr, r);
135 free(outputMsg->XMLptr);
136 outputMsg->XMLptr = NULL;
137 }
138 return OK;
139 }
Line 1 is the start of soap_handler(). The function is called once for every SOAP request.
The input to the function is a data structure request_rec, which is defined in the Apache
header file httpd.h and contains all data that is related to an HTTP request message.
Lines 7-9 determine which HTTP methods mod_tpf_soap will handle.