I need to create encryption method that is embedded in the web methods for all messages that will pass through the API.
Sample Message to Invoke Request Session method:
RetSession sess = requestSession(string sUsr, string sPwd, string signature)
Where:
signature = (sUsr + sPwd + secretKey)
RetSession sess = requestSession(string sUsr, string sPwd, string signature)
Where:
signature = (sUsr + sPwd + secretKey)
Response:
0 - Invalid Reference Number
1 - Transaction Successful
2 - Invalid Login (Username/Password)
1 - Transaction Successful
2 - Invalid Login (Username/Password)
I have created like this
App.config
contract="BOC_Service.BankComApiSoap" name="BankComApiSoap" />
But am getting error in the Page :
//Final Process Button click
private void btn_process_Click(object sender, RoutedEventArgs e)
{
BOC_Service.RetSession sess = re
sess.
}
private void btn_process_Click(object sender, RoutedEventArgs e)
{
BOC_Service.RetSession sess = re
sess.
}

Guest UserPosted Aug 1, 2014, 9:39 PM
So, your goal is to secure WCF data transmission.
http://www.asp.net/web-api/overview/working-with-http/http-message-handlers