Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

XML Source giving blues while fetching data

$
0
0

Hi All,

I have a webservice from which i need to populate my database tables.

As of now i have used a webservice task to fetch data from web service in an XMl file.

But this XML has Multiple Namespaces which is not supported by SSIS (Supports only single namespace).

So to overcome this issue i used XML task with opeartion type as "XSLT" And used following code in XSLT file:

<?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="1.0"         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">   <xsl:output method="xml" indent="no" />   <xsl:template match="/|comment()|processing-instruction()">     <xsl:copy>       <xsl:apply-templates />     </xsl:copy>   </xsl:template>   <xsl:template match="*">     <xsl:element name="{local-name()}">       <xsl:apply-templates select="@*|node()" />     </xsl:element>   </xsl:template>   <xsl:template match="@*">     <xsl:attribute name="{local-name()}">       <xsl:value-of select="." />     </xsl:attribute>   </xsl:template> </xsl:stylesheet>

 

Using this i am able to generate a new XML file with Single NameSpace.

Now i have used XML SOurce which is using this new XML file and also generated XSD file.

But now the problem is that i am getting a long list in OUTPUT NAME(all the coulmn names individually and some other names like counter, sequence etc.) field when i click on Columns TAB of XML Source.

Please let me know how can i combine all these columns to populate a single table and where i am wrong.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>