简体   繁体   中英

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 ?

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. 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 :)

If you are referring to this WSIT it is an implementation of a range of web services technologies just a Apache Axis . BTW I think WSIT has been integrated into Glassfish .

SOAP is a specification defining the protocol for exchanging web services messages. 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. 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.

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. It may help if you think less about the implementation technology and focus more the external interface (ie SOAP) that your service exposes.

There are many similarities with the Interface/Implementation Class separation in OO programming. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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