Re: Layout Advice

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Steven,

Ok, you have 2 choices
First is implementing ICallbackEventHandler which "hides" all your calls to server, but there are a lot of manual jobs
Secord, rely on ajax, where everything implemented for you, even Logging to the server - see http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.Services/AuthenticationServiceClass/default.aspx


Btw, to consumer services from javascript u recommed to rely on ajax and JSON serialization - google to find more samples.
For example there u can find a good sample how to consume WCF services directly from javascript http://msdn2.microsoft.com/en-us/library/bb514961.aspx

---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo


SE> Hi,
SE> SE> Our company currently has a client/server based app. Now the need
SE> has arisen to tap some of the functionality from a webpage. This
SE> means the client will disappear and a subset of functionality will
SE> be needed from the web.
SE> SE> Normally a user logs in from the client, then functionality will
SE> send commands to the server to accomplish certain things.
SE> SE> I also have a traditional unmanaged COM object that wraps this
SE> functionality for 3rd party developers to use.
SE> SE> //pseudo code
SE> ServerConn conn = new ServerConn ();
SE> int UserID = conn.Authenticate(UserName, Password);
SE> if(UserID != -1)
SE> {
SE> //do some stuff
SE> }
SE> conn.Close();
SE> SE> Since there needs to be a user logged in, I'd like to tie the object
SE> to a session. Here's the kicker. The "stuff" that needs to be done
SE> needs to be done from JavaScript without postbacks. For example
SE> clicking an arrow to move a camera. The movement of that camera
SE> has to be tied to a "logged in" user. I had considered doing a
SE> web service, but wasn't sure how that would maintain a logged in
SE> user, then consume the web service within the JavaScript
SE> So I need to be able to:
SE> SE> Connection [Server-Side Script]
SE> Log In [Server-Side Script]
SE> Perform functions with hardware [Client-Side JavaScript]
SE> Close Connection [Server-Side Script]
SE> I had also considered wrapping the client-side needs in a page,
SE> and have the arrows, for example, call the page with XMLHttpRequest.
SE> I also wasn't sure if that would use the same logged in session.
SE> Thanks for the advice ahead of time.
SE> SE> Steven
SE>


.



Relevant Pages

  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... You could do it as a web service. ... The handler can draw on the webservice for information and db lookup. ... IE posts data AJAX to handler on web server ... featured application (say thick client) which does a lot of complicate ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Impersonated login to web service from outside domain
    ... the client is part of the domain group. ... : integrated windows auth fails. ... You can try creating an identical local user on the server (as the one you ... next call to the web service (ie. the process requiring the credentials to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Unable to access AS2k from Win 2k m/c URGENT!!!!!!
    ... No, the Win2k machine just needs to have XMLA SDK and/or ADOMD.NET, MSXML4 ... > Analysis server need more credentials than specified in my ... the same machine as the ADOMD.NET client. ... Why do you need this web service ...
    (microsoft.public.data.xmlanalysis)
  • Re: Impersonated login to web service from outside domain
    ... the client is part of the domain group. ... You can try creating an identical local user on the server (as the one you ... next call to the web service (ie. the process requiring the credentials to ... Any other windows server gurus care to clarify? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web service testing
    ... To test if my code was faulty or not, I back-ported the web service to a standard 2.0 web service using Visual Studio 2005. ... The service is run under IIS on a Windows 2003 server, so there are no server side connection limits that can explain this. ... ASP.NET webservice application. ... In addition, since the problems occur at client, you can use Visual studio ...
    (microsoft.public.dotnet.framework.webservices)