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 6802075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:10:44+00:00 2026-05-26T19:10:44+00:00

I am calling web service from android but in in response it shows code

  • 0

I am calling web service from android but in in response it shows code instead of symbols.
e.g for > it shows &gt and for < it shows &lt. Why is this so?

  • 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-26T19:10:44+00:00Added an answer on May 26, 2026 at 7:10 pm

    There could be problem with Web service response which could be in String. because web service use SOAP protocol which wraps the response into a SOAP envelope and XML encoded.

    As I had that problem while writing a Web-service and I returned array of objects instead of string which solved my problem.

    public class Product
    {
       public string ProductID { get; set; }
       public string ProductName { get; set; }
    }
    

    and

    [WebMethod(Description="Return All Current Products")]
    public Product[] ReturnProducts()
    {
        DataTable dataTable = getProductsFromDB();
        List<Product> products = new List<Product>();
    
        if (dataTable.Rows.Count > 0)
        {
            foreach (DataRow objRow in dataTable.Rows)
            {
                Product product = new Product 
                {
                    ProductID = objRow["ProductID"].ToString(),
                    ProductName = objRow["ProductName"].ToString()
                };
                products.Add(product); 
            }
        }
        return product.ToArray();
    }
    

    First the return type of ReturnProducts() was string which was producing the problem you are facing after that I changed the code and return type to Product[] which solved my problem.

    Hope it will help you.

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

Sidebar

Related Questions

I am calling a web service from my android client application. After getting response
Calling a .net SOAP1.1 web service from android using ksoap2 lib I met a
I am calling a .net web service from my android app with no luck.
I am calling a web service from a C# forms based app. ServReturnType obj
I'm calling a web service from a console app - all in C# on
Greetings! I'm calling a Web service from Javascript when a user clicks on a
I am calling a WSDL web service from Python using SOAPpy . The call
I'm having a big problem when calling a web service from my WPF application.
I'm currently calling a web service from my J2ME app and receiving the xml
The scenario is around calling an external SSL SOAP web service from within Mirth.

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.