Web Services Invocation Framework: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Inappropriate person}} {{Advert}}
m Corrected a grammatical error and added a parenthetical definition of a tech acronym.
 
(15 intermediate revisions by 12 users not shown)
Line 1:
{{multiple issues|
{{cleanup-rewrite|date=July 2008}}
{{technical|date=September 2014}}
{{abbreviations|date=March 2012}}
{{no footnotes|date=November 2014}}
{{inappropriate person|date=December 2014}}
{{advert|date=December 2014}}
}}
Line 10 ⟶ 8:
| name = Apache WSIF
| logo =
| screenshot =
| caption =
| developer = [[Apache Software Foundation]]
| latest_release_version = 2.0
| latest_release_date = January 27, 2003
| operating_system = [[Cross-platform]]
| genre = [[Web Servicesservices]]
| license = [[Apache License]] 2.0
| website = {{URL|http://ws.apache.org/wsif}}
}}
The '''Web Services Invocation Framework''' (WSIF) supports a simple and flexible [[Java (programming language)|Java]] API for(Application invokingProgramming [[Web Services]], no matter how or where the services are provided. The framework allows maximum flexibilityInterface) for the invocation ofinvoking any [[Web Services Description Language|WSDL]] (WSDL)-described service.
 
Using WSIF, WSDL can become the centerpiece of an integration framework for accessing software running on diverse platforms andwhich usinguse widely varyingdifferent protocols. The onlysoftware preconditionneeds isto thatbe youdescribed needusing WSDL and have a binding included in its description{{Clarify|reason=The preceding statement refers to describethe yourWSDL (Web Services Description Language) and establishes a connection to it by categorizing it as "software." usingHowever, it highlights the absence of a detailed explanation or reference to WSDL within the article. Consequently, andthere includeis ina itsrequirement descriptionfor a bindinglink that yourprovides a description of WSDL to supplement the information presented.|date=July 2020}} ,that the client's WSIF framework has a provider for. WSIF defines and comes packaged with providers for local Java, [[EJBEnterprise JavaBeans]] (EJB), [[Java Message Service| (JMS]]), and [[Java EE Connector Architecture|JCA]] (JCA) protocols., Thatwhich means youthat a client can define an [[Enterprise JavaBeans]]EJB or a [[Java Message Service]]-accessible service directly as a WSDL binding and access it transparently using WSIF, using the same API youone would use for a [[SOAP|SOAP service]] or even a local Java class.
 
== WSIF Structure ==
In WSDL, a binding defines how to map between the abstract ''PortType'' and a real service format and protocol. For example, the SOAP binding defines the encoding style, the ''SOAPAction'' header, the namespace of the body (the targetURI), and so forth.
 
WSDL allows there to be multiple implementations for a Web Service,service and multiple Portsports that share the same PortType. In other words, WSDL allows the same interface to have bindings to forservices example,such as SOAP and [[General Inter-ORB Protocol|IIOP]].
 
WSIF provides an API to allow the same client code to access any available binding. AsSince the client code can then be written to the PortType, itthe canchoice beof awhich deploymentport orand configurationbinding settingit (oruses acan codebe choice)determined whichby portdeployment, andconfiguration bindingsettings, itor uses.code
 
The WSIF uses ''providers'' to support these multiple WSDL bindings. A provider is a piece of code that supports a WSDL extension and allows invocation of the service through that particular implementation. WSIF providers use the J2SE JAR service provider specification, making them discoverable at [[Run time (program lifecycle phase)|runtime]].
 
Clients can then utilize any new implementations and can delegate the choice of port to the infrastructure and runtime, which allows the implementation to be chosen on the basis of quality of service characteristics or business policy.
 
== WSDL bindingsBindings for EJBs, JMS, and JCA... ==
WSIF defines additional binding extensions so that [[Enterprise JavaBean|EJBs]] (EJBs), local Java classes, software accessible over [[message queue]]s using the [[Java Message Service|JMS]] (JMS) API, and software that can be invoked using the [[Java EE Connector Architecture|Java Connector architecture]] can also be described in WSDL. WSIF is packaged with providers that allowenable transparent invocation ofbased such software givenon the corresponding WSDL description..
 
== Description of WSIF ==
WSIF defines additional binding extensions so that [[Enterprise JavaBean|EJBs]], local Java classes, software accessible over [[message queue]]s using the [[Java Message Service|JMS]] API and software that can be invoked using the [[Java EE Connector Architecture|Java Connector architecture]] can also be described in WSDL. WSIF is packaged with providers that allow transparent invocation of such software given the corresponding WSDL description.
 
