this is doing my head in…. I’ve been trying for hours…

I’m using the your code to try to post a record. this si the data strucutre:

being using this code and I cat get it working… please help ! :( Just say i only want the below fields populated

$fileds = array(
‘insertContact’ => array(
‘contact’ => array(
‘givenName’ => urlencode(‘John’),
‘familyName’ => urlencode(‘Smith’),
‘organisationName’ => urlencode(‘Saasy.tv’)
)
)
);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data);
$curl_response = curl_exec($curl);
curl_close($curl);

$xml = new SimpleXMLElement($curl_response);

service_url