SOAP fixes

Hello

I know you'll reject this in favor of using openstack-gerrit
but I found several minor bugs in the SOAP protocol that I tried to fix in this PR.

I'll just leave this here :)