[Solved] Is it possible to send a pretty printed SOAP request with apache cxf?

Martin Fernau Asks: Is it possible to send a pretty printed SOAP request with apache cxf?
I’m using the apache cxf library as our SOAP client to transmit SOAP requests to a specific endpoint. Unfortunately it seems that this endpoint do have some trouble to correctly parse the data if it comes in one line (which is pretty much the standard). I’ve written a simple Test-Client which sends RAW Strings to that endpoint and with that I was able to find out that the requests could be processed if the SOAP-Message is pretty printed. If I send the very same request in one line the server respond with a HTTP/1.1 500 Internal Server Error.

I’ve already submitted a bug report but I’m afraid that the receiving company will ask me to transmit my data pretty printed.

Is that possible with apache cxf?

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.