从SSIS包调用Web服务 [英] Calling web services from SSIS package

查看:87
本文介绍了从SSIS包调用Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有SSIS包,它从SQL服务器表中选择某些记录,然后调用Web服务(Web服务被包装到DLL中),从所选记录发送参数,并用Web服务从SAP带来的数据填充另一个表。调用Web服务的方法驻留在循环内。我注意到只有100条记录可以被处理,之后与SAP的连接被销毁,我必须重新启动应用程序池才能再次启用Web服务。相同的Web服务从SQL Server提供数据。此连接仍然正常。
有没有人知道为什么Web服务损坏或SAP连接被破坏的原因?

如下所示:


rd = GetDataReaderStoredProc(



" spTest"
如果 rd 没什么 然后
rd.Read()
....
< span style ="font-size:x-small"> dsCompany = oSAP.getSAP_FinancialCompany_Data(rd( " Order_Num" )。ToString)'调用Web服务 ....
dsCompany = 无任何 结束 < span style ="font-size:x-small; color:#0000ff"> rd.Close()
rd =
没有结束如果

解决方案

您使用的是ASMX Web服务还是WCF?
什么是SAP?是SAP连接被销毁时是否会抛出任何类型的异常?

如果您没有启用跟踪功能,您可能希望这样做,以便您可以更好地了解您的服务发生了什么。

谢谢,
Erica

I have SSIS package which selects certain records from SQL server table, then calls Web service (web service is wrapped into DLL), sends parameters from selected records and populates another table with the data brought from SAP by Web service. Call to the web service's method resides inside the loop. I noticed only 100 records can be processed, after that connection to SAP is being destroyed and i have to re-start application pool in order to enable web service again. The same web service brings data from SQL server. this connection remains ok.
Does anyone know why web services corrupt or why SAP connection is destroyed?

Something like:

rd = GetDataReaderStoredProc(

"spTest")
If Not rd Is Nothing Then
   While rd.Read()
       ....
       
dsCompany = oSAP.getSAP_FinancialCompany_Data(rd("Order_Num").ToString)   'calling web service
       ....
       dsCompany = Nothing
   End While
   rd.Close()
   rd =
Nothing
End If

解决方案

Are you using ASMX web services or WCF?
What is SAP?
Is there any type of exception being thrown when the SAP connection is destroyed?

If you do not have tracing enabled you may want to do so, so that you can better see what is going on with your service.

Thanks,
Erica


这篇关于从SSIS包调用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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