我们可以使用相同的URL来获取数据并将数据发布到wcf [英] can we use same url to get data from and post data to wcf

查看:51
本文介绍了我们可以使用相同的URL来获取数据并将数据发布到wcf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以将json数组数据发布到wcf但是在发布之前我们需要检查某些条件是真还是假。

我的意思是我必须检查特定值是否:交易ID是在我的桌子上可用,如果它是tru,我将发布json。



我知道我们需要传递两个网址:一个用于检查表中的值,另一个用于发布json。



但是我们可以使用相同的网址来做两个。



谢谢提前,

-navdeepsingh

can we post json array data to wcf but before posting we need to check whether some condition are true or false.
I mean i will have to check whether a particular value ie:Transaction ID is available in my table if it is tru the i will post json.

I know that we need two urls to be passed: one for checking value in table and another for posting json.

But is that possible that we can do the both using same url.

Thanks in advance,
-navdeepsingh

推荐答案

不,这只能用一个网址完成。

你可以使用您要发布数据的相同网址检查条件。将条件作为参数传递给WCF方法以及要发布的数据。



首先使用第一个参数检查您的条件,如果它是真的保存数据。



简单? ;)



-KR
No, this can be done using one URL only.
You can check condition using the same URL that you want to post your data. Pass the condition as a parameter to the WCF method along with the data you want to post.

First check your condition using the first parameter and if its true save the data.

Simple ? ;)

-KR


这篇关于我们可以使用相同的URL来获取数据并将数据发布到wcf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