如何知道webservices中使用的datacontract [英] how to know the datacontract used in webservices

查看:62
本文介绍了如何知道webservices中使用的datacontract的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi frens



我是宁静网络服务的新手.....我怀疑是:



客户如何知道在restful Web服务中使用的数据提取(例如,如果我们使用其他人创建的第三方Web服务...... ???





提前感谢

darshan

hi frens

I am new to the restful webservice ..... the doubt i ve is :

How can client know the datacontract which is used in restful web service ( for example if we are using the 3rd party web service created by others .... ???


thanks in advance
darshan

推荐答案

如果服务有已启用HttpGet 并且它具有元数据行为您可以使用ServiceModel元数据实用工具(Svcutil.exe)来创建客户端代理。





http://msdn.microsoft.com/ en-us / library / ms733133.aspx [ ^ ]



这是WCF创建客户端的如何步骤。如果提到的2个约束不可能那么你需要一个暴露接口合同的ference库。
If the Service has HttpGet enabled and it is has a Meta Data behavior you can use the ServiceModel Metadata Utility Tool (Svcutil.exe)to create a client proxy.


http://msdn.microsoft.com/en-us/library/ms733133.aspx[^]

This is the "How to" step for WCF in creating a client that does so. If the 2 constraints mentioned are not possible then you will need a reference library that exposes the interface contract.


这篇关于如何知道webservices中使用的datacontract的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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