如何在Wcf Rest Service中传递并获取标头值? [英] How to pass and get the header value in Wcf Rest Service?

查看:59
本文介绍了如何在Wcf Rest Service中传递并获取标头值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi every one,At the time of creating the service How can i pass Header value and how can i get that header value in service code please help me,

我对此一无所知

anilbabu

推荐答案

嗨anil33,

Hi anil33,

根据这种情况,据我所知,我们可以使用WebOperationContext发送和获取

According to this case, as far as I know, we can use the WebOperationContext to send and get

标题.

有关更多信息,请参阅以下文章:

For more information, please refer to the following articles:

WebOperationContext类

这里是有关此案的样本.

Here is a sample about this case.

WCF REST Pass和Get Header Field.cs

WCF REST Pass and Get Header Field.cs

最好的问候,

Grady


这篇关于如何在Wcf Rest Service中传递并获取标头值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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