我想用我的iPhone应用程序中的参数调用Web服务。如何从iphone传递参数给soap web服务?
该参数是一个字符串,以及我在哪里以及如何指定使用xml调用Web服务的参数,或者它是什么。
请告诉我,如果有人知道它。我想向Web服务发送一个状态名称。
请帮我解决这个问题。
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>"
"<stateWiseHospitalName xmlns=\"http://ws.centricare.org\" />"
"</soap:Body>"
"</soap:Envelope>"
];
+ 1为您的代码,它为我工作 – Pramesh 2014-01-08 15:45:19