How to post xml string to url in storedproc?

  • Hi,

    I want to post a XML string to an url

    ex : http://mytestsite.com/adiunit/samp.aspx?xml=nxml

    where nxml is an xml string

    so when user hits the url he can view the xml content on the browser.

    How can I do this using storedproc.?

    Thanks in advance.

  • SQL server is probably not the target platform you want to use for this; is this supposed to send / retrieve information from the web service and return it to a user, or just blindly send to your web service?

    anyway, to do it via SQL server,you will have to create and use a CLR(Common Language Runtime) procedure which is specifically designed to call your web service with the appropriate parameters, and consume any answers back.

    there's lots of examples out there, does this help?

    https://www.google.com/search?q=SQL+CLR+to+call+a+web+service&oq=SQL+CLR+to+call+a+web+service

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply