Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get SOAP envelope XML #23

Open
LuisLeguizamon opened this issue Mar 8, 2022 · 2 comments
Open

get SOAP envelope XML #23

LuisLeguizamon opened this issue Mar 8, 2022 · 2 comments

Comments

@LuisLeguizamon
Copy link

Hi.

How can I catch/get the entire SOAP envelope XML that is sent? Mi goal is to get the entire message that have been sent and save it.

Actually I am saving the XML body (the one that I pass to PostAsync function) but I need the entire message on SOAP.

@pmorelli92
Copy link
Owner

pmorelli92 commented Mar 14, 2022

@LuisLeguizamon
Copy link
Author

Thank you so much for the answer.
I've tried what you suggested and I get the entire SOAP request, but I am not understanding something. Inside the override function "SendAsync" https://github.com/pmorelli92/SoapHttpClient/blob/main/Tests/SoapHttpClient.Tests/TestMessageHandler.cs#L40
How can I return the response or how can I return the base Send Async function? ( base.SendAsync(request, cancellationToken) )
I have searched but the examples that I found used a "DelegatingHandler"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants