service virtualization is one of the main feature of OSB. Service
virtualization is the abstraction of a physical service through a proxy or
intermediary service. In service virtualization, the service intermediary
interacts with the service consumer and hides the physical location of the
service provider. In other words, communication between the service provider
and service consumer is done through a service intermediary, creating a gateway
for application integration.
In this Use case we will use one
of the external web service which is available over web and will call that webservice from OSB. There are
numerous webservices which are available in Online one such kind webservice
is Bank BLZ Service (http://www.thomas-bayer.com/axis2/services/BLZService?wsdl).
By using this webservice we can
fetch Bank Sort Codes (called Bank BLZ codes) for banks in Germany. In the
request, you need to pass the BLZ code for any bank in Germany and it comes
back with the bank details.
Create new project named BLZ service
Create folder structure like below
Copy the WSDL file from location http://www.thomas-bayer.com/axis2/services/BLZService?wsdl
and place under WSDL folder
Creating Business Service
Drag and drop HTTP component from Technology palate to
External Services lane.
Service Name: BS_BLZService
Location: browse
through “BusinessService” folder we created in earlier step
Transport: http
Select “WSDL” from available options and browse to wsdl
location
populates wsdl file with port after reading the WSDL file we
have chosen in the previous step
populates the endpoint URI for the exposed web service to be
invoked
Click Finish
Business Service is created on the External Services lane
and this exists under “BusinessService” folder
Create Proxy Service
Drag and drop HTTP component from Technology palate to Proxy
Services
Fill up the mandatory details
Service Name: PS_BLZService
Location: browse through “ProxyService”
folder we created in earlier step
Transport: http
Transport: http
Checking “Generate Pipeline” check box will create
pipeline along with Proxy Service
We will use the same WSDL that we used to create business
service
populates endpoint URI
Proxy Service is created on the Proxy Services lane and this
resides under “ProxyService” folder
Connect Pipeline with business service
Double-click on the PS_BLZServicePipeline which opens up
in new editor with .pipeline extension. Here Routing node inside route node is
created automatically when we wire pipeline with business service
Testing the Service Bus project deploying into the
IntegratedWeblogicServer
Request
Response
No comments:
Post a Comment