fix for url parameters listed in the wrong order

Changed code to use the constraints array to pull the url parameters from rather than the parameters map.  This ensures the parameters are listed in the correct order in the completeURL string.