Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6118963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:29:50+00:00 2026-05-23T15:29:50+00:00

I am working on an iPhone application that requires the use of a third

  • 0

I am working on an iPhone application that requires the use of a third part SOAP web service (I know, SOAP is not preferred, it is just what I am stuck with). Basically user entered data is sent to the web service and I am finding that certain characters will not send and cause the error message below. The one character that causes this that I have run into so far is < . Without the characters it works fine. I want to have the ability to send such characters. I am sending the string with UTF8StringEncoding. Perhaps there is something I can modify to allow such characters?

[req setHTTPBody: [soapMsg dataUsingEncoding:NSUTF8StringEncoding]]; 

Error:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Sender</faultcode><faultstring>Invalid XML</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:29:51+00:00Added an answer on May 23, 2026 at 3:29 pm

    Seems I have figured this out! So to send the user’s input that include <, I simply send it with:

    [NSString stringWithFormat:@"<![CDATA[\n%@\n]]>", myStringWithIllegalChar]
    

    Using the CDATA tag allows the string pass through as a soap message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an iPhone application that downloads data from a web server and
I am working on Iphone Application.One of my colleague has written a web service
im working on an application that requires me to use a Long Double variable,
I'm working on an iPhone application that makes a few calls to web services.
I am working on an iphone application that requires routing within a limited area
I'm working on an iphone application (not web app) and I'd like to build
I'm working on an iPhone application that displays a list of galleries on a
I'm working on a multiplayer iPhone application that allows up to 6 users to
I'm working on an iPhone application. I have an object of class Row that
I'm working on an iPhone application which will use long-polling to send event notifications

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.