SOAP response wrongly deserializing as null in CXF + Simple frontend + Aegis databinding

前端 未结 1 1696
别跟我提以往
别跟我提以往 2021-01-07 23:48

I\'m writting a client for a SOAP Web Service. I\'m using the library CXF. With the Simple frontend. And the Aegis databinding. The server is providing a Java interface (nam

相关标签:
1条回答
  • 2021-01-08 00:45

    Just a thought:

    In a project I recently experienced that a CXF webservice worked fine when run locally in Jetty, whereas all top-level Collection's deserialized as null when run in a Weblogic container.

    Apparently this was caused by a known bug in JAXB (don't have a reference handy, sorry) and the workaround was to wrap the Collection in this manner:

    public class Wrapper 
    { 
        private List<Reference> references; 
        ... 
    }
    

    and have the webservice work with this object on the wire instead.

    I hope this may apply to your issue as well, if not good luck anyways :-)

    /Anders/

    0 讨论(0)
提交回复
热议问题