首页 \ 问答 \ 使用SSIS消费肥皂网服务(Consume a soap web service with SSIS)

使用SSIS消费肥皂网服务(Consume a soap web service with SSIS)

任何人都可以告诉我使用SSIS的最简单的方法是使用SSIS,WSDL中有复杂类型会导致错误,因此您无法使用SSIS Web服务任务? 我之前想出了一种使用SSIS脚本任务的方法,该任务生成了一个cURL命令,直到现在它仍然运行良好。 出于某种原因,我无法让cURL使用我必须使用的新服务。 我需要做的就是使用服务的wsdl中描述的方法提交soap请求,并将soap响应作为XML文件下载到我的本地服务器。 我想有一百万种方法可以回答这个问题,但希望有人可以建议在SSIS中执行肥皂请求的最简单方法。


Can anyone tell me what the easiest way of consuming a web service would be using SSIS, where there are complex types in the WSDL that cause errors so you can't use the SSIS web service task? I previously came up with a way to do it using an SSIS script task, which generated a cURL command and that's worked very well until now. For some reason, I can't get cURL to work with a new service that I have to consume. All I need to do is submit a soap request using a method described in the service's wsdl, and download the soap response as an XML file to my local server. I guess there would be a million ways of answering this question, but hopefully someone can suggest what might be the easiest way to do the soap requests within SSIS.


原文:https://stackoverflow.com/questions/15866773
更新时间:2022-07-01 19:07

最满意答案

您可以使用正则表达式来存档所需的结果。 最初的想法是用相应的正则表达式替换链接中的每个通配符。 然后我们可以使用正则表达式来比较两个字符串。
例:

(1) Url: /en/virtual-conference-room/1  
(2) Link: /en/virtual-conference-room/[:num]  
(3) Regex: /en/virtual-conference-room/(\d+)  

如果正则表达式(3)与Url(1)匹配,那么我们可以获得相应的链接并用匹配的值替换通配符。

我在这里创建了您的代码更新,请检查。


You could use regular expression to archive result that you want. The original idea is replacing each wildcard in the link with its corresponding regular expression. Then we could use regular expression to compare between two strings.
Example:

(1) Url: /en/virtual-conference-room/1  
(2) Link: /en/virtual-conference-room/[:num]  
(3) Regex: /en/virtual-conference-room/(\d+)  

If regular expression (3) is matched with Url (1), then we could get corresponding link and replace wildcards with matched values.

I've created an update of your code here, please check.

相关问答

