add correct wsse security headers
added responseheader functions
added errors as global