我正在尝试从 IPad 应用程序向 .Net Soap Webservice 发送布尔值。我不知道如何发送它。我试过 true, @"true", 1. 但它们没有用。有人试过吗?你能给我一个提示吗
这是我的代码。question1,question2,question3,question4,question5 和 question6 是布尔值。
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"
"<SendData xmlns=\"http://tempuri.org/\">\n"
"<containerId>%@</containerId>"
"<date_>%@</date_>"
"<image1>%@</image1>"
"<image2>%@</image2>"
"<image3>%@</image3>"
"<question1>%@</question1>"
"<question2>%@</question2>"
"<question3>%@</question3>"
"<question4>%@</question4>"
"<question5>%@</question5>"
"<question6>%@</question6>"
"<notes>%@</notes>"
"<transDate>%@</transDate>"
"<userId>%@</userId>"
"<macId>%@</macId>"
"<sFileId>%@</sFileId>"
"</SendData>"
"</soap:Body>\n"
"</soap:Envelope>\n", @"999", @"2013-09-09", @"" ,@"" ,@"" ,@"" ,@"" , @"" , @"" , @"" , @"1", @"notes", @"2013-09-09", @"123", @"mymacid", @"sfileid"];