I removed the bulk of the data you posted as I wasn't sure it was helpful and it seems silly to post the data into a public forum. My first questions would be: 1) where is curl_post_data set? 3) what do you get in $curl_response before you try to transform it to XML? I suspect you need to set the post data and encode in in PHP, depending which service you're sending it to. I hope that helps, at least a bit ... good luck!