Spring ApacheCXF:如果我使用代码优先的方法并从xsd生成jaxb,那么如何在wsdl中覆盖xsd

Spring ApacheCXF:如果我使用代码优先的方法并从xsd生成jaxb,那么如何在wsdl中覆盖xsd,spring,xsd,wsdl,cxf,code-first,Spring,Xsd,Wsdl,Cxf,Code First,几天来我一直在努力解决这个问题。 我有xsd,然后从中生成jaxb,编写服务并注释它们。 并获取wsdl,但我想在wsdl中使用我的初始xsd,而不是apache cxf。 是的,这就像SpringWS做事情一样,但我想要ApacheCXF,因为它有GzipintReceptor这样的特性。我没有找到如何通过SpringWS解压传入的请求 更新: 我已经解决了。 endpoint.setSchemaLocations(新ArrayList(){{ 添加(“classpath:/resource

几天来我一直在努力解决这个问题。 我有xsd,然后从中生成jaxb,编写服务并注释它们。 并获取wsdl,但我想在wsdl中使用我的初始xsd,而不是apache cxf。 是的,这就像SpringWS做事情一样,但我想要ApacheCXF,因为它有GzipintReceptor这样的特性。我没有找到如何通过SpringWS解压传入的请求

更新: 我已经解决了。

endpoint.setSchemaLocations(新ArrayList(){{
添加(“classpath:/resources/ws/xsd/statusPolicyeAgoStatusRequest.xsd”);
添加(“classpath:/resources/ws/xsd/statusPolicyeAgoStatusResponse.xsd”);
}});

用示例代码解释。