Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Programmatic control of XML Namespace in SOAP response

See original GitHub issue

Currently, 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 = "";
[ServiceContract(Namespace = ServiceNamespace.Value)]
public interface ISoapService
  [OperationContract(Action = ServiceNamespace.Value + nameof(SoapMethod), ReplyAction = "*")]
  [XmlSerializerFormat(SupportFaults = true)]
  SoapMethodResponse SoapMethod(SoapMethodRequest request);

  . . . 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

IvanFarkascommented, Jan 22, 2020

I wish I could. Can’t read the stream.


github-actions[bot]commented, Aug 27, 2021

This issue was closed because it has been inactive for 14 days since being marked as stale.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found