WWF印象(2):示例ExpenseReporting,试试不是本机Host
2006-03-14 09:27
295 查看
ExpenseReporting,是WWF示例中比较完整的一个,可以到这里http://www.windowsworkflow.net/下载最新的版本,要想正确运行,请先下载安装WinFX Runtime,编译 ExpenseReporting,运行
之前对WWF Host概念比较模糊,仔细看了ExpenseReporting之后,比较清楚了,
在ExpenseHost.exe,有一个配置文件ExpenseHost.exe.config,其中有一段
<system.serviceModel>
<services>
<service name="ExpenseLocalServices.ExpenseService">
<!-- Use base address provided by host. -->
<!-- Specify BasicProfile binding and a binding configuration to use. -->
<endpoint
address="http://tianchi-cleo:8081/WFSamples/ExpenseService"
binding="wsHttpBinding"
contract="ExpenseContracts.IExpenseService" />
</service>
</services>
</system.serviceModel>
其中http://tianchi-cleo:8081/WFSamples/ExpenseService就是你Host的地址,我认为,ExpenseHost.exe最终在这个地址端口建立一个服务,这样,ExpenseApplication.exe和ManagerApplication.exe可以同过这个端口进行通讯。因为你在ExpenseApplication.exe.config和ManagerApplication.exe.config可以看到相似的配置片断,(你如果要修改,请一定要改成一致,否则。。。)我们之前一直迷惑怎么进行非本机的Host,现在清楚了,只要改成远程地址就可以了。
运行结果如下:
之前对WWF Host概念比较模糊,仔细看了ExpenseReporting之后,比较清楚了,
在ExpenseHost.exe,有一个配置文件ExpenseHost.exe.config,其中有一段
<system.serviceModel>
<services>
<service name="ExpenseLocalServices.ExpenseService">
<!-- Use base address provided by host. -->
<!-- Specify BasicProfile binding and a binding configuration to use. -->
<endpoint
address="http://tianchi-cleo:8081/WFSamples/ExpenseService"
binding="wsHttpBinding"
contract="ExpenseContracts.IExpenseService" />
</service>
</services>
</system.serviceModel>
其中http://tianchi-cleo:8081/WFSamples/ExpenseService就是你Host的地址,我认为,ExpenseHost.exe最终在这个地址端口建立一个服务,这样,ExpenseApplication.exe和ManagerApplication.exe可以同过这个端口进行通讯。因为你在ExpenseApplication.exe.config和ManagerApplication.exe.config可以看到相似的配置片断,(你如果要修改,请一定要改成一致,否则。。。)我们之前一直迷惑怎么进行非本机的Host,现在清楚了,只要改成远程地址就可以了。
运行结果如下:
相关文章推荐
- WWF印象(2):示例ExpenseReporting,试试不是本机Host
- 实现两个不同高度的UILabel的文字底部相对于下划线对齐。不是很简单吗? 是吗?你敢按你常规方法试试让你那火眼金睛的设计、美工去瞧瞧???
- ndy 10终于随着Delphi2005发布了,不过indy套件在我的印象中总是复杂并且BUG不断,说实话,不是看在他一整套组件的面子上,我还是喜欢VCL原生的Socket组件,简洁,清晰。Indy9
- WWF系列之----关于Host与WorkflowInstance之间的通讯
- 闭包解决for循环 的代码示例,解释为什么for循环后,打印的i值不是它自己当时的取值
- WWF初步印象(1),工作流如何工作,如何流。
- java正则表达式获取url的host示例
- 解决用request.getRemoteHost()为什么得到的不是机器名,而是IP地址
- JavaScript 这类弱类型的语言,在判断相等方面很麻烦,明明不是一个东西,却相等了。这里通过示例展示 null、 undefined、 0、 false、 "" 的相等情况。 var arr
- WCF应用:宿主与调用纯代码示例(Host &Client code only sample)
- Ngnix Virtul Host 和 rewrite rule 示例
- 使用命令登录不是默认端口的ftp server(Connection closed by remote host的原因)
- 元素浮动之后文字会环绕而不是重合原因示例解答
- 专有软件不是唯一!试试54款开源服务器软件[转]
- C#报错"线程间操作无效: 从不是创建控件“XXX”的线程访问它"--解决示例
- AES加密解密源码示例,以及解决:aes在tomcat解密中文乱码,在控制台解密中文不是乱码
- 尝鲜delphi开发android/ios_试试示例
- CNI IPAM插件分析 --- 以hostlocal为示例
- 重叙hibernate入门示例-www.hibernate.org.cn中有一例子,但是感觉不是很清楚,主要是给初级兄弟看,见笑!
- Sql Server中改变表中的字段名的语句!(不是教程胜似教程,是示例代码)