如何测试Biztalk应用程序它有Wcf rcv端口和发送端口,因为我的IIS无法正常工作 [英] how to test Biztalk application it has Wcf rcv port and Send port as my IIS is not working

查看:98
本文介绍了如何测试Biztalk应用程序它有Wcf rcv端口和发送端口,因为我的IIS无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何测试Biztalk应用程序它有Wcf rcv端口和发送端口,因为我的IIS无法正常工作无法托管它。因此需要创建文件发送端口,但如何在不改变编排中的代码的情况下对其进行测试。

解决方案

您可以创建一个带有两个操作合同的WCF存根发布()和Subscribe()来测试你的应用程序。您需要做的就是在控制台应用程序中托管此WCF服务存根。 (查看链接 [ ^ ]来图如何)。



存根应该按以下方式工作:

-Publish():这个存根的操作将向BizTalk发布消息通过读取您可以放置​​输入文件的文件位置。

-Subscribe():此Stub的操作将接受/捕获来自BizTalk的消息并将其保存在文件位置。



然后,您可以使用 BizUnit [ ^ ]检查输出文件是否符合您的输出。



注意:将Publish()和Subscript()分别替换为Receive和Send端口上的操作。

how to test Biztalk application it has Wcf rcv port and Send port as my IIS is not working cannot host it. SO need to create file send port but how do I test it without change in code in orchestration.

解决方案

You can create a WCF stub with two Operation Contracts Publish() and Subscribe() to test your application. All you need to do is, host this WCF service stub in Console Application. (Check the link[^] to figure out how).

The stub should work in the following fashion:
-Publish(): This stub's Operation will publish messages to BizTalk by reading a file location where you can place your input files.
-Subscribe(): This Stub's Operation will accept/capture messages from BizTalk and save it on a file location.

You can then use BizUnit[^] to check the output file if it is compliant with your output or not.

Note: Replace Publish() and Subscript() with the operations on Receive and Send ports respectively.


这篇关于如何测试Biztalk应用程序它有Wcf rcv端口和发送端口,因为我的IIS无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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