Search code examples
c#wcfsoap1.2

Change prefix namespace WCF envelope request


I have a question, I was wondering if is there an anyway to change the namespace prefix for the WCF Soap 1.2 request in c#?

I have tried to apply MessageFormatter, but this is just applied in the response structure, and I am looking for an option in the request.

Thank you.


Solution

  • MessageFormatter can be done on Server side also.And you can change this with MessageEncoder but it would cause many problems.

    The link below tells you how to do this on server side using a MessageFormatter and also the downside of a MessageEncoder: https://www.vanacosmin.ro/Articles/Read/WCFEnvelopeNamespacePrefix

    Thanks.