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>"
     "<hospitalDetails xmlns=\"http://tempuri.org/\">"
     "<stateName>%@</stateName>"
     "<hospitalName>%@</hospitalName>"
     "</hospitalDetails>"
     "</soap:Body>"
     "</soap:Envelope>",state,hospital];
4

0 回答 0