更多
  • 如果要检查数据框中的元素,则不应使用只查看当前工作空间中对象名称的ls() (或者如果在当前环境中使用该函数)。 这些对象中的Rownames或元素对ls()是不可见的(除非你为ls(.) call添加一个环境参数)。 尝试使用grep() ,它是用于字符向量模式匹配的主要功能: result <- a[ grep("blue", a$x) , ] # Note need to use `a$` to get at the `x` 如果你想使用子集,那么考虑紧密相关的函数grepl() ,它返回一个逻辑 ...
  • :) 首先我注意到代码&&(format.length()!= 0 && data.length()!= 0)不在您提供的页面的原始代码上,并且导致与您的算法冲突,因此我删除它并且它看起来像这样: static boolean matches(String format, String data) { if (format.length() == 0 && data.length() == 0) { return true; } if (format.charAt( ...
  • 您可以使用正则表达式来存档所需的结果。 最初的想法是用相应的正则表达式替换链接中的每个通配符。 然后我们可以使用正则表达式来比较两个字符串。 例: (1) Url: /en/virtual-conference-room/1 (2) Link: /en/virtual-conference-room/[:num] (3) Regex: /en/virtual-conference-room/(\d+) 如果正则表达式(3)与Url(1)匹配,那么我们可以获得相应的链接并用匹配的值替换通配符。 ...
  • 看起来你基本上实现了正则表达式的一个子集。 幸运的是,Python有一个内置的库! 如果你不熟悉正则表达式(或者正如他们的朋友称之为正则表达式)的工作方式,我强烈建议你仔细阅读它们的文档 。 无论如何,我认为函数re.search就是你正在寻找的东西。 它将第一个参数作为匹配模式,并将第二个参数作为匹配的字符串。如果模式匹配,则search返回一个SRE_Match对象,该对象方便地具有#start()方法返回匹配开始的索引。 要使用示例中的数据: import re start_index = re. ...
  • 尝试将这些模式与xhtml:link alternate一起使用 http://www.example.com/mypage.html
    为了在这个网站上有一个完整的问答库,我发布了我想出的内容,尽管这是一个令人不满意的解决方案。 我的解决方法是(在撰写本文时)两个评论留给问题的组合。 话虽这么说,我没有指定一个“通配符”字符。 我为空的字符串发布了我没有的数据,当然,在响应中收到了更广泛的数据集。 例如,我的JSON看起来像这样: { "w":"val1", "x":"", "y":"val3", "z":{ "zz":{ "za":"", "z ...
  • 我会考虑使用QRegExp setPatternSyntax(QRegExp::Wildcard)使用QRegExp 。 http://doc.qt.io/qt-5/qregexp.html#PatternSyntax-enum QRegExp::Wildcard 1这提供了一种简单的模式匹配语法,类似于shell(命令解释器)用于“文件通配”的语法。 请参阅通配符匹配。 http://doc.qt.io/qt-5/qregexp.html#wildcard-matching c除了下面提到的那些,任何角色 ...
  • 我写了一个自定义的grunt任务,完成了这个伎俩。 只有这样,我每次添加新链接时都必须重新运行任务。 但这对我有用! 感谢您的评论! I wrote a custom grunt task that did the trick. Only that, I had to rerun the task everytime I added new links. But still this works for me! Thanks for the comments!
  • 放1 *然后saveService.saveImportPackage(_作为UploadedPackage,_作为PackageImportResponse.Builder)这似乎适用于类似的情况。 不完全清楚为什么 then: "the value of the 'dest' parameter is passed on to saveservice" 1 * saveService.saveImportPackage(_ as UploadedPackage, _ as PackageImport ...
  • XPath 1: tr[@id='someid']/td/ol/li[1]/a | tr[@id='someid']/td/ol/li[1]/span/strong/a XPath 2: tr[@id='someid']/td/ol/li[1]/(a | span/strong/a) XPath 1: tr[@id='someid']/td/ol/li[1]/a | tr[@id='someid']/td/ol/li[1]/span/strong/a XPath 2: tr[@id='someid'] ...

相关文章

更多

最新问答

更多
  • python的访问器方法有哪些
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。
  • 响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
  • 在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
  • NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
  • 元素上的盒子阴影行为(box-shadow behaviour on elements)
  • Laravel检查是否存在记录(Laravel Checking If a Record Exists)
  • 设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
  • 想学Linux 运维 深圳有哪个培训机构好一点
  • 为什么有时不需要在lambda中捕获一个常量变量?(Why is a const variable sometimes not required to be captured in a lambda?)
  • 在Framework 3.5中使用服务器标签<%=%>设置Visible属性(Set Visible property with server tag <%= %> in Framework 3.5)
  • AdoNetAppender中的log4net连接类型无效(log4net connection type invalid in AdoNetAppender)
  • 错误:发送后无法设置标题。(Error: Can't set headers after they are sent. authentication system)
  • 等待EC2实例重启(Wait for an EC2 instance to reboot)
  • 如何在红宝石中使用正则表达式?(How to do this in regex in ruby?)
  • 使用鼠标在OpenGL GLUT中绘制多边形(Draw a polygon in OpenGL GLUT with mouse)
  • 江民杀毒软件的KSysnon.sys模块是什么东西?
  • 处理器在传递到add_xpath()或add_value()时调用了什么顺序?(What order are processors called when passed into add_xpath() or add_value()?)
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • SQL查询,其中字段不包含$ x(SQL Query Where Field DOES NOT Contain $x)
  • PerSession与PerCall(PerSession vs. PerCall)
  • C#:有两个构造函数的对象:如何限制哪些属性设置在一起?(C#: Object having two constructors: how to limit which properties are set together?)
  • 平衡一个精灵(Balancing a sprite)
  • n2cms Asp.net在“文件”菜单上给出错误(文件管理器)(n2cms Asp.net give error on Files menu (File Manager))
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的