Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net Remoting Problem Pin
Heath Stewart11-Jun-04 4:07
protectorHeath Stewart11-Jun-04 4:07 
QuestionMouseEvent? Pin
thomasa10-Jun-04 21:20
thomasa10-Jun-04 21:20 
AnswerRe: MouseEvent? Pin
Heath Stewart11-Jun-04 4:06
protectorHeath Stewart11-Jun-04 4:06 
GeneralC# define Pin
misterbear10-Jun-04 20:56
misterbear10-Jun-04 20:56 
GeneralRe: C# define Pin
Mazdak10-Jun-04 21:37
Mazdak10-Jun-04 21:37 
GeneralRe: C# define Pin
Colin Angus Mackay11-Jun-04 3:55
Colin Angus Mackay11-Jun-04 3:55 
GeneralSending and Receiving Data Pin
10-Jun-04 20:50
suss10-Jun-04 20:50 
GeneralRe: Sending and Receiving Data Pin
Heath Stewart11-Jun-04 3:58
protectorHeath Stewart11-Jun-04 3:58 
If you use the HttpWebRequest and HttpWebResponse classes, the SSL handshaking is done for you so everything is transparent. A ServicePoint is just a way to manage connections, probably not something you need in a simple request/response scenario.

Here's another idea you should consider, though: XML Web Services. Not only does it take care of SSL automatically for you (the client proxy actually uses the HttpWebRequest and HttpWebResponse classes internally) but it also takes care of the protocol by which your client and server communicate. All you need to do is extend WebService (the easiest way is to either add a new web service class to your existing ASP.NET web application, or create a new ASP.NET web application that, if nothing else, simply hosts the Web Service) and add methods to it. Any methods to be exposed to clients should be public and should be attributed with the WebMethodAttribute.

XML Web Services are an industry standard and there are libraries for every major language available.

If you want to tie security, routing, encryption, etc. into this, take a look at the Microsoft Web Service Enhancements (WSE) 2.0 at http://msdn.microsoft.com/webservices/building/wse/[^]. This also uses industry standards like WS-Addressing, WS-Encryption, and many more defined by a consortium of industry leaders (including Microsoft, IBM, and others) and standardized by the W3C[^]. It can cetain aliviate a lot of problems with having to define a protocol and can handle a lot of complex data without you have to do a lot of work.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Sending and Receiving Data Pin
Richard Beacroft11-Jun-04 6:55
Richard Beacroft11-Jun-04 6:55 
GeneralAny Idea Pin
sreejith ss nair10-Jun-04 20:29
sreejith ss nair10-Jun-04 20:29 
GeneralRe: Any Idea Pin
Corinna John10-Jun-04 23:13
Corinna John10-Jun-04 23:13 
GeneralRe: Any Idea Pin
Heath Stewart11-Jun-04 3:47
protectorHeath Stewart11-Jun-04 3:47 
GeneralChanging the look of a row of datagrid on mouseover Pin
rajeev_mr10-Jun-04 19:34
rajeev_mr10-Jun-04 19:34 
GeneralRe: Changing the look of a row of datagrid on mouseover Pin
Heath Stewart11-Jun-04 3:45
protectorHeath Stewart11-Jun-04 3:45 
GeneralXML Serialization & Deserialization Pin
khchan10-Jun-04 18:40
khchan10-Jun-04 18:40 
GeneralRe: XML Serialization & Deserialization Pin
Heath Stewart11-Jun-04 3:37
protectorHeath Stewart11-Jun-04 3:37 
Generaladding a Menu bar log Pin
samithas10-Jun-04 18:18
samithas10-Jun-04 18:18 
QuestionHow does ImageIndex property works Pin
luming112233445510-Jun-04 17:42
luming112233445510-Jun-04 17:42 
AnswerRe: How does ImageIndex property works Pin
Nick Seng10-Jun-04 21:30
Nick Seng10-Jun-04 21:30 
GeneralRe: How does ImageIndex property works Pin
Heath Stewart11-Jun-04 3:30
protectorHeath Stewart11-Jun-04 3:30 
AnswerRe: How does ImageIndex property works Pin
Heath Stewart11-Jun-04 3:29
protectorHeath Stewart11-Jun-04 3:29 
GeneralRe: How does ImageIndex property works Pin
luming112233445513-Jun-04 16:17
luming112233445513-Jun-04 16:17 
GeneralRe: How does ImageIndex property works Pin
Heath Stewart13-Jun-04 17:52
protectorHeath Stewart13-Jun-04 17:52 
Generalincremental installation of C# application Pin
ting66810-Jun-04 15:52
ting66810-Jun-04 15:52 
GeneralRe: incremental installation of C# application Pin
Peter Vertes10-Jun-04 17:52
Peter Vertes10-Jun-04 17:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.