Click here to Skip to main content
11,716,083 members (87,896 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: SQL SOAP
Can anyone help? I have a requirement to export some data from SQL server 2008 into XML format, then automatically save the results from my SQL query into as a .XML file, then convert this file using XSLT and lastly I need to post the converted file to a web service.

I have managed to retrieve the data into XML, save the results as a .XML file

I cannot figure out how to automatically send the data to a web service. I would love some code which states: If file exists then post.

I know the URL to send the .xml to and my file is in the correct format.

I imagine I would need to use some form of VB code, but I am a complete novice with VB. I have access to Visual Studio, but no real idea how to use it or how to deploy a project. If any one could offer up a solution I would be extremely grateful.
Posted 20-Aug-11 0:15am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

When you are in doubt, remember that Google can definitely help you get started.
See these links:
XML Support in Microsoft SQL Server 2005[^]
Google search - sql to xml[^]
Google search - how to send data to a web service[^]

And yes, you can write code in any language to use a web service. It is language independent. Your data just needs to be serialised and follow the web service standards and formats.

Hope this gives you a start!
walterhevedeich at 20-Aug-11 7:27am
Well said.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 599
1 Richard MacCutchan 280
2 Maciej Los 275
3 OriginalGriff 160
4 F-ES Sitecore 145
0 Sergey Alexandrovich Kryukov 1,003
1 Richard MacCutchan 430
2 CHill60 415
3 Maciej Los 399
4 OriginalGriff 385

Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 20 Aug 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100