-
Notifications
You must be signed in to change notification settings - Fork 378
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
XmlNode/XmlElement as an Input Parameter #955
Conversation
Following the issue details from DigDes#908, implemented an XmlDocument parse of the input parameter.
New Test Cases to check for XmlElement return type in both integration testing and as an XML SOAP message. Also, added an XmlElement input parameter to allow the code to accept a free-form Xml Document/Element
"; | ||
using (var host = CreateTestHost()) | ||
using (var client = host.CreateClient()) | ||
using (var content = new StringContent(body, Encoding.UTF8, "text/xml")) |
Check warning
Code scanning / CodeQL
Information exposure through transmitted data Medium
sensitive information
The test was failing due to Windows vs Linux New Line sequence. Updated the sequence
Apologies for the failing test case - it was a matter of Windows vs Linux in running the test when replacing new line characters. Updated to use Environment.NewLine instead. |
Looks good. Is there anything else you would like to add before merging? I think it's acceptable if it doesn't work with an XmlNode return type, since it's not a regression. |
At the moment, I’m ok. I was able to successfully test in my own development project with the changes so that worked better. Thank you for the descriptions you added in the issue to help us.
Raymond Mimick
From: Anders Mörner ***@***.***>
Sent: Wednesday, August 16, 2023 3:39 AM
To: DigDes/SoapCore ***@***.***>
Cc: Raymond Mimick ***@***.***>; Author ***@***.***>
Subject: Re: [DigDes/SoapCore] XmlNode/XmlElement as an Input Parameter (PR #955)
Looks good. Is there anything else you would like to add before merging? I think it's acceptable if it doesn't work with an XmlNode return type, since it's not a regression.
—
Reply to this email directly, view it on GitHub <#955 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA4ONTYEP64VOTQKIUGU5CTXVSBIXANCNFSM6AAAAAA3EXSJZ4> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AA4ONTZQ3AF24DPFVC5LC3LXVSBIXA5CNFSM6AAAAAA3EXSJZ6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTEEXDEI.gif> Message ID: ***@***.*** ***@***.***> >
|
Thank you for your contribution |
I have recently experienced the Null value described in the issue #908 and decided to see if I could follow the suggested changes. In this pull request, I have added the suggested fix from @andersjonsson and then I also added a few Unit Tests for it.
In the integration tests, we have an XmlElement return type only and then a second test with both an XmlElement input and an XmlElement return time.
I have also added a new folder called XmlNodeInputOutputTests for the purpose of testing the XmlElement functions as a SOAP function vs a ChannelFactory object. I found the code is not quite happy with an XmlNode return type (the Test Server returns a message stating that it didn't get enough to consider a valid response).
Thank you,
Raymond Mimick