English 中文(简体)
3. 互动网络服务
原标题:interface-based Java/Groovy web services

在我的经验中,大多数分配的物体技术(RMI、CORBA等)都发挥了类似的作用:

  • define a service interface
  • write an implementation of the interface
  • use a tool (rmic, IDL compiler, etc.) that generates code which enables a client to get a reference to an implementation of the interface given some endpoint (URL).

重要的一点是,服务接口是客户和服务必须遵守的共同合同。 我曾看过metro,看来没有遵循这一模式。

我期待着支持这种互动网络服务的开发的其他建议。 不幸的是,我需要使用SOAP,因此只有支持REEful服务的图书馆对我没有好处。

理想的情况是,我要遵循的是第一号法典,而不是第一号合同,即合同。 我界定了“Java”服务接口,而WSDL则产生于这一接口,而不是相反。

尤其欢迎采用格罗莫娃(而不是 Java)确定或实施服务的解决办法。

问题回答

计量使你能够说明一种特定方法,对集装箱组合文档中的终点进行 h或两点,然后根据要求自动产生WSDL。

这是非常令人 n笑皆非的,使你不必为公正处置某种方法或两种方法而建立一个完整的妇女发展基金。

Metro is good (+1), but Apache CXF s Simple Frontend goes one step further: you don t have to annotate anything. It generates WSDLs, clients and servers from plain Java interfaces.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签