How to send an xml as a string in iphone sdk?

Joined
Oct 1, 2012
Messages
27
Reaction score
0
Points
1
<?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>
<FullWomPrintsInsert xmlns="http://tempuri.org/">
<xmlDoc><?xml version="1.0" encoding="utf-8"?><R><Root><CriteriaID>11</CriteriaID><Rating/></Root><Root><CriteriaID>10</CriteriaID><Rating/></Root><Root><CriteriaID>9</CriteriaID></Root><Root><CriteriaID>8</CriteriaID><Rating/></Root><Root><CriteriaID>7</CriteriaID><Rating/></Root><Root><CriteriaID>6</CriteriaID><Rating/></Root></R></xmlDoc></FullWomPrintsInsert>
</soap:Body>
</soap:Envelope>



i got bellow Error:
<Message>Data at the root level is invalid. Line 1, position 1.</Message>


Even if "stringByAddingPercentEscapesUsingEncoding" used for remove < And > characters.But i got same error.





Please help me out. how to resolve this issue.its urgent.



Regards,
Manga.K
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top