在Webrole应用程序中使用WCF服务引用
我开发了一个具有一个 Webrole 和一个 WCF 角色的云应用程序。我的 WCF 服务将充当模型并从数据库获取数据。当 WCF 服务在本地主机或 IIS 中运行时,我可以在我的 webrole 中获取它的服务引用。
但是当我在 Dev Fabric 中运行我的 webrole 和 wcf 服务时,我无法获取在 dev Fabric 上运行的服务引用,网址为 http://127.0.0.1/TestService.svc。
我在 webrole 中使用的 web.config 是,
有人可以分享一些信息吗?我如何从 Web 角色获取在 dev Fabric 中运行的 WCF 服务的服务引用?
谢谢, 基兰
I have developed a cloud application with one Webrole and a WCF role. My WCF service will act as model and gets me the data from the database. I am able get the Service Referece of my WCF service in my webrole when it running either in localhost or from IIS.
But when i run my webrole and wcf service in Dev Fabric, i am unable to take the service reference which is running on dev fabric with the url http://127.0.0.1/TestService.svc.
The web.config i am using in webrole is,
Can somebody share me some information, how can i take the service reference of a WCF service which is running in dev fabric from a web role?
Thanks,
Kiran
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您提到了 web.config,但您似乎没有将其包含在原始帖子中。无论如何:您缺少 URI 上的端口号。
You mentioned the web.config, but it appears you didn't include it in your original post. Regardless: you are missing the port number on your URI.