Changed curl options from string to constants
Refactored the soap client