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 的框架,可能是要被淘汰了( ...
随机推荐
- Coco2d-x android win7 Python 游戏开发环境的搭建
1:我用的电脑配置 win7 3 核 内存8G 桌面.一直想学习Coco2d 游戏开发,所以,一个星期后,需要找到,最终建立了一个良好的环境 2:我使用的版本号版本号,至于建筑android开发环境略 ...
- 在SurfaceView中自由书写和擦除
/////////继承SurfaceView 的类 public class PaintView extends SurfaceView implements Runnable,SurfaceHold ...
- JavaScript 实现Map效果
var map = {}; // 类似:Map map = new HashMap(); map[key] = value; // 类似:map.put(key, value); var value ...
- Java设计模式偷跑系列(十八)建模和责任链模式的实现
转载请注明出处:http://blog.csdn.net/lhy_ycu/article/details/40018231 责任链模式(ChainOfResponsibility): 有多个对象,每一 ...
- log4j+logback+slf4j+commons-logging的关系与调试(转)
背景 由于现在开源框架日益丰富,好多开源框架使用的日志组件不尽相同.存在着在一个项目中,不同的版本,不同的框架共存.导致日志输出异常混乱.虽然也不至于对系统造成致命伤害,但是明显可以看出,架构 ...
- XP下类似%windir% %userprofile% 的变量的说明(转)
在一些批处理或者系统技巧操作教程文章中,我们常常会看到一些形如 %windir% 或者 %systemdrive% 的变量.这些变量都代表着什么含义呢?下面小技巧之家为大家整理了在Windows XP ...
- Nyoj 三国志(dijkstra+01背包)
描述 <三国志>是一款很经典的经营策略类游戏.我们的小白同学是这款游戏的忠实玩家.现在他把游戏简化一下,地图上只有他一方势力,现在他只有一个城池,而他周边有一些无人占的空城,但是这些空城中 ...
- 数据结构之Huffman树与最优二叉树
最近在翻炒一些关于树的知识,发现一个比较有意思的二叉树,huffman树,对应到离散数学中的一种名为最优二叉树的路径结构,而Huffman的主要作用,最终可以归结到一种名为huffman编码的编码方式 ...
- auto tool: make -2014-1210-0001
/* *Author : DavidLin *Date : 2014-12-10pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *wo ...
- 开源搜索引擎Iveely 0.8.0
开源搜索引擎Iveely 0.8.0 这是一篇博客,不是,这是一篇开源人的心酸和喜悦,没有人可以理解我们的心情,一路的辛酸一路的艰辛,不过还好,在大家的支持下,总算是终见天日,谢谢那些给予我们无私帮助 ...