1

I want to convert a NSString variable containing xml codes into xml format. My xml request is:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
        <Authentication xmlns="(namespace link)">
            <Credentials>
                    <Username>username</Username>
                    <Password>password</Password>
            </Credentials>
        </Authentication>
</soapenv:Body>
</soapenv:Envelope>

then i saved this request to a NSString variable. And i got response for this as the server didn't recognize as xml. So how to convert the string i saved into xml?

3

1 Answer 1

1

Simple code for SOAP request and parsing.

Goto the link: https://yuvarajmanickam.wordpress.com/2012/10/17/soap-message-request-and-xmlparsing-in-ios-app/

or

github.com/nicklockwood/XMLDictionary

or

stackoverflow.com/questions/803676/encode-nsstring-for-xml-html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.