Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i am caling wcf service from another domain using jquery, its called perfectly in ie8 but the same service is not called in firefox and chrome, please help me
Posted
Comments
Kuthuparakkal 26-Oct-12 10:54am    
pls post code

 
Share this answer
 
Hi,
You are using jQuery and you are calling a wcf service using ajax calls. Binding needs to be webHttpBinding. And this binding does not allow you to have cross-domain calls.

So to fix that,
1. Try to have one Ajax Enabled WCF service in your project, and have multiple cross-domain service references in the same project.

2. Use your ajax enabled wcf service to make calls to the cross-domain service(s).

3. Finally change your ajax call (from .js file or .aspx file etc..) to refer to the in-house (within the domain) ajax enabled wcf service.

You will get lot of examples on the net for demonstrating AjaxEnabledWcfService.
 
Share this answer
 

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