Friday, 15 January 2010

How to send JSon array to remote asmx webservice using c#? -



How to send JSon array to remote asmx webservice using c#? -

in application i've send request remote asmx web service asking number of parameters. there parameter asking json array. can't figure out how can input json string in asmx url.(there no issues other string values other parameters). in advance.

it's understanding unless webservice has been heavily customised, going need pass parameter in request body rather parameter. illustration (with jquery):

var info = { paramname: ['this', 'is', 'the', 'array'] }; $.post('service.asmx/method?getparam1=herp&getparam2=derp', data) .done(function(d) { console.log('response: ' + json.stringify(d)); });

it's been while since used asmx service, , i'm not 100% positive can mix parameters that. have feeling if set in body, have set in it.

c# json web-services

No comments:

Post a Comment