Biztalk 2013 .Net4.5框架使用Scripting Functoid调用WCF [英] Biztalk 2013 .Net4.5 framework WCF call using Scripting Functoid

查看:73
本文介绍了Biztalk 2013 .Net4.5框架使用Scripting Functoid调用WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.Net4.5框架WCF调用使用Scripting Functoid

.Net4.5 framework WCF call using Scripting Functoid

嗨:

我在地图测试期间收到以下错误消息VS2012。我们有Biztalk 2013。

I get the following error message during map testing in VS2012. We have Biztalk 2013.

...
调用目标抛出了异常。 ......期间发生错误。请参阅InnerException ...无法在ServiceModel客户端配置部分中找到引用合同"AXQueryServiceReference.IQueryService"的默认端点元素。

我有一个调用WCF的.Net4.5 Framework dll具有以下app.config文件的Web服务。


<? xml
version = " 1.0 "
编码 = " utf-8 "
?>

<?xml version="1.0" encoding="utf-8" ?>


< 配置 >


 < system.serviceModel >


   < 绑定 >


     < netTcpBinding >


       < 绑定
名称 = " QueryServiceEndpoint "
closeTimeout = " 00:01:00 "

        <binding name="QueryServiceEndpoint" closeTimeout="00:01:00"

o

o

o


       < / 绑定 >


     < / netTcpBinding >


   < / 绑定 >


   < 客户端 >


     < 端点
地址 = " net.tcp:// gbtvmdevaxaos03:8201 / DynamicsAx / Services / QueryService "


         
绑定 = " netTcpBinding "
bindingConfiguration = " QueryServiceEndpoint "

          binding="netTcpBinding" bindingConfiguration="QueryServiceEndpoint"


         
合同 = " AXQueryServiceReference.IQueryService "
名称 = " QueryServiceEndpoint " >

          contract="AXQueryServiceReference.IQueryService" name="QueryServiceEndpoint">


       < 身份 >


         < userPrincipalName
= " SRVDAXAOS@a-dec.com "
/>


       < / 身份 >


     < / 端点 >


   < / 客户端 >


 < / system.serviceModel >

< / 配置 >

我正在使用外部程序集测试VS2012中的Biztalk2013 MAP和使用我的.Net 4.5框架dll中的一种方法的外部程序集。我的Biztalk地图项目有类库app.config的副本。 一旦我在VS中测试
地图,我就会收到上述错误。

I am testing Biztalk2013 MAP in VS2012 with Configure Scripting Functoid using external assembly which uses one of the methods in my .Net 4.5 framework dll. My Biztalk map project has duplicate copy of the class library app.config.  As soon as I test the map in VS, I get the above error.

欣赏你的帮助和提示。

谢谢,Toraj

toraj.khavar@gmail.com

toraj.khavar@gmail.com

Toraj toraj.khavari@a-dec.com

Toraj toraj.khavari@a-dec.com

推荐答案

您需要将生成的app.config文件的System.ServiceModel部分复制到正在执行的程序集项目的.config文件中。这是因为WCF不使用类库项目中的app.config文件,而是执行程序集
项目的.config文件将被使用。你还需要检查你的machine.config文件

you will need copy the System.ServiceModel section of the generated app.config file to the executing assembly project’s .config file .This is because the app.config file in the class library project  is not used by the WCF ,instead the executing assembly project’s .config file will be used. and also you need to check your machine.config file

谢谢

Abhishek


这篇关于Biztalk 2013 .Net4.5框架使用Scripting Functoid调用WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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