WCF jQuery or ScriptManager -


i have asp.net 3.5 web application

i have firefox browser plugin use connect , communicate scanner attached client computer.

i need send data client computer (retrieved form scanner) remote sql database through wcf web service far have tested following.

i able create wcf service (restful) , using json wire data , on client side.

i created prototype using jquery , serializied object using json2.js stringify() , sent remote server. similarly, can (retrieve) custom object in client code (javascript)

questions a) correct approach? think instead of using jquery/json (ajax() post) advisable use scriptmanager along ajax enabled wcf.

b) currently, plugin sends data javascript object have reformat can wired web service. wcf service accept 1 input object , browser plugin(add-on) data returned javascript object has different property names have recreate object can stringified in format web service accept it

can pass object retrieved scanner (inside javascript) directly , deserialize on server side (wcf) level?

it looks wcf doing automatically me have reformat object on client. want avoid , see can send directly.

it depends on requirement. jquery option lot faster. if don't have complex service requirements may require 2 way connections, or guaranteed connections - jquery fine.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -