I have a soap client call that invokes a remote service. Unfortunately the service provider is updating the service definition frequently and introduces new properties or changes the property order. Therefore I can no longer call it, the mapping of the response fails with:
I've also tried the new Webservice stack of Axon.ivy 7.1 based on CXF. But it fails with a similar issue:
Is there any way to read the response in a compliant way and ignore new properties introduced by the provider? the roundtrip is huge if I have to re-generate the client stack every-time when the provider makes changes. asked 30.05.2018 at 09:37 SupportIvyTeam ♦♦ |
CXF can easily ignore that exception You can disable the schema validation as described here: http://mail-archives.apache.org/mod_mbox/cxf-users/201001.mbox/%3C201001291547.56047.dkulp@apache.org%3E Within Axon.ivy 7.1 you just have to pack this property into a custom feature:
And then use in in your client configuration.... Then these unexpected subElement exceptions are gone. Another solution could be to set a specific event handler and only ignore these unexepted SubElement exceptions. But I didn't test it: http://whileonefork.blogspot.com/2010/11/cxf-backwards-compatibility-adding.html AXIS2 needs dirty handwork If you can not migrate to Axon.ivy 7.1 or newer you can also patch Axis2 client to ignore new properties.
answered 30.05.2018 at 09:38 Reguel Werme... ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 30.05.2018 at 09:37
Seen: 15,482 times
Last updated: 30.05.2018 at 10:03