Downgrade web services code to the earlier version of v5

This change improves compatibility of the plugin, so that versions
back to 6.0.0 should work.