我在linux下已经用soap实现了一个webservice接口,源程序如下:soapserver.php:<?php$soap = new SoapServer(null,array('uri'=>"http://127.0.0.1/"));//This uri is your SERVER ip.$soap->addFunction('minus_func');                                               $soap->addFunction(SOAP_FUNCTIONS_ALL);$soap->handle();function minus_func($i, $j){    $res = $i - $j;    return $res;
}
?>soapclient.php<?phptry 
{    $client = new SoapClient(null,array('location' =>"http://127.0.0.1/soapserver.php",'uri'=> "http://127.0.0.1/"));
    echo $client->minus_func(100,90);} catch (SoapFault $fault){    echo "Error: ",$fault->faultcode,", string: ",$fault->faultstring;}
?>在地址栏输入http://127.0.0.1/soapclient.php能返回结果10,说明webservice接口是可用的。现在就需要在linux下面写一个C的应用程序,像在php里面一样调用服务器上面的这个webservice接口,该怎么做啊