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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:51:22+00:00 2026-06-12T17:51:22+00:00

I currently have a web-serice running, returning calls to an iPhone client that i’ve

  • 0

I currently have a web-serice running, returning calls to an iPhone client that i’ve built. The web-service is returning xml in the form of soap.

What we’ve noticed is that when we use a specific function, the call takes longer than accepted in terms of UX.

Here is some example code and sample xml

Function

public List<Foo> bar(....)
{

    // stuff


    return Bar;  
}

Where the result is serialized to XML and consumed in the iPhone client.

Example of XML returned by the function. ( this xml can grow very large depending on how the user uses the client application).

<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>
    <response xmlns="uri:Foo">
      <result>
        <p>
          <num>string</num>
          <d>int</d>
          <pf>string</pf>
          <pt>string</pt>
          <ipk>boolean</ipk>
          <ipa>boolean</ipa>
          <va>
            <ava xsi:nil="true" />
            <ava xsi:nil="true" />
          </va>
          <dps>
            <dp xsi:nil="true" />
            <dp xsi:nil="true" />
          </dps>
          <dst>string</dst>
        </p>
      </result>
    </response>
  </soap:Body>
</soap:Envelope>

What i basically want is to make the data smaller. Preferably by some sort of compression.

Is it possible to compress the size of the XML before returning it to the iPhone client?

I looked at gzip, but couldnt really get any grip of it, since it works with streams.

Any tips and/or pointers will be highly appreciated. Thanks for reading.

  • 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-06-12T17:51:23+00:00Added an answer on June 12, 2026 at 5:51 pm

    If you can exchange the serialization i would look into this topic:
    Fast and compact object serialization in .NET

    Of course you can also use compression if you don’t want to loose the xml format:

    • http://www.7-zip.org/sdk.html Has a C# SDK
    • http://www.icsharpcode.net/OpenSource/SharpZipLib/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently we have web-services built up so that everyone (with valid service account) can
We have a history table that stores xml web service requests and responses. Currently
I have a spring roo web service that I am currently building out but
Currently I have a web service running in a tomcat (http:// localhost:8080/myApp/getUsers ). My
I currently have a number of web applications which access a common service running
I have a JAX-WS web service that has been running in a production environment
Possible Duplicate: Is Sinatra multi threaded? I have a web service that requires running
Currently I have webservice running on the Mono platform. When I call the service
This is how I have currently managed to consume a particular Microsoft web service.
I want to build a REST web service on app engine. Currently i have

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.