如何将参数添加到link.asmx

时间:2016-06-08 04:25:11

标签: ios objective-c

<?xml version=\"1.0\" encoding=\"utf-8\"?>"
    "<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/\">"
    "<soap:Body>"
    "<FillFloorsNew xmlns=\"http://tempuri.org/\">"
    "<BlockId>String</BlockId>"
    "</FillFloorsNew>"
    "</soap:Body>"
    "</soap:Envelope>

我想传递阻止ID

1 个答案:

答案 0 :(得分:0)

你可以添加像这样的参数

 NSString *soapMessage = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
    "<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/\">"
    "<soap:Body>"
    "<FillFloorsNew xmlns=\"http://tempuri.org/\">"
    "<BlockId>String</BlockId>"
    "</FillFloorsNew>"
    "</soap:Body>"
    "</soap:Envelope>",BlockId];