Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf rest服务-如何使用服务约定命名空间_Wcf_Rest_Servicecontract - Fatal编程技术网

Wcf rest服务-如何使用服务约定命名空间

Wcf rest服务-如何使用服务约定命名空间,wcf,rest,servicecontract,Wcf,Rest,Servicecontract,我有一个wcf服务,我做了restfull,但是编辑了intereface和webconfig。 在界面中,我有以下内容: [ServiceContract] public interface ITsmApi { [OperationContract] [WebInvoke(UriTemplate = "/GetOrganizationNo", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageF

我有一个wcf服务,我做了restfull,但是编辑了intereface和webconfig。 在界面中,我有以下内容:

[ServiceContract]
public interface ITsmApi
{
    [OperationContract] 
    [WebInvoke(UriTemplate = "/GetOrganizationNo", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Xml, Method = "POST")]
    string GetOrganizationNo(CustomerNoInput input);
}
我想知道是否有可能以这种方式调用webservice函数:

我希望指向这些函数的URL链接不会如下所示:

-意味着我不想使用SVC扩展。那有可能吗

我怀疑我必须使用服务契约名称空间,但我找不到过程是什么