Replace SOAP integration with a new REST integration and encoding the JSON as per Drupal JSON encode ways.