Click here to Skip to main content
15,888,221 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,


I need to access a WCF Service from windows application and Asp.net web appication.
In asp.net application i need access WCF Service from JQuery. But it will leads security leak(All user can see javascript files form that they can view Service url and parameter type passed etc) How to over come this?
Posted

1 solution

You'll have to call a different service that then calls the service you are trying to hide. You're right, they can see the JS. You can minify it or even obfuscate the JS which makes it much harder to find the information you are trying to hide.
 
Share this answer
 
Comments
fjdiewornncalwe 8-Nov-12 15:37pm    
+5. Good answer.
HarisJayadev 8-Nov-12 23:03pm    
Even after minifing or obfuscating i found service url and etc.. Can u give me any other solutions?
ZurdoDev 9-Nov-12 8:04am    
I don't know of any. If you want the code to execute from the client side, as in JavaScript, it has to be on the client. There is no way around that unless you use something that is compiled, like an ActiveX control but then you'll have major issues getting it to work in browsers. Can you use a button and do a full postback and do it from server side code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900