Reputation: 1814
I want some help friends,
I want to Post XML string in SOAP message in iOS sdk.
Is it possible to do this?
If yes, Please give me some sample code for that. otherwise advice me alternative way to do this.
Please help me to come out from this problem.
Thanks in advance.
Code:
<?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>
<postCourseUsage xmlns="http://tempuri.org/">
<xml><?xml version="1.0"?><CU><ULID>admin</ULID><CID>myOwn</CID><CURS><CUR><CN>Home</CN><USG><CUSG>2</CUSG><SD>12-Jul-2011 12:41:42</SD></USG></CUR></CURS></CU></xml>
</postCourseUsage>
</soap:Body>
</soap:Envelope>
Upvotes: 1
Views: 2276
Reputation: 1814
I got my answer.
<?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>
<postCourseUsage xmlns="http://tempuri.org/">
<xml><?xml version="1.0"?><CU><ULID>admin</ULID><CID>myOwn</CID><CURS><CUR><CN>Home</CN><USG><CUSG>2</CUSG><SD>12-Jul-2011 12:41:42</SD></USG></CUR></CURS></CU></xml>
</postCourseUsage>
</soap:Body>
</soap:Envelope>
Using this code i can pass xml string as argument in soap message and on the server side it will interprete it as XML.
Upvotes: 2