Johan,
The problem is that I am using RestAssured like this:
String xml = given().request().headers( authhdrs
).contentType("application/soap+xml; charset=UTF-8;")
.body(myEnvelope).when().post( "/ws/services/Service" )
.andReturn().asString();
Now, what I really need is a andReturn() method that is able to strip
the BOM. Is it possible to extend a class and override the
andReturn() method so that I can strip the BOM? Perhaps the
resulting code would enable this:
String xml = given().request().headers( authhdrs
).contentType("application/soap+xml; charset=UTF-8;")
.body(myEnvelope).when().post( "/ws/services/Service" )
.andReturnWithoutBOM().asString();
If I can't solve, I will have to abandon RestAssured and code AXIS
manually to handle the response.
-Jon