Skip to content

Conversation

@joewyz
Copy link
Contributor

@joewyz joewyz commented Nov 11, 2025

Current implementation for restXml could not parse the error response because the HttpErrorDeserializer is converting the response to document which is not supported in restXml. This PR adds a fix for this to pass protocol tests "InvalidGreetingError" and "ComplexError".

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@joewyz joewyz force-pushed the joewyz/restxml-error-parse-fix branch from d30c5e3 to 78d0aca Compare November 11, 2025 22:02
* @param response Response to deserialize.
* @return the deserialized error response.
*/
public CallException createErrorForXml(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HttpErrorDeserializer is not protocol specific, so it shouldn't know anything specific to XML here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants