SSIS Package to Call Web Service
原文 SSIS Package to Call Web Service
SSIS Package to Call Web Service.
You can Call WebService from SSIS package and transfers your data.
First of all you have to create web service with function as you needed to call.
Step1 : Go To Microsoft Visual Studio –> New –> WebSite –> ASP.Net WebService and provide you web service name.

Step2 : Paste below code to your Service1.asmx.vb file.
I have created new function “MyHelloWorld” with parameter name in which i am passing a string to write in a destination file.
1 |
Imports System.Web.Services |
2 |
Imports System.Web.Services.Protocols |
3 |
Imports System.ComponentModel |
4 |
5 |
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. |
6 |
' <System.Web.Script.Services.ScriptService()> _ |
7 |
<System.Web.Services.WebService(Namespace:="<a href="http://tempuri.org/">http://tempuri.org/</a>")> _ |
8 |
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ |
9 |
<ToolboxItem(False)> _ |
10 |
Public Class Service1 |
11 |
Inherits System.Web.Services.WebService |
12 |
<WebMethod()> _ |
13 |
Public Function MyHelloWorld(ByVal name) As String |
14 |
Dim FILE_NAME As String = "E:\WebServiceTextFromService.txt" |
15 |
Dim objWriter As New System.IO.StreamWriter(FILE_NAME, True) |
16 |
17 |
objWriter.Write(name) |
18 |
objWriter.Close() |
19 |
Return "Process Completed." |
20 |
End Function |
21 |
22 |
End Class |
Step3 : Now Create New SSIS Package with your desired name.
Drag Weservice Task to Control Flow.
Create one variable “Result” with datatype string and value “I am writting this content to file by web service task”.

Step4 : Create one http connection manager. i am using 61508 port number for my local web service so my Server URL :http://localhost:61508.
This port number is assigned by default, you can change port number from web service property.

Step5 : Create one file connection to write output result to local path.

Step6 : Right click on Web Service Task –> Edit.
On General Tab Select HTTP Connection Manger which you have created on Step4.
Select your WSDL file path to WSDLFile field.

Step7 : Select Input path of Web Service Task Editor.
Select your service name in Service and Method “MyHelloWorld” which you have created on Step2.
After selecting Method, Parameter field enables automatically.
Click on Variable checkbox and select User::Result in value .

Step8 : Select OutPut tab on left pane on Web Service Task Editor.
Select Flat File Connection “WebServiceText.txt” in File Field.

Step9 : After completing this build and run the project and you will get file will be created on “D:\WebServiceText.txt”
with the content “I am writting this content to file by web service task”.
Regards,
Nirav Gajjar
SSIS Package to Call Web Service的更多相关文章
- No qualifying bean of type [com.shyy.web.service.TreeMapper] found for dependency
异常信息: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.sp ...
- How to Configure an SSIS Package to Access a Web Service using WCF
This information is from:http://blogs.msdn.com/b/dbrowne/archive/2010/07/08/how-to-configure-an-ssis ...
- 微软BI 之SSIS 系列 - 在 SSIS 中使用 Web Service 以及 XML 解析
开篇介绍 Web Service 的用途非常广几乎无处不在,像各大门户网站上的天气预报使用到的第三方 Web Service API,像手机客户端和服务器端的交互等都可以通过事先设计好的 Web Se ...
- Web Service随笔
什么是Web Service? WebService是一个SOA(面向服务的编程)的架构,它是不依赖于语言,不依赖于平台,可以实现不同的语言间的相互调用,通过Internet进行基于Http协议的网络 ...
- 应用Apache Axis进行Web Service开发
转自(http://tscjsj.blog.51cto.com/412451/84813) 一.概述 SOAP原意为Simple Object Access Protocol(简单对象访问协议),是一 ...
- 使用axis开发web service服务端
一.axis环境搭建 1.安装环境 JDK.Tomcat或Resin.eclipse等. 2.到 http://www.apache.org/dyn/closer.cgi/ws/axis/1_4下载A ...
- Spring 4 集成Apache CXF开发JAX-RS Web Service
什么是JAX-RS 在JSR-311规范中定义,即Java API for RESTful Web Services,一套Java API,用于开发 RESTful风格的Webservice. 工程概 ...
- Eclipse利用Axis2插件构建Web Service并测试
在学习Web Service的时候,从网上找到前辈的博客http://www.cnblogs.com/hexinlin/p/3358558.html,并依此文的方法按部就班:编写欲发布的java类He ...
- MyEclipse JAX-WS Web Service
在Myeclipse8.5下开发Web service程序,目前系统支持的开发框架有3个,JAX-WS,REST(JAX-RS),XFire.其中系统建议不要使用XFire 的框架,可能是要被淘汰了( ...
随机推荐
- DP Leetcode - Maximum Product Subarray
近期一直忙着写paper,非常久没做题,一下子把题目搞复杂了..思路理清楚了非常easy,每次仅仅需更新2个值:当前子序列最大乘积和当前子序列的最小乘积.最大乘积被更新有三种可能:当前A[i]> ...
- [6] 算法路 - 双向冒泡排序的Shaker
Shaker序列 –算法 1. 气泡排序的双向进行,先让气泡排序由左向右进行.再来让气泡排序由右往左进行,如此完毕一次排序的动作 2. 使用left与right两个旗标来记录左右两端已排序的元素位置. ...
- 【iOS发展-28】制造业UITabBarController标记控制器、定制UITabBarItem文字图像6途径和More评论
一个.一个简单的制作过程(实际工程中不建议这样的方式,不要只展示所用原理的理解) 在AppDelegate.m在: - (BOOL)application:(UIApplication *)appli ...
- Android 源码编译
Google官方资料参考 http://source.android.com/source/building-running.html 1. 环境设置, 下载好源码后,进入源码目录,即之前执行 rep ...
- 它可以作为一个代理server或者转发java类
在项目中使用,这简化和通用汽车.突出的基本思路,细节可以基于此类改变. 基于java容器和servlet. package com.xxx.first; import java.io.Buffered ...
- Python challenge 3 - urllib & re
第三个主题地址:http://www.pythonchallenge.com/pc/def/ocr.html Hint1:recognize the characters. maybe they ar ...
- Swift得知——使用和分类功能(四)
Swift得知--使用和分类功能(四) 总结Swift该功能使用的总可分为七类 1 ---- 没有返回值,没有參数的函数 2 ---- 有參数和返回值的函数 3 ---- 使用元祖来返回多个值 4 - ...
- 百度地图API详解之事件机制,function“闭包”解决for循环和监听器冲突的问题:
原文:百度地图API详解之事件机制,function"闭包"解决for循环和监听器冲突的问题: 百度地图API详解之事件机制 2011年07月26日 星期二 下午 04:06 和D ...
- ASP.NET MVC 文件上传和路径处理
ASP.NET MVC 文件上传和路径处理总结 目录 文件的上传和路径处理必须解决下面列出的实际问题: 1.重复文件处理 2.单独文件上传 3.编辑器中文件上传 4.处理文章中的图片路径 5.处理上传 ...
- 【百度地图API】如何制作可拖拽的沿道路测距
原文:[百度地图API]如何制作可拖拽的沿道路测距 摘要: 地图测距,大家都会,不就map.getDistance麼.可是,这只能测任意两点的直线距离,用途不够实际啊.比如,我想测试北京天安门到北京后 ...