我正在尝试将几个参数传递给 SOAP 服务。我尝试在下面列出的代码块的最后执行此操作。出于某种原因,我无法让它工作。有人可以帮我一下吗。提前致谢!
NSString *soapMessage = [NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">"
"<soap12:Body>"
"<UserLogin xmlns=\"http://tempuri.org/\">"
"<username>string</username>"
"<password>string</password>"
"</UserLogin>"
"</soap12:Body>"
"</soap12:Envelope>, %@, %@", txtUsername.text, txtPassword.text];