How to add namespaces in envelop tag?
See original GitHub issueHow is it done by the soap core
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
How i want to do
<env:Envelope env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://www.atg.com/atg.security" xmlns:ns1="http://www.atg.com/webservices" xmlns:ns2="http://www.atg.com/com.seguros.portal.service.token" xmlns:ns3="http://www.atg.com/com.seguros.portal.service">
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
How do I add a second namespace to a SOAP envelope tag?
How do I add a second namespace to a SOAP envelope tag? ... To create this, I have been trying: $xml = new...
Read more >add namespaces to <soap:Header> and <soap:Envelope> tags
Hi, For the extra namespace in soap:Envelope, the property soap.env.ns.map could help, you can search this forum to get how to use soap.env.ns.map....
Read more >Add SOAP envelop with additional namespaces and ...
Hi Experts, I am using a wsdl for a proxy to soap synchronous scenario and I am facing an issue with the message...
Read more >How to Set a Custom Namespace Prefix for the SOAP ...
This article explains how to set a custom namespace prefix for the Envelope, Header and Body elements/tags in the XML response of the...
Read more >Namespaces - SOAP Messaging in JAVA
Namespaces. An XML namespace is a means of qualifying element and attribute names to disambiguate them from other names in the same document....
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 Free
Top 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
You can create a derived message based on CustomMessage, override the OnWriteStartEnvelope method, and implemented it to fit your needs.
Then you’ll need to use the UseSoapEndpoint<T, T_MESSAGE> method to add the middleware.
CustomMessage : https://github.com/DigDes/SoapCore/blob/develop/src/SoapCore/CustomMessage.cs
SoapEnpointExtension : https://github.com/DigDes/SoapCore/blob/develop/src/SoapCore/SoapEndpointExtensions.cs
You can probably do it in the same way as described above. Or you can use a regular asp.net core middleware to customize incoming/outgoing messages.