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

Invoking WCF service through java script.

I wrote a method to invoke the service ,everthing is fine but while attaching url to method im facing problem.

This application for an IPhone application.

please help me.

Thanks in Advance.
Posted
Updated 15-Jun-11 20:51pm
v2

REST (REpresentational State Tranfer) will help you achieve that.
Try articles @

Create REST Service using WCF[^]

http://karnicki.eu/2011/02/rest-wcf-net-4-0-service-with-json-jsonp-for-jquery/[^]
 
Share this answer
 
v2
I don't connect directly from the client with my WCF services.
Another thing I have is that most of my services are not exposed to the outside of the server or I want them secured under forms authentication.

So, for this what I do is create an Handler (ASHX) that acts as a controller that can transform the information that comes and goes.
On the client O call a method on the ASHX that to its thing (call a service or whatever), does all the necessary transformations (if any) and return the result back to the client.
 
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