简体   繁体   English

使用SSIS从Web服务到SQL Server的XML

[英]XML from webservice to SQL Server using SSIS

I have a web service task that saves the XML output to a variable. 我有一个Web服务任务,将XML输出保存到变量。

The question now is what would the variable type be? 现在的问题是变量类型是什么? Also how can I then transfer the XML variable to the SQL Server database? 另外,如何将XML变量传输到SQL Server数据库? I can't seem to make the data flow work, XML source to ole db source? 我似乎无法使数据流正常工作,XML源改为ole db源? Am I on the right path? 我在正确的道路上吗? thanks 谢谢

        <xs:element name="Table">
        <xs:complexType>
        <xs:sequence>
        <xs:element name="FlightDate" type="xs:dateTime" minOccurs="0"/>
        <xs:element name="FlightNo" type="xs:string" minOccurs="0"/>
        </xs:sequence>
        </xs:complexType>
        </xs:element>

i need to save flight date and flight no to a temporary table in sql. 我需要将航班日期和航班号保存到sql中的临时表中。 it must have its own column like flightdate and flight no 它必须有自己的列,例如flightdate和flight no

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

Change XML Source Data Acces Mode to XML Data From Variable, 将XML源数据访问模式从变量更改为XML数据,

Then you can give "User::FlightInfoXML" Variable. 然后,您可以给“ User :: FlightInfoXML”变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM