473,382 Members | 1,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Different behaviour access WS from browser and thick client

I have a WS that I call that with one method 'logs in' to a COM object
and then, with a 2nd method makes a call to the COM object and returns
some data.

Used from a web app this runs fine. This appears to be because I
always connect to the same Session on the WS Server and the
'logged-in' COM object is stored in the Session object.

If I try and do the same thing from a client-side app each call the WS
creates a new session so my 2nd call fails 'cos it can't find the
'logged-in' COM object.

I know that this is a bit vague, but does anyone have any suggestions
about how I can get the 2nd and subsequent calls to use the same
session as the one I started with my first call?

--
Stuart
See headers for PGP Key.
If you think nobody cares whether you're alive or dead, try missing a
couple of mortgage payments.
Nov 21 '05 #1
3 1293
On 26/11/2004, around 17:06, Stuart Hemming (via DFN-CIS NetNews Service) wrote:

SH> I know that this is a bit vague, but does anyone have any suggestions
SH> about how I can get the 2nd and subsequent calls to use the same
SH> session as the one I started with my first call?
It seems that System.Net.CookieContainer() is your friend. The thing
is I'm using this in my Web app but it hadn't registered that I could
use it in a client app too.

--
Stuart
See headers for PGP Key.
The Benefits of Being Over Sixty ( 3) : Your joints are more accurate
meteorologists than the national weather service.

Nov 21 '05 #2
Can you just change your WS definition to log you in AND receive the data?

"Stuart Hemming (via DFN-CIS NetNews Service)" <sh******@estatecomputers.com> wrote in message
news:71**********************@estatecomputers.com. ..
I have a WS that I call that with one method 'logs in' to a COM object
and then, with a 2nd method makes a call to the COM object and returns
some data.

Used from a web app this runs fine. This appears to be because I
always connect to the same Session on the WS Server and the
'logged-in' COM object is stored in the Session object.

If I try and do the same thing from a client-side app each call the WS
creates a new session so my 2nd call fails 'cos it can't find the
'logged-in' COM object.

I know that this is a bit vague, but does anyone have any suggestions
about how I can get the 2nd and subsequent calls to use the same
session as the one I started with my first call?

--
Stuart
See headers for PGP Key.
If you think nobody cares whether you're alive or dead, try missing a
couple of mortgage payments.

Nov 21 '05 #3
On 02/12/2004, around 09:10, Scott Meddows wrote:

SM> Can you just change your WS definition to log you in AND receive the data?
NO, not really. The WS is the data interface layer for an interactive
activity so it's a case of Log in, get some data, present it to the
user, take the user's reaction to that data and get some more. This
latter action has to be done in the context of what has gone on
before.

--
Stuart
See headers for PGP Key.
Those who live by the sword get shot by those who don't.

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephan | last post by:
Hello to all, I'm looking into providing mobile access to a web based administrative application currently running on .Net with MS SQL. The current architecture only supports the latest Internet...
1
by: Krist | last post by:
Hi All, Our customer has just decided to choose as development standard. The application is HR application with report. While many like Web client, Java application/thick client is still...
1
by: Jenny | last post by:
Need urgent help for an unsolved problem. In our ASP web application, we creat a Back button and if user click on this button, it execute history.go(-1) to go back to the previous page. All our...
8
by: Lian | last post by:
Hi all, It is a newbie's question about html tag "img". The attributes "title" and "alt" for "img" seems having the same function. So what is the main difference between them? Can i use them at...
9
by: Tony Epton | last post by:
I have done a partial conversion of a large MS Access batch processing program to use a SQL server 2000 back end. All I have done is move all the access tables in to SQL server and give them...
11
by: budhA | last post by:
Hi, Is it possible to access global assembly cache on user's machine from asp.net web page. The user will download assembly, wich will be installed in gac.When he opens the web page I need to...
6
by: Doug Mazzacua | last post by:
I noticed that that <ul> lists display differently with <br> between <li>s in IE and Mozilla. Does anyone know of a reference that catalogs all of the known types of differences in display...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.