spring-ws 和契约优先的方法 [英] spring-ws and contract-first approach

查看:51
本文介绍了spring-ws 和契约优先的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 spring-ws 参考文档中,他们说它使用契约优先方法(即 WSDL 优先),并且 spring-ws 甚至不支持契约最后方法.但是,在第一个示例(第 15 页)中,创建了一个 Java 类,使用 @Endpoint 进行注释,然后生成 WSDL.

In spring-ws reference documentation, they say that it uses a contract-first approach (i.e. WSDL comes first), and that spring-ws even doesn't support a contract-last approach. But then, in the first example (page 15), a Java class is created, annotated with @Endpoint, and the WSDL is generated afterwards.

所以,这不是合同最后的方法吗?

So, isn't it contract-last approach?

推荐答案

无论是第一个还是最后一个,总是一个讨论.但你必须从某个地方开始.我不确切知道您指的是什么,但大多数 WSDL 是基于 XSD 生成的.您甚至可能已经使用 XSD 根据其中的元素生成 Java 类.这些类可用于您的端点映射.

It's always a discussion if it's first or last. But you've got to start somewhere. I don't know exactly what you are referring to, but mostly the WSDL is generated based on the XSD. You might even have used the XSD to generate Java classes based on the elements in it. Those classes can be used for your endpoint mappings.

这篇关于spring-ws 和契约优先的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