== Description of WSIF ==
WSIF enables developers to interact with abstract representations of Web services through their WSDL descriptions instead of working directly with the Simple Object Access Protocol (SOAP) APIs, which is the usual programming model. With WSIF, developers can work with the same programming model regardless of how the Web service is implemented and accessed.
 
WSIF allows stubless or completely dynamic invocation of a Web service, based upon examination of the meta-datametadata about the service at runtime. It also allows updated implementations of a binding to be plugged into WSIF at runtime, and it allowsallowing the calling service to defer choosing a binding until runtime.
 
Finally, WSIFIt is closely based uponon WSDL, soenabling it canto invoke any service that can be described in WSDLthe language.
 
WhatIf does all this enable? Imagine youra complicated Enterpriseenterprise software system consistingconsists of various pieces of software, developed over a period of tens of years - EJBsdecades—EJBs, legacy apps accessed using Java's connector architecture, SOAP services hosted on external servers, old code accessed through messaging middleware.middleware—it Youis neednecessary to write software applications that use all these pieces to do useful things;, yet thewhere differences in protocols, and mobility of software, etc.conflict comes inwith theeach wayother.
 
TheIf the software youis use movesmoved to a different server, so yourthe code breaks. The SOAP libraries youused use change - say forchange—for example, youwhen movedtransitioning from using Apache SOAP to Apache Axis, - so your code breaks sinceas it usesemploys a now -deprecated SOAP API. Something that was previously accessible as an EJB is now available through messaging middleware via JMS - againJMS—again, you need to fix the code that uses the software. Ormust be fixed, let'sor supposeif youone havehas an EJB which is offered as a SOAP service to external clients. Using SOAP obviously results in a performance penalty as compared to accessing the EJB directly. Of course, SOAP is a great baseline protocol for platform and language independence, but shouldn't java clients be able to take advantage of the fact that the software they are accessing is really an EJB? So your java customers pay a performance penalty since you have to use SOAP for to accommodate you non-java clients.
 
WSIF fixesresolves these problemsissues by lettingenabling youWSDL useto WSDLserve as a normalized description of disparate software, and allowsallowing youusers to access this software inwithout adepending manneron thata is independent ofspecific protocol or ___location. So whether it is SOAP, an EJB, JMS (or potentially .NET and other software frameworks), you have an API centered around WSDL which you use to access the functionality. This lets you write code that adapts to changes easily. The separation of the API from the actual protocol also means youthere haveis flexibility - you can switch protocolsflexibility—protocols, ___location, etc. can be switched without having to even recompile your client code. So if yourIf an externally available SOAP service becomes available as an EJB, youusers can switch to usinguse RMI/IIOP by just changing the service description (the WSDL), without having to makemaking any modification in applications that use the service. You can exploit WSDL's extensibility, its capability to offer multiple bindings for the same service, deciding on a binding at runtime, etc. can be exploited.
 
== Differences between WSIF and Axis ==
Line 56 ⟶ 53:
Axis is an implementation of SOAP. It includes on the server-side infrastructure for deploying web service implementations and then routing SOAP messages between clients and those implementations. It also implements the JAX-RPC specification for invoking SOAP services.
 
WSIF is similar to the client piece of Axis, in that it is used for invoking services. However, WSIF's API is WSDL-driven and protocol independent; it allows protocol-specific code ("providers") to be plugged in. For invoking SOAP services, WSIF is in fact packaged with an Axis provider, that uses Axis APIs (i.e. JAX-RPC) to do the invocation. So WSIF operates at a more abstract level than Axis.
 
== Differences between WSIF and JAX-RPC ==
 
JAX-RPC is an API for invoking XML-based RPC services - essentially itsthe current scope is limited to invocation of SOAP services. WSIF is an API for invoking WSDL-described services, whether they happen to be SOAP services or not (for example, WSIF defines WSDL bindings so that EJBs, enterprise software accessible using JMS or the Java Connector architecture as well as local Java classes can all be described as first-class WSDL services and then invoked using the same, protocol-independent [[WSIF]] API).
 
== See also ==
* [[Apache Web ServicesXML]]
*[[Apache XML]]
 
== External links ==
* [http://ws.apache.org/wsif/ Web Services Invocation Framework documentation]
* [http://publib.boulder.ibm.com/infocenter/ws51help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/cwsf_wsdl.html WSIF and WSDL]
* [http://www.s-cube-network.eu/km/terms/s/service-binding Service Binding]
 
{{Apache Software Foundation}}
 
[[Category:Web service specifications]]