create dynamic HTTP client agent
fix a xml serializer bug