I am developing an iPad app that calls my ASP.NET Webservice. I am sending a SOAP request which works great. The response I am getting back is in XML wrapped around my JSON result.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
["Authentication Error: Please provide a Username and Password"]
My Webserivice has [ScriptMethod(ResponseForm
at = ResponseFormat.Json)] but it is returning the above statement. I only want the JSON data that is bold.
Is this possible?
And for those wondering... I have the code already to create the soap requests, but I didn't want to mess with XMLParsing to get my results, as I read more and more, JSON and the JSON Framework for XCODE and IOS that I got works great for parsing and returning my data with one line of code...