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. SOAP Messages - Intercepting and redirecting the HTTP call to a remoting server

SOAP Messages - Intercepting and redirecting the HTTP call to a remoting server

Scheduled Pinned Locked Moved C#
wcfquestioncsharpsysadminhardware
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.
  • M Offline
    M Offline
    MrEyes
    wrote on last edited by
    #1

    Hello all, As most of you will already know, when one imports a WSDL into a project the resulting web reference allows the developer to call the WSDL methods, for example:

    int resultCode = DoSomething(valueA, valueB, ref valueC, out valueD);

    However, this import wraps the entire message creation / send / result parsing into code that is embedded with .NET libraries. I need to "intercept" the raw outgoing SOAP message and send it somewhere else via remoting. The server at the end of the remoting call will then perform the HTTP send and synchronously return the raw SOAP response. I then need to parse the SOAP response so that it can be parsed into the return/ref/out objects the method (as above) returns. Does anybody know of a way to do this? My original stab was to create a code generator app (as an alternative to adding a web reference) that would read the WSDL and generate a callable stub. However I am having trouble generating the SOAP messages and parsing the incoming sync response. So another question would be: Does anybody know of a way to create/deconstruct SOAP messages?

    U 1 Reply Last reply
    0
    • M MrEyes

      Hello all, As most of you will already know, when one imports a WSDL into a project the resulting web reference allows the developer to call the WSDL methods, for example:

      int resultCode = DoSomething(valueA, valueB, ref valueC, out valueD);

      However, this import wraps the entire message creation / send / result parsing into code that is embedded with .NET libraries. I need to "intercept" the raw outgoing SOAP message and send it somewhere else via remoting. The server at the end of the remoting call will then perform the HTTP send and synchronously return the raw SOAP response. I then need to parse the SOAP response so that it can be parsed into the return/ref/out objects the method (as above) returns. Does anybody know of a way to do this? My original stab was to create a code generator app (as an alternative to adding a web reference) that would read the WSDL and generate a callable stub. However I am having trouble generating the SOAP messages and parsing the incoming sync response. So another question would be: Does anybody know of a way to create/deconstruct SOAP messages?

      U Offline
      U Offline
      User 4405320
      wrote on last edited by
      #2

      I have a pretty strong feeling that you may need to implement SOAP extensions. Using SOAP extensions you can intercept the outgoing / incoming SOAP messages at different stages in the processing pipeline in order to perform additional functionality with them. Information can be found here: http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension.aspx\[^\]

      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