Click here to Skip to main content
15,671,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

     I have my web site contents hosted on a server.
     On the same server WCF service is hosted
     I am using jquery to call wcf service.

     Here is another web application hosted which is calling the pages from server 1 web apps
1st scenario : When I am calling SERVER1 page link in SERVER2 web page, the wcf service calls from SERVER1 pages returns an error?
Error details : Parse Error

How to make the service call success?it is not even making call to the service methods!! :(

The web pages will execute on Android and iOS device browser.

Thanks in advance for suggestions
Updated 22-Jul-13 23:02pm
Jameel VM 23-Jul-13 5:22am    
can you post the service call?
Avinash6474 23-Jul-13 6:23am    
type: "POST",
url: "http://Server1/WcfService/Service1.svc/UserInfo",
data: jsonText2,
contentType: "application/json;charset=utf-8",
dataType: "json",
timeout: 1000 * 60 * 15,
success: function (data) {
alert("Logged in successfully");
error: function (error) {
Jameel VM 23-Jul-13 7:11am    
what is jsonText? can you the post complete structure
Avinash6474 24-Jul-13 4:03am    
jsonText is a json object which are input parametes to service method
var jsonText=JSON.stringify({"EmailId": email,"Name": name});

1 solution

Here is a solution :
call wcf service from other server web application[^]

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