【发布时间】:2016-06-29 02:09:52
【问题描述】:
SOAP 正文
NSString *soapMessage = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance>\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema>\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/>\">\n"
"<soap:Body>\n"
" <Ins_VIP xmlns=\"http://tempuri.org/>\">\n"
"<strVIPNo>%@</name>\n"
"</name>\n"
"</soap:Body>\n"
"</soap:Envelope>\n" , str];
这是一个你知道的简单的肥皂消息。如果我想使用函数传递 str 的值,我如何构造它?
但是,我想为这个对象传值怎么可能?
【问题讨论】:
标签: ios objective-c xml-parsing