WCF端点配置 [英] WCF End Point Configuration

查看:59
本文介绍了WCF端点配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

如果这个问题使您感到困惑,或者在场景中显得过于沉迷,请向我们提问.请认为我是.net的新手.

我最近开始阅读由Mike Liu撰写的书,书名为使用LINQ to Entities进行WCF 4 0多层服务开发" 好书很好地解释了WCF LINQ WPF项目中的Linq,Linq To Entities and Layers建设. .喜欢它.好吧

说到这里我有疑问.这不是实现问题.如果我们使用MSMQ开发Windows窗体和WCF中的分布式应用程序,则在开发环境中使用数据库实体,并将连接字符串写入WCF服务层的app.config中.这包含我们的开发IP地址,数据库密码等.如果是旧样式,我们可以提供一个对话框,用于输入服务器,数据库密码详细信息并将其写回到app.config文件中.完成开发后,我们如何才能使最终用户在自己的服务器上配置此WCF?

提前谢谢.
chowdary.

Hello,

Appologies if this question is confuses you or very drmatic in scenario. Please consider me as a new bie of .net

I have recently started reading the book written by Mike Liu Named "WCF 4 0 Multi tier Services Development with LINQ to Entities" Good book explained well about Linq, Linq To Entities and Layers construction in WCF LINQ WPF project. Like it. Ok.

Coming to the point i am having a doubt here. This is not implemetational issue. If we devloped a distributed Application in Windows forms and WCF using MSMQ, we uses an entity of database at dev enironment and it writes connection string in app.config of WCF service layer. This contains our dev IP address, password of database etc. if it is old style we can provide a dialog box take input of server, database password details and can write it back to the app.config file. After completing of development how we can give a change to end user to configure this WCF on his own servers????

Thanks in advance.
chowdary.

推荐答案

我不是WCF的专家,但是您不能通过添加管理员可以调用的方法来配置WCF服务.这甚至可能是一个只有他自己可以配置的单独程序,因为信息存储在服务器上的XML文件中了吗?

否则,我将不得不把您引向Microsoft文档:
WCF教程 [
Im not an expert in WCF, but can you not configure the WCF service by adding methods that can be called by the admin. This could even be a separate program that only he can configure, as the information is stored in an XML file on the server no?

Otherwise I''ll have to direct you to the Microsoft documentation:
WCF tutorial[^]


The以下步骤将帮助您提供服务.
1.为wcf服务的可配置部分准备一个好的文档.这些配置部分可以是端点,身份等.
2.使用
SvcConfigEditor.exe [
The following procedures will help you to provide the service.
1. Prepare a good documentation for the configurable parts of the wcf service. These configuration parts could be the endpoint, identity etc.
2. Use SvcConfigEditor.exe[^] which is provided by Microsoft for such purpose.

Note:I am assuming that there is a Technical Person that can able to deploy the service on the host server.


这篇关于WCF端点配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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