Database Reference
In-Depth Information
XQuery Transformation perspective
14. After changing the perspective, you can create two mappings for the Request and
Response actions in your routing. First, we will map the MH Request elements to
the inbound parameter used to select necessary rule functions from repository,
and secondly, transform the DB Response to the canonical EP (remember, this is
just an example).
15. Constructed XQueries will be used in the Expressions of Replace actions, located
in the Request and Response pipelines respectively, by replacing the node content
of <soap-env:Body> . We have to specify, in the parameter binding, the ele-
ment that presents the Response from the adapter. We are almost there.
16. We need to test it. Publish Proxy on OSB and start SoapUI. Get the URL to the
Proxy WSDL ( http://<your_OSB_host>:<your_OSB_port>/<y-
our_OSB_project_step8>/<ServiceName>?wsdl ) and paste it into
the Initial WSDL/WADL field. Generate the Request, change the content of the
query according to your DB data, and send the Request. This is it.
In a quick pace, but with all necessary details kept intact, we demonstrated the traditional
approaches of the implementation and Adapters isolation using OSB. Although EJB wrap-
ping into Proxy is not completely an adapter-related task, it's quite common and can give
you a flavor of what you can achieve by the power of EJB methods, hiding the complexity
of Java manipulations, and exposing them in one simple method.
Search WWH ::




Custom Search