嗨,我是新的xcode&目标C
现在我有应用程序通过xml从服务器获取数据
但是如果我想通过WSDL使用Method&更改xml到webservice。参数 我该怎么做
离。 ws url
http://HOST:PORT/ExportingReportWebservice/ExportingReportWebservice?wsdl
方法名称是getReport 参数是java.lang.String
SOAP响应
<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getReportResponse xmlns:ns2="http://controller.exportingreportwebservice.lox.org/">
<return>
<exportId>4</exportId>
<readFG>N</readFG>
<receiverId>2711</receiverId>
<referenceId>21</referenceId>
<referenceName>???????????????????????? ?????????????????????????????????????????????</referenceName>
<reportFullPath>http://10.3.24.202:8081/ExportingReportAdmin/Reports/55126a88-dcec-45d1-b156-e1eb9ab2b48e.pdf</reportFullPath>
<reportName>55126a88-dcec-45d1-b156-e1eb9ab2b48e.pdf</reportName>
<senderId>7615</senderId>
<senderName>???????????????????????? ??????????????????</senderName>
<sentDate>2012-05-23 10:40:01.0</sentDate>
<subject>Report Surgical</subject>
</return>
<return>
<exportId>8</exportId>
<readFG>N</readFG>
<receiverId>2711</receiverId>
<referenceId>20</referenceId>
<referenceName>????????????????????? ???????????????????????????</referenceName>
<reportFullPath>http://10.3.24.202:8081/ExportingReportAdmin/Reports/691766e9-44eb-4ca9-9908-1b1846327acc.pdf</reportFullPath>
<reportName>691766e9-44eb-4ca9-9908-1b1846327acc.pdf</reportName>
<senderId>7615</senderId>
<senderName>???????????????????????? ??????????????????</senderName>
<sentDate>2012-05-23 10:41:28.0</sentDate>
<subject>prime face user guide</subject>
</return>
<return>
<exportId>13</exportId>
<readFG>N</readFG>
<receiverId>2711</receiverId>
<referenceId>21</referenceId>
<referenceName>???????????????????????? ?????????????????????????????????????????????</referenceName>
<reportFullPath>http://10.3.24.202:8081/ExportingReportAdmin/Reports/c4f4f1fd-1c67-4bad-9447-f536fd2b46db.pdf</reportFullPath>
<reportName>c4f4f1fd-1c67-4bad-9447-f536fd2b46db.pdf</reportName>
<senderId>7615</senderId>
<senderName>???????????????????????? ??????????????????</senderName>
<sentDate>2012-05-23 11:21:23.0</sentDate>
<subject>icefaces getting start</subject>
</return>
</ns2:getReportResponse>
</S:Body>
</S:Envelope>
Thankyou verymucth
PS。对不起我的英语技能。
答案 0 :(得分:1)
您可以使用NSURL类编写自己的实现来连接到Web服务,并使用NSXML来解析收到的响应,或者您可以查看此线程(How to access SOAP services from iPhone)并使用其中提到的框架之一。