如何在Wcf Url中传递Json字符串 [英] How Do I Pass A Json String In A Wcf Url

查看:155
本文介绍了如何在Wcf Url中传递Json字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果我使用vb6传递JSON字符串有什么问题。

我的.svc是= http:// localhost:5523 / Service1.svc?singleWsdl [ ^ ]

我希望传递{'userID':'Eyc','密码':'Mani','serviceType':'chame','服务':'siri','serviceAccount':'bunge','amount':'mikanda','uniqueReferenceNo':'mikas'}

作为vb6应用程序的参数。

我的问题是可能吗?

i would like to know what is wrong if i pass a JSON string using vb6.
my .svc is = http://localhost:5523/Service1.svc?singleWsdl[^]
and i would like to pass "{'userID': 'Eyc','password': 'Mani','serviceType': 'chame','serviced': 'siri','serviceAccount':'bunge','amount': 'mikanda','uniqueReferenceNo': 'mikas'}"
as a parameter from vb6 application.
my question is is it possible?

推荐答案

是的,这是可能的。



检查这些链接 -

Q. 使用c#将json字符串数据传递给Rest服务(POST方法)[ ^ ]

A. http://dotnetcodeforu.blogspot.in/2013/12/pass-json-string-data -to-rest-service.html [ ^ ]



希望,有帮助:)
Yes, it's possible.

Check these links-
Q. Pass json string data to Rest service (POST Method) using c#[^]
A. http://dotnetcodeforu.blogspot.in/2013/12/pass-json-string-data-to-rest-service.html[^]

Hope, it helps :)


是, 有可能的。您需要解决它。

有关更多想法,请参阅此基本教程: http://wcftutorial.net/How_To_JSON_Using_WCF。 aspx [ ^ ]



-KR
Yes, it is possible. You need to workaround it.
See this basic tutorial for more idea: http://wcftutorial.net/How_To_JSON_Using_WCF.aspx[^]

-KR


这篇关于如何在Wcf Url中传递Json字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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