Return XML when consuming a secure web service

I am currently trying to consume a generated report as a webservice to integrate some data into our system. Because the service itself is generated, the response can change frequently as things are added to it. While the endpoint and response may change, the request body will always be the same (taken from soapui):

<soapenv:Envelope xmlns:soapenv="">

I'm trying to figure out a way to make the above request for any endpoint (different reports) and allow for changes in the response. Ideally, I want to just return the raw XML of the response as I can allow for change easier with how I handle the XML if I'm not being tied to a data contract.

It is also worth noting that the service uses WS-Security and a Username/Password is passed as part of the request.

I've used WCF and the files generated from svcutil work great when I don't expect the service to change frequently. However because these webservices are generated change is expected, and if I can get away from it, I don't want to be at the mercy of re-generating a new file with svcutil whenever things change, or have to generate a file (and maintain) for all the different generated webservices.

At the end of the day the question is: How do I consume a webservice and return the raw XML while still being able to apply WS-Security to the request?


I kept searching around and found this answer:

.NET client authentication and SOAP credential headers for a CXF web service

This allowed me to do what I was after.

Need Your Help

Reload nested data in D3.js

d3.js bar-chart animated

I do not manage to update a bar-chart with nested data in D3.js with new data.

Print labels via a redirected printer

winapi printing windows-server-2008-r2 rdp thermal-printer

My task is to print labels via a thermal printer. To this purpose a string of tspl(programming language that the printer understands) commands is generated and sent to the printer. The latter is do...