Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to POST the XML string to URL ...

How to POST the XML string to URL ...

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharpcomxml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nileshbahirshet
    wrote on last edited by
    #1

    I want to write code in VB.NET in which,I want to send XML data to following link. Here is link : http://someWebService.abcCompany.com/smspost.asp ex. I want to send following XML data(not file) to above URL. <xml version="1.0"?> <packet> <Number>9856554877</Number> </Packet> What is syntaxt to send any data to any URL in VB.NET ? What are commands used in VB.NET to send any info to URL ? Which Library or refrences I have to use ?

    R 1 Reply Last reply
    0
    • N nileshbahirshet

      I want to write code in VB.NET in which,I want to send XML data to following link. Here is link : http://someWebService.abcCompany.com/smspost.asp ex. I want to send following XML data(not file) to above URL. <xml version="1.0"?> <packet> <Number>9856554877</Number> </Packet> What is syntaxt to send any data to any URL in VB.NET ? What are commands used in VB.NET to send any info to URL ? Which Library or refrences I have to use ?

      R Offline
      R Offline
      Rob Philpott
      wrote on last edited by
      #2

      More of a C# man myself, but the classes you'll be interested in are HttpWebRequest and HttpWebResponse. Create the former, set its verb to POST, and write your xml to the stream. I think its in the System.Net assembly.

      Regards, Rob Philpott.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups