This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Cannot call web services which return non-XML responses #24
Comments
Reported by nhinds |
Was assigned to snajper |
nhinds said:
|
This issue was imported from java.net JIRA METRO-24 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Web services which return non-XML data no longer return any data when called via the metro web service library. This worked in metro 1.5, 1.6.2, 2.0, 2.1 and 2.2, but does not work against 2.2.1, 2.2.1-1 or 2.3.
This appears to be because Packet.getMessage() now returns a MessageWrapper object, instead of the real Message object. This in turn means that XMLMessage.getDataSource() can't see that UnknownContent objects implement MessageDataSource, and ends up calling UnknownContent.writePayloadTo(XMLStreamWriter) (which does nothing) instead of UnknownContent.getDataSource().
Affected Versions
[2.2.1, 2.2.1-1, 2.3]
The text was updated successfully, but these errors were encountered: