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
  1. Home
  2. General Programming
  3. C#
  4. Adding custom HTTP header to every webservice calls

Adding custom HTTP header to every webservice calls

Scheduled Pinned Locked Moved C#
wcfxmlhelpsysadminagentic-ai
3 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.
  • K Offline
    K Offline
    King Julien
    wrote on last edited by
    #1

    Hi all, Recently i got stuck up with a problem. Am developing a small console application which uses the web services offered by another server! Now i want to add a custom http header( not SOAP header) to each and every web service call made from the client! it may look like POST / HTTP/1.1.. User-Agent: Mozilla/4.0 (compatib le; MSIEMS Web Services Client Protocol 2.0.50727.3082)Content-Type: tex t/xml; charset=u tf-8 SOAPAction : "" Authorization: Basic UjhDT Ek6 MY header Host: 192.1 68.70.99:1984 Content-Length: 453 now how do i add, custom http headers to every calls.....

    Have a Happy Coding.....

    M 1 Reply Last reply
    0
    • K King Julien

      Hi all, Recently i got stuck up with a problem. Am developing a small console application which uses the web services offered by another server! Now i want to add a custom http header( not SOAP header) to each and every web service call made from the client! it may look like POST / HTTP/1.1.. User-Agent: Mozilla/4.0 (compatib le; MSIEMS Web Services Client Protocol 2.0.50727.3082)Content-Type: tex t/xml; charset=u tf-8 SOAPAction : "" Authorization: Basic UjhDT Ek6 MY header Host: 192.1 68.70.99:1984 Content-Length: 453 now how do i add, custom http headers to every calls.....

      Have a Happy Coding.....

      M Offline
      M Offline
      MumbleB
      wrote on last edited by
      #2

      Have a look at this[^] maybe it will help?

      Excellence is doing ordinary things extraordinarily well.

      K 1 Reply Last reply
      0
      • M MumbleB

        Have a look at this[^] maybe it will help?

        Excellence is doing ordinary things extraordinarily well.

        K Offline
        K Offline
        King Julien
        wrote on last edited by
        #3

        Hi Kwagga.... Thanks for your reply!! Its an article on creating SOAP headers for WSE3.0, whereas i need HTTP header for general web service call. Thank you again for your kind reply....

        Have a Happy Coding.....

        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