简体   繁体   English

Java / WCF Interop何时真正需要WSIT? Java / asmx是否需要?

[英]When is WSIT really needed for Java / WCF Interop ? Is it needed for Java / asmx?

SOAP is supposedly an interoperable standard for webservice so when is WSIT really needed ? SOAP被认为是Web服务的可互操作标准,因此何时真正需要WSIT?

Playing the Devil's advocate: 扮演魔鬼的拥护者:

Also as far as I can see WCF is much more than SOAP and they rather seem to target REST. 据我所知,WCF远不止SOAP,而且它们似乎以REST为目标。 Isn't rather that Microsoft and SUN are hiding the fact that they made a mistake about the huge SOAP complexity and now adopts REST without admitting it too openly and build another wall of complexity above it with WSIT and WCF for selling new tools :) 并不是说Microsoft和SUN掩盖了一个事实,那就是他们对巨大的SOAP复杂性犯了一个错误,现在采用REST却没有公开地承认它,并通过WSIT和WCF为销售新工具建立了另一层复杂性:)

If you are referring to this WSIT it is an implementation of a range of web services technologies just a Apache Axis . 如果您指的是WSIT,那么它只是Apache Axis的一种Web服务技术的实现。 BTW I think WSIT has been integrated into Glassfish . 顺便说一句,我认为WSIT已被整合到Glassfish中

SOAP is a specification defining the protocol for exchanging web services messages. SOAP是定义用于交换Web服务消息的协议的规范。 It tells you what to read and write but doesn't actually do the reading and writing - it is not software, just the specification for how software should behave. 它告诉您读取和写入什么内容,但实际上并不执行读取操作-它不是软件,而只是有关软件应如何工作的规范。

WSIT, WCF both provide webservice implementations that adhere to the SOAP specification - they are implemnetations of the SOAP specification. WSIT和WCF都提供遵循SOAP规范的Web服务实现-它们是SOAP规范的体现。 You don't have to use these frameworks - you could code the XML yourself, but it's of course a lot easier to start from an existing implementation, so you can focus on the logic of your webservice rather than the plumnbing. 您不必使用这些框架-您可以自己编写XML编码,但是从现有的实现开始当然要容易得多,因此您可以专注于Web服务的逻辑,而不是直截了当。

You need SOAP - it's the common ground that two independent implementations agree upon, and is the key factor that makes WSIT/Axis<>WCF interop possible. 您需要SOAP-这是两个独立实现达成共识的共同基础,并且是使WSIT / Axis <> WCF互操作成为可能的关键因素。 It may help if you think less about the implementation technology and focus more the external interface (ie SOAP) that your service exposes. 如果您较少考虑实现技术,而将重点更多地放在服务公开的外部接口(即SOAP)上,则可能会有所帮助。

There are many similarities with the Interface/Implementation Class separation in OO programming. OO编程中的接口/实现类分离有很多相似之处。 Once you have an instance implementing an interface, you don't really care about the actual implementation details - just that the implemnetation adheres to the interface specified. 一旦有了实现接口的实例,您就不必在乎实际的实现细节了,而只是将隐含遵从指定的接口。 With web services, you don't (usually) care that the service or client is implemented in WSIT, Axis, WCF, asmx, or any other programming language - you just care that it exposes/consumes a SOAP interface. 使用Web服务时,您(通常)不必关心以WSIT,Axis,WCF,asmx或任何其他编程语言实现的服务或客户端-您只需关心它公开/使用SOAP接口即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM