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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:36:30+00:00 2026-06-10T00:36:30+00:00

I am developing a WP application for which the webservices are implemented in .NET

  • 0

I am developing a WP application for which the webservices are implemented in .NET using SOAP client. I have implemented the SOAP client in my WP app using “Add service reference” option.

Now the problem is, there are two different client classes one for the Login functionality and the other for all other queries. Login is working fine and returning me true or false and nothing else. And the other client class is used to make different queries which are all working fine and getting some data from server. After testing I observed that the response is independent of the logged in user( ie server sending same data irrelevant of the logged in user). And hence it is clear that the session is not maintained and the server is sending some anonymous data.

Some one help me on how to maintain the session in the SOAP client.

Note: I cannot ask the web service providers on this. 🙁

  • 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-10T00:36:32+00:00Added an answer on June 10, 2026 at 12:36 am

    Finally I figured out how to maintain cookie based session in Windows phone apps

    Thanks to Mike for his guidance.

    For all those who are wondering about the different ways of maintaining session in WP app,
    there is a class called CookieContainer which helps to maintain cookie data for us.

    Usage:

    First create a global instance of CookieContainer class ( I created in App.xaml.cs)

    //In App.xaml.cs
    CookieContainer cookieContainer = new CookieContainer();
    

    And then assign it to every request we make to the server from our app.

    MySoapClient client = new MySoapClient();
    client.CookieContainer = (App.Current as App).cookieContainer;
    client.LoginAsync("username", "password");
    

    Again for any other request in the app

    MyOtherSoapClient anotherClient = new MyOtherSoapClient();
    anotherClient.CookieContainer = (App.Current as App).cookieContainer;
    anotherClient.PostDataAsync("somedata");
    

    The same rule also applies for normal WebClient and HttpWebRequest classes also.

    Happy Coding 🙂

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

Sidebar

Related Questions

I am developing one android application in which i have implemented the 10 ads
I am developing an Android app which need to consume .Net webservices over SSL
I am developing an IOS application, which uses web services (SOAP/WSDL). I have built
We are developing an application which is read heavy and could possibly have millions
I'm developing a RESTful application that integrates with other webservices. My question is, which
When developing an application which consumes an external webservice I have generated the sources
I am developing one application which need the following functionalities I have webserver. I
If developing web applications using ASP.NET MVC or Ruby on Rails make the application
I am developing an ASP.Net C# web application that should access the database using
I developing application which using geo-location. Should i ask user right for this when

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.