jquery - Return JSON data from a WCF service with netTcpBinding -


i'm creating wcf service return json data from. i'd call service , retrieve data using jquery. problem company allows nettcpbinding when hosting wcf projects. i've read returning json data wcf points using webhttpbinding.

  1. is possible return json wcf service uses nettcpbinding?
  2. can add multiple endpoints using different bindings point same service?
  3. if have complex class containing other child classes can returned using json?

(as aside i'm using web service software factory create service, i'm not sure if make more difficult having use message contracts , rest).

tia.

i implemented wcf , jquery , json in 1 of projects. can following things

1) write wcf serverics 2) can expose multiple end points. need expose particular service jsonp end poing 3) when expose services jsonp endpoing method return types automatically converted jsonp objects

you run cross domain issues please following link

http://jasonkelly.net/2009/05/using-jquery-jsonp-for-cross-domain-ajax-with-wcf-services/

if want working example access url http://www.art.com/gallery/id--b1823/animals-posters.htm?ui=8a93d7dfa9a544e1a91d826217fc4d7b

and mouseover image , click 1 of directoins , make ajax call wcf service returns jsonp

let me know if need more info on this.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -