Add debug mode to test WebServices