Click here to Skip to main content
Rate this: bad
good
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 1:15am

1 solution

Rate this: bad
good
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!
  Permalink  
Comments
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 OriginalGriff 370
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 235
3 Afzaal Ahmad Zeeshan 209
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 20 Aug 2011
Copyright © CodeProject, 1999-2014
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