Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows WCF ASP.NET4.0
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 5-Nov-12 20:15pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Marcus Kramer at 8-Nov-12 15:37pm
   
+5. Good answer.
HarisJayadev at 8-Nov-12 23:03pm
   
Even after minifing or obfuscating i found service url and etc.. Can u give me any other solutions?
ryanb31 at 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)

  Print Answers RSS
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100