iphone中的SOAP操作

iphone中的SOAP操作,iphone,objective-c,Iphone,Objective C,我在安卓系统中使用这个代码,我需要在iPhone中使用相同的代码。使用适当的syntex NSString *soap = soapStart + "<" + soapAction + " xmlns:m='http://www.aras-corp.com/'>" + body + "</"+ soapAction + ">" + soapEnd; NSString*soap=soapStart+“”+body+“”+soapEnd; 屏幕上出现错误“二进制+中的操作

我在安卓系统中使用这个代码,我需要在iPhone中使用相同的代码。使用适当的syntex

NSString *soap = soapStart + "<" + soapAction + " xmlns:m='http://www.aras-corp.com/'>" + body + "</"+ soapAction + ">" + soapEnd;
NSString*soap=soapStart+“”+body+“”+soapEnd;
屏幕上出现错误“二进制+中的操作数无效(具有struct'struct NSString*”ans “char*” 我是第一次尝试在我的应用程序中使用soap 备用代码:谢谢


提前感谢

您不能像在中那样使用“+”运算符从较小的字符串连接较大的
NSString

相反,您可以从其他
NSString
字符串创建一个新的
NSString
,方法为:

NSString*soap=[NSString stringWithFormat:@“%@%@%@”,soapStart,soapAction,body,soapEnd];

@talktobijju:不要忘记的目标CPObsable replicate中的@for字符串声明
NSString *soap = [NSString stringWithFormat:@"%@ <%@ xmlns:m='http://www.aras-corp.com/'>%@%@", soapStart, soapAction, body, soapEnd];