I don't actually have THE answer for you... but! You can look at the source code of the libraries and find out where they do it. I had to do that for my first mobile web application for some virtual events.
You can get the un-minified version of most of them and read through it.
I'd like to make a web service that allows to find the shortest path between bus stations with Dijkstra's algorithm, then the path will be displayed on a map. (I have a database that contains the coordinated stations) but I do not know "how to start": , I am really blocked for a week and i dont find any thing , i dont find a tutorials as this subject
( This web service will be used by my android application)
realy i need help
(i use eclipse)
thank you in advance
Please understand I'm asking this question at a very high level. My client wants me to develop a secure web API for capture and reporting on business data. This is the core requirement, and secondary to that, he wants an application that consumes the API. I'm quite happy to deliver both in my chosen dev platform, i.e. ASP.NET MVC4, but I'd like some overview suggestions on what to look at 'horizontally' so to say. Should I cater for multiple formats, be REST? What are my options for securing the API? A good book covering this area would me an immense help if someone can recommend one.
I have created a WCF server application, and it's consumed by client. Everything works fine!
The problem is that I need to create a thread for every client that is connected to the server. I have read a lot that the web service create automatically a thread for every client. I tried to connect more clients, and it works.
But I need do create thread manually in my WCF server application.
Well, it is one of the project conditions. Unfortunately, I have no idea how can I do this.
All I know about threads in WCF, is that WCF uses threads from a thread pool to service requests. So when a request begins it draws a thread from this pool to execute the request and after it finishes it returns the thread to the pool.
you need to explain more what / why you are after creating a thread manually and what you are after achieving in the thread so that we can help you better.
As WCF creates a thread on the IIS server for each instance that it recieves.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
In my Server application I host a web service, which it communicates with client successfully(in localhost). WCF manage the communication between client and service, and it creates threads(automatically) for each client request that is connect.
What I need to do, is creating threads manually in my Server application for each client request.
When thread is started, it will encrypt data's(void function for encrypting) and will sent to the client. after this is done, destroy thread.
staticvoid Main(string args)
Uri httpUrl = new Uri("http://localhost:8010/MyService");
ServiceHost host = new ServiceHost(typeof(ClassLibrary1.Communicatio), httpUrl);
//Add a service endpoint
, new WSHttpBinding(), "");
//Enable metadata exchange
ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
smb.HttpGetEnabled = true;
//Start the Service
I need to jquery source code implement fluid height for my jqgrid. First set the grid height as of screen size height and when the screen resolution changes or when I reduce the screen height the grid height should change based on that.