Programmatic control of XML Namespace in SOAP response
See original GitHub issueCurrently, I am using the following to set it statically, see below. Based on conditions I’d like to set the namespace in the SOAP method call. How do I have programmatic control of XML Namespace in SOAP response, please?
public static class ServiceNamespace
{
public const string Empty = "";
public const string Value = "http://schemas.company.com/api/v1.0/";
}
[ServiceContract(Namespace = ServiceNamespace.Value)]
public interface ISoapService
{
[OperationContract(Action = ServiceNamespace.Value + nameof(SoapMethod), ReplyAction = "*")]
[XmlSerializerFormat(SupportFaults = true)]
[FaultContract(typeof(Status))]
SoapMethodResponse SoapMethod(SoapMethodRequest request);
. . .
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
How do I generate a SOAP-compatible XML response with ...
I like to use xml linq. For complicated headers a namespaces I just parse a string to get desired results. See code below...
Read more >The namespace in the SOAP Request and SOAP Response ...
The namespace in the SOAP Request is a combination of the namespace and the name of the AppObject which are entered in the...
Read more >SOAP Namespaces | Using SOAP with J2EE
XML namespaces play an important role in SOAP messages. A SOAP message may include several different XML elements in the Header and Body ......
Read more >C# parse soap response for elements and attribute values
Hello, I have a SOAP C#Desktop application. This can return an error. Is there a way to simply parse this return string? If...
Read more >Simple Object Access Protocol (SOAP) 1.1
XML namespaces are used to disambiguate SOAP identifiers from application specific identifiers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wish I could. Can’t read the stream.
This issue was closed because it has been inactive for 14 days since being marked as stale.