如何通过soap消息发送多个参数两个Web服务?

时间:2012-07-26 08:06:23

标签: iphone web-services

我能够发送一个参数及其工作..但同样地,我使用了两个参数,但它不起作用。请查看代码bellow ,,,,,

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];

0 个答案:

没有答案
相关问题