Hi
I have RESTEasy client which is constructed like this:
ResteasyClient client = new
ResteasyClientBuilder().httpEngine(httpEngine).build();
ResteasyWebTarget snowConditionTarget = client.target(host);
SnowConditionClient snowConditionClient =
snowConditionTarget.proxy(SnowConditionClient.class);
(SnowConditionClient is interface)
When I try to read entity: response.readEntity(SnowConditionResponse.class);
I get Unmarshall exception: "Content is not allowed in prolog".
This is because XML has byte order marker (BOM).
Question:
How can I skip BOM ?
I implemented custom MessageBodyReader but Tapestry refuses to use it
(or I'm doing something wrong).
I put this class in services package and even try with manual
registration, with no success:
ResteasyProviderFactory instance = ResteasyProviderFactory.getInstance();
RegisterBuiltin.register(instance);
instance.registerProvider(SnowConditionProvider.class);
Thanks,
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org