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 的框架,可能是要被淘汰了( ...
随机推荐
- SVD奇异值分解的几何物理意义资料汇总
学习SVD奇异值分解的网上资料汇总: 1. 关于svd的一篇概念文,这篇文章也是后续几篇文章的鼻祖~ http://www.ams.org/samplings/feature-column/fcarc ...
- paip.将数据导入到在英语语音数据库mysql道路解决空原则问题
paip.将数据导入到在英语语音数据库mysql道路解决空原则问题 #---原因:mysql 导入工具bug #---解决:不要使用双引号括注音. 笔者 老哇爪 Attilax 艾龙. EMAIL: ...
- java nio的一个严重BUG(转)
这个BUG会在linux上导致cpu 100%,使得nio server/client不可用,具体的详情可以看这里http://bugs.sun.com/bugdatabase/view_bug.do ...
- 我也来谈javascript高级编程之:javascript函数编译过程
前言 题目有点大,其实也就是手痒...跟大家来扯一下javascript编译过程. 那么到底什么是“编译”呢 这个...本人文笔太差,我还是直接举例子吧. 相信玩过js童鞋应该都看过下面这样一个面试题 ...
- iOS ... NS_REQUIRES_NIL_TERMINATION
看到官方的一个样例不错,这里留记. #import <Cocoa/Cocoa.h> @interface NSMutableArray (variadicMethodExample) - ...
- 高速建成Android开发环境ADT-Bundle和Hello World
----下载JDK(Java Dev Kit) 官方下载:http://www.oracle.com/technetwork/java/javase/downloads/index.html 兴许步骤 ...
- 2机器学习实践笔记(k-最近邻)
1:算法是简单的叙述说明 由于训练数据样本和标签,为测试数据的示例,从最近的距离k训练样本,此k练样本中所属类别最多的类即为该測试样本的预測标签. 简称kNN.通常k是不大于20的整数,这里的距离通常 ...
- Linux GPIO 注册和应用
Linux GPIO 注册和应用 Linux Kernel, GPIO, ARM 于Linux kernel代码.经常使用 GPIO 作为一个特殊的信号,如芯片片选信号. GPIO 功能应用,我们经常 ...
- Nyoj 虚拟的城市之旅(bfs)
描述 展馆是未来城市的缩影,个人体验和互动是不变的主题.在A国展馆通过多维模式和高科技手段,引领参观者在展示空间踏上一段虚拟的城市之旅. 梦幻国有N个城市和M条道路,每条道路连接某两个城市.任意两 ...
- java json字符串转List、Map等对象
List<Map<String, Object>> map = g.fromJson(jsonStr, new TypeToken<List<Map<Stri ...