1

I have a web service task that saves the XML output to a variable.

The question now is what would the variable type be? Also how can I then transfer the XML variable to the SQL Server database? I can't seem to make the data flow work, XML source to ole db source? 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. it must have its own column like flightdate and flight no

enter image description here

enter image description here

enter image description here

1 Answer 1

1

Change XML Source Data Acces Mode to XML Data From Variable,

Then you can give "User::FlightInfoXML" Variable.

Sign up to request clarification or add additional context in comments.

10 Comments

Then where you exactly struck ?
added new ss, how can i then map the columns of xml? where do i go from here? do I have to create xsd file?
Yes, You have to create XSD. Easily you can generate it,By Clicking on "Generate XSD" Button. Just you have to specify path where you want to keep that XSD File on disk.
tried hitting the generate button it says that variable flightinfoxml does not contain xml
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.