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?