如何在Spring中生成没有默认请求/响应后缀的wsdl?
Web 服务方法的定义已由第 3 方提供给我,我创建了 java 类,maven schemagen 插件从类中出色地生成了 xsd。然后我设置了一个 spring-ws-servlet 等来发布 wsdl,只有 WSDL11Definition 类需要请求和响应后缀......我没有后缀。方法名称是 getAttribute、setAttribute、refreshDetails、manageAttribute 等。有谁知道解决这个问题的方法吗?是否有其他 wsdl 定义类可以引用来执行此操作,或者可能有其他提供程序(而不是 defaultWsdl11Definition 使用的 suffixProviders)?
任何帮助将不胜感激!
The definitions for the methods of a web service have been provided to me by a 3rd party, i've created the java classes and maven schemagen plugin generates the xsd brilliantly from the classes. I then set up a spring-ws-servlet etc to publish the wsdl, only the WSDL11Definition classes require a request and responsesuffix.... I don't have a suffix. the method names are things like getAttribute, setAttribute, refreshDetails, manageAttribute etc. Does anyone know of a way around this? are there other wsdl definition classes that can be referenced to do this, or perhaps other providers (instead of the suffixProviders that the defaultWsdl11Definition uses)?
Any help would be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Spring-WS 是围绕 " 模式设计的首先”设计,而不是“代码优先”:
您可以以“代码优先”的方式使其工作,但您将面临一场战斗。
如果您想坚持使用 Spring-WS,那么我强烈建议您使用 Web 服务规范来编写描述操作的 XML 模式,然后从该模式生成 java,或者手动编写 java。
Spring-WS is designed around "schema first" design, rather than "code first":
You can make it work with "code first", but you're going to have a fight on your hands.
If you want to stick with Spring-WS, then I strongly suggest that you use the web service spec to write an XML Schema describing the operations, and then either generate java from that schema, or write the java by hand.