[eluser]wahyusumartha[/eluser]
okay.. i will share the code

..
i want to post xml to web service server..
so i write controller like this :
function add_customer() {
$post = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n";
$post .= "<customer>\n";
$post .= "<firstname>sinichi</firstname>\n";
$post .= "<lastname>kudo</lastname>\n";
$post .= "</customer>\n";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
"http://localhost:9090/TestRestful/resources/customersservice/add");
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$res = curl_exec($ch);
curl_close ($ch);
echo $res;
}
controller above have a function to post xml data to web service server using curl

..
are you understand my problem previously now ?