Starting from the spectral representation of the two-point functions in the axial gauge, the author solves the gauge identities so as to express the higher-point Green functions, linearly in terms of the two-point spectral function. The four-point functions are an important input for investigations of scalar electrodynamics and vector chromodynamics based on the gauge technique.