question-mark
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.

How to add namespaces in envelop tag?

See original GitHub issue

How 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:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
freddycodercommented, Jun 4, 2021

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

0reactions
andersjonssoncommented, Dec 19, 2022

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.

Read more comments on GitHub >

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

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found