On Mon, Mar 12, 2018 at 12:05:16PM +0000, Owen Rudge wrote:
On 12/03/2018 10:18, Huw Davies wrote:
Is it possible to query the soap message in some way as it's built up?
Hi Huw,
I expect I could try to submit the patchset in reverse order - i.e., add code to send a (more or less empty) UDP message; then build up the SOAP message progressively (which is what I attempted to do with this series), sending what's generated at each stage. I don't know if that might be more acceptable?
The current unit tests I have for the Publish method look for particular IDs that are sent as part of the message. I may be able to add to these tests to see if it can pick out elements in a partial message, but at the moment it's looking for the completed message, as it's quite possible that the system being unit tested is receiving genuine messages from elsewhere on the network, which would then potentially cause false positives. The end result we want is a complete message, so adding these 'intermediate' tests may not be very practical.
Hi Owen,
I was wondering whether the message could be read using some API, but I expect that's not possible. Failing that, then yes, sending an empty message first and then adding code to progressively fill out the message would be better. If it's possible to easily add tests as you go that would be nice, but having tests at the end of the series should be enough.
Thanks, Huw.