Click here to Skip to main content
15,891,248 members
Home / Discussions / C#
   

C#

 
Questionhow to execute another application thru C#? Pin
Eddymvp4-May-07 5:54
Eddymvp4-May-07 5:54 
AnswerRe: how to execute another application thru C#? Pin
Arun.Immanuel4-May-07 6:05
Arun.Immanuel4-May-07 6:05 
AnswerRe: how to execute another application thru C#? Pin
Paul Conrad4-May-07 13:54
professionalPaul Conrad4-May-07 13:54 
AnswerRe: how to execute another application thru C#? Pin
AFSEKI7-May-07 3:20
AFSEKI7-May-07 3:20 
GeneralRe: how to execute another application thru C#? Pin
Eddymvp7-May-07 3:22
Eddymvp7-May-07 3:22 
QuestionCrystal Report Deploying problem Pin
Nermeenez4-May-07 4:24
Nermeenez4-May-07 4:24 
AnswerRe: Crystal Report Deploying problem Pin
Tarakeshwar Reddy4-May-07 4:37
professionalTarakeshwar Reddy4-May-07 4:37 
QuestionSecure Web Service with C# DataSource Pin
Andre Vianna4-May-07 4:22
Andre Vianna4-May-07 4:22 
Hi,

I have a webservice serving a dataset with several tables. Every table has two main webmethods that allows then to interact with the databound controls in the client.
The general form of these methods are (please, its just a sample code to give the idea of the process):

<br />
[WebMethod]<br />
public MyDataSet.MyTableDataTable MyTableGetAll() {<br />
MyDataSetTableAdapters.MyTableTableAdapter vTa = new MyDataSetTableAdapters.MyTableTableAdapter();<br />
return vTa.GetAll();<br />
}<br />
<br />
[WebMethod]<br />
public int MyTableUpdate(MyDataSet.MyTableDataTable pDt) {<br />
MyDataSetTableAdapters.MyTableTableAdapter vTa = new MyDataSetTableAdapters.MyTableTableAdapter();<br />
return vTa.Update(pDt);<br />
}<br />


They work just perfect and I can use any databound control as if the dataset was local.
But how can I add encryptation to this solution without losing the bahavior of the conection.
I know how to send encrypt data via RSA keys thru a webservice but only with basic datatypes (as string or itegers) and even encrypt a content of a XML message. But how can I encrypt the data and the metadata structure (cause it would be terrible to encypt the data and give up the table structure in the resulting XML) and retrieve the DataTable object funcionality at the client side and vice-versa?

The following solution works?


<br />
// Server side<br />
[WebMethod]<br />
public {XML or String} MyTableGetAll() {<br />
MyDataSetTableAdapters.MyTableTableAdapter vTa = new MyDataSetTableAdapters.MyTableTableAdapter();<br />
return SomeEncryptFunction(vTa.GetAll());<br />
}<br />
<br />
// Client side<br />
public localhost.MyDataSet.MyTableDataTable GetMyTableData() {<br />
localhost.WebService vSvc = new localhost.WebService();<br />
return SomeDecryptFunction(vSvc.MyTableGetAll());<br />
}<br />
<br />
// Some Other place in the Client Side<br />
...<br />
oDataBoundObject.DataSource = GetMyTableData();<br />
...<br />



If It does what would be the code for SomeEncryptFunction and SomeDecryptFunction (the second one is the most important 'cause it has to retreive the DataTable object properly) ?

Thanks in advance for any help about this.


Sir Gallahad

P.S.

I've been reading about implementint security and cryptograpy to web services with WSE SOAP headers. But the articles I've read does not explain well how to code in the client and server side to make the handshake between them.

If that is the solution, can someone help me explaining how to do that.
Please any clue. Any code. Any link. Please. Confused | :confused:
QuestionDisapear sln Pin
sujithkumarsl4-May-07 3:46
sujithkumarsl4-May-07 3:46 
AnswerRe: Disapear sln Pin
rujuc#4-May-07 4:18
rujuc#4-May-07 4:18 
AnswerRe: Disapear sln Pin
marky7774-May-07 5:03
marky7774-May-07 5:03 
QuestionReading HashTable ? Pin
Software_Specialist4-May-07 2:09
Software_Specialist4-May-07 2:09 
AnswerRe: Reading HashTable ? Pin
rah_sin4-May-07 2:35
professionalrah_sin4-May-07 2:35 
GeneralRe: Reading HashTable ? Pin
Software_Specialist4-May-07 4:15
Software_Specialist4-May-07 4:15 
QuestionException Handling: Object creation within try block Pin
Goebel4-May-07 2:03
Goebel4-May-07 2:03 
AnswerRe: Exception Handling: Object creation within try block Pin
Pete O'Hanlon4-May-07 2:09
mvePete O'Hanlon4-May-07 2:09 
GeneralRe: Exception Handling: Object creation within try block Pin
Goebel4-May-07 2:23
Goebel4-May-07 2:23 
GeneralRe: Exception Handling: Object creation within try block Pin
Pete O'Hanlon4-May-07 2:27
mvePete O'Hanlon4-May-07 2:27 
GeneralRe: Exception Handling: Object creation within try block Pin
Goebel4-May-07 2:47
Goebel4-May-07 2:47 
AnswerRe: Exception Handling: Object creation within try block Pin
Tim Paaschen4-May-07 2:13
Tim Paaschen4-May-07 2:13 
GeneralRe: Exception Handling: Object creation within try block Pin
Goebel4-May-07 2:33
Goebel4-May-07 2:33 
GeneralRe: Exception Handling: Object creation within try block Pin
Tim Paaschen4-May-07 2:48
Tim Paaschen4-May-07 2:48 
GeneralRe: Exception Handling: Object creation within try block Pin
Goebel4-May-07 2:57
Goebel4-May-07 2:57 
AnswerRe: Exception Handling: Object creation within try block Pin
AFSEKI7-May-07 3:22
AFSEKI7-May-07 3:22 
AnswerRe: Exception Handling: Object creation within try block [modified] Pin
gumi_r@msn.com7-May-07 6:31
gumi_r@msn.com7-May-07 6:31 

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.