cxf 生成 wsdl 缺陷!!!!!

在 mssql2005 存储过程中调用cxf 发布的服务就报错。解析wsdl 不行。。。。。

 

回来查看文档:

 

There are some pitfalls in the interaction between the front end and the data binding. If you need detailed control over the XML that travels on the wire, you may want to avoid the 'wrapped' alternative, and stick with 'bare'. When you use the wrapped parameter style or the RPC binding, the front ends construct more or less elaborate XML representations for your operations. You have less control over those constructs than you do over JAXB's mappings. In particular, developers with detailed requirements to control the XML Schema 'elementFormDefault' or the use or non-use of XML namespace prefixes often become frustrated because the JAXB annotations for these options don't effect mappings that are purely the work of the front-end. The safest course is to use Document/Literal/Bare.

 

好多配置不是很灵活:'elementFormDefault' =

 

 

 

 

posted @ 2012-01-13 15:36  小湖海  阅读(786)  评论(0编辑  收藏  举报