I am working on a project where I need to make a call from .NET platform to non .NET Web service. I am making web service call using some methods where I can generate SOAP request to access web service. I made this communication using code given in code-projet site.http://www.codeproject.com/Articles/376168/Csharp-Dynamic-Web-Service-Invoker. I am able to communicate properly but I would like to make this communication more secure. Only reason to make web service dynamic is because it may reside on different locations.
My approach is to add secure token (some string) in a newly created header and add that header in outgoing SOAP request. And at receiving end (non .net platform), I will extract that value from header and verify against some algorithm and if things go fine, then only it will start rest of processes.
After researching couple of sites, I found that all the answers are for adding custom SOAP headers are pointing to direction where we use either WCF or Static web services. But here that is not the case. I just wrote simple plugin(Class) that makes this communication. I am calling web service after generating assembly reference after reading WSDL file from remote location.
I researched around 20-30 different forums to get answer to this question but none has the answer. Can someone help on this?