如何在iPhone的http体中传递Array作为参数

时间:2013-04-03 09:12:06

标签: iphone ios objective-c web-services restkit

我在php中有以下代码(httpbody for service): -

<$xmlJobList = "<?xml version='1.0'?><Search><CompanyId><![CDATA[ $companyId ]]></CompanyId>"; $xmlJobList .= "<Offset><![CDATA[ $offset ]]></Offset><Limit><![CDATA[ $limit ]]></Limit>";$xmlJobList .= "<Keywords><![CDATA[ $keywords ]]></Keywords>";$xmlJobList .= "<FunctionalAreaId><![CDATA[ $farea ]]></FunctionalAreaId>**<IndustryTypeIds>"; foreach ($industry as $value){$xmlJobList .= "<IndustryTypeId><![CDATA[ $value ]]></IndustryTypeId>";}$xmlJobList .= "<Format><![CDATA[ $format ]]></Format></Search>";

我想为iPhone / objective-c

编写HTTP正文

PLease帮我这个,我第一次为php工作。

0 个答案:

没有答案