Click here to Skip to main content
16,016,789 members

Comments by wShaiza (Top 1 by date)

wShaiza 22-Jun-13 2:05am View    
Hello Zafar,

I appreciate your help. But the link doesn't exactly relate to the issue that I have. In the solution explained in the link, the JavaScript seems to have been auto-generated. What I want to do is write the code on the client side using Javascript which would then call the WCF. So basically, there would be two projects within the same solution.

Btw, I am able to call the WCF if the Javascript is also in the same project. Here's the code that I use to do that,( just in case it helps make my point more clear):

$.ajax({
type: "POST",

url: "Service1.svc/functionName",

contentType: "application/json;charset=utf-8", // content type sent to server
dataType:"json",
success: ServiceSucceeded,
error: ServiceFailed
});