How to do service callout with the incoming JMS message in OSB 11g

Hello All,
I have a specific requirement for which I am creating a kind of POC where I need some help in OSB, however am new to OSB.
My Environment:
1> I have a request queue (deployed on a WLS domain) - WFReq_WS
2> I have a response queue (deployed on a WLS domain) - WFRes_WS
3> I have created a ProxyService (request/response type) in OSB 11g which is simply mapping the incoming message in WFReq_WS to WFRes_WS
4> I have a WebService (it is currently a simple hello WebService for testing) which takes a string and returns the same string with an added 'Hi' in front of it (e.g. If you send Jack, it will return 'Hi Jack')
My Requirement:
1> I have to do some mechanism in OSB, by which while mapping the message from WFReq_WS to WFRes_WS (through the proxy service I have), it will pick the JMS message (which will be a string/text) and will make a service callout to the Webservice I mentioned using the message as the input parameter of the WebService.
2>Now when the response of the WebService will come, OSB should send this response as the message in the response queue (WFRes_WS) I mentioned above.
To simplify the requirement using an example:
A> I will send a text/String message (say Jack) to the request queue (WFReq_WS)
B> OSB should pick the message (Jack) and make a service callout to the webservice
C> webservice will return 'Hi Jack'
D> OSB should send this to the response queue (WFRes_WS)
I know the above might look very basic question to the PROs, but please elaborate (step by step) what need to be done, since I do not know OSB.
Thanks a lot for your help !

Your example points A and D are easily done by having a "Proxy Service" which has the following details:
Service Type = Messaging Service
Request and Response type = Text
Protocol = jms
Endpoint URI = your request queue (format like 'jms://localhost:7013/weblogic.jms.XAConnectionFactory/QueueJNDIName')
Checkmark "response" so that the proxy service automatically delivers the response to another queue - your response queue
Response URI = jms://localhost:7013/weblogic.jms.XAConnectionFactory/QueueResponse
Now since your "Hello" webservice is (probably) a SOAP xml service you need to "convert" your text based JMS message to xml before sending it on to the "Hello" service.
Your JMS proxy can do that by just doing a "Assign <whom>{$body/text()}</whom>" to a variable (lets call it 'reqHello')
Now your JMS proxy should actually call the Hello service and since your JMS proxy is text and the Hello service is SOAP you cannot just "pass" on to the Hello service in a "Route to". Instead you can do a Service Callout where you can specify your "reqHello" variable as payload and a "respHello" as response variable.
Now you have the "<whom>Hi jack</whom>" in the response variable and since the JMS response needs to be text format you can "extract" the text value into the body variable of the JMS proxy (use "replace /* in body with $respHello/text()" - replace node contents)
The actual Hello service is a simple "SOAP" based Proxy Service. Add a pipeline and add a stage in the reponse pipeline. Do a ...
Assign fn:concat("Hi ",$body/whom/text()) to $whomVar
Replace whom in body with $whomVar (replace node contents)

Similar Messages

  • How to keep data integrity with the two business service in OSB 10.3.1.0

    How to keep data integrity with the two business service in OSB 10.3.1.0
    In our customer system, customer want to keep data integerity between two businness service. I thinks this is XA transaction issue.
    Basing customer requirment, I created a testcase but I can't keep data integerity, For detail information, please refer the attached docs.

    Can you please explain what you meant my data integrity in your use case?
    Manoj

  • How to fetch service order with partucular system status and user status

    Hello All,
    How to fetch service orders with specific system status and user status.
    thanks

    I want tables or views from where I can fetch service orders. I have to design ALV report based on this.
    I want to fetch released service orders with status INIT and RENT.
    Here, SYSTEM Status = Released and
             USER Status     = INIT
                                        RENT
    So is there any function module available for the same.....

  • The Remote Desktop Management service terminated with the following service-specific error %%4294967295

    Got this error after a reboot for the monthly MS hotfixes. After messing around too much, I finally found the problem and though that I would document it here since I have not found the solution anywhere I looked.
    This is in a Remote Desktop setup of two RDCB using a SQL DB that is hosted on a third server. The Remote Desktop Management service would fail to start with the "The Remote Desktop Management service terminated with the following service-specific
    error: %%4294967295" error because the SQL Server service hosting the database was offline. It had not automatically restarted after the same hotfixes. So I started the SQL server, then was able to get Remote Desktop Management to start on my RDCB without
    any delay.
    Philippe Carignan

    Hi Philippe,
    How is everything going on?
    Please check below thread for information.
    Remote Desktop Management Service, Service-specific
    error %%2284126209
    Hope it helps!
    Thanks,
    Dharmesh

  • How to make Service Callout to Document (XML) Based Web Service Proxy

    Hi,
    I am receiving a String which is basically XML via MQ.
    I want to do a Web Service Callout using the String based XML to a Proxy Service that is a Document Based Web Service.
    When I make the call using the String as the input parameter, I get many PipeLine Exception errors on the console and it does not reach the Web Service.
    Based on my readings, I believe that I need to place an XMLObject variable in the Service Callout instead of a String.
    How do I do this?
    I've tried the fn-bea:inlinedXML function but that does't seem to work.
    Regards
    Aziz

    Hi Anuj, seems that the problem was an invalid character in the Mq Message when I tried to apply the inlinedXML method to it.
    This is resolved now.
    The solution:
    1) Assign Mq $Body to variable
    2) Use Java Callout to remove special characters fn:string(body)
    3) convert Java Output String to XML using inlinedXML xquery function
    4) Do a replace on the $body node contents using the XML variable
    5) Call Web Service.
    if you dont do the XML conversion, the web service throws a Pipeline Exception.

  • HT1695 How to connect my iPhone with the printers at school? Many thanks

    How to connect my iPhone with the printers at school? Many thanks

    They must be Airprint capable printers... if they are not, then there is no supported way of connecting to them.
    Airprint 101

  • HT201269 I had an old PowerMac and now i have the MacBook Pro.  I am not use to the new iTunes.  I use to be able to drag music that I had added onto my computer from a CD to my iPhone or iTouch.  How do I do that with the new iTunes?

    I have CDs that I want to import onto my new MacBook Pro to my iPhone.  I am not use to the new iTunes with the Mountain Lion software.  I had an old PowerMac that had the Leopard software and I was able to drag those songs to my iPhone.  I can't find that option.  When I find the song I want to add to my iPhone, I tried dragging it to the top when it shows that my iPhone is connected with iTunes.  Or how do i do this with the Cloud?  I am new to that as well.  Seems like it just held my purchased songs from iTunes.

    iCloud only has content purchased (or free) from iTunes. Ripped music or music from other sources is only on your computer. As the iPhone can only sync with one computer at a time you should copy the iTunes folder from the old computer to the new one. It's in the Music folder on the old one, just copy the entire folder to the Music on the new computer. When you first sync your iPhone content will be replaced by the content of the new computer.
    You can optionally enable iTunes Match. This searches the non-iTunes content in iTunes or on your iPhone and finds the original digital version on the Internet if it exists. This then becomes your backup. If you have music that it cannot find it will upload it to your cloud storage, but you may have to pay for the storage if it is over 5 GB total (along with your backup). iTunes content and Match content are not included in the 5 GB free limit.
    Usually to fix mail issues just delete the account, reset (reboot) the phone by holding HOME and SLEEP until an Apple logo appears, and adding the email account(s) back.

  • I updated my ipod and it deleted my entire library how do I restore it with the backup I have saved?

    I updated my ipod and it deleted my entire library.  How do I restore it with the backup I have so all songs will be available in the cloud; which I paid extra Money to increase memory for?

    The backup that iTunes makes does not include apps, music, synced videos and photos. Se:
    iTunes: About iOS backups
    You will have to sync the items back form yur computer/iTunes library to the iPod via iTunes. If they are not on the computer you can redownloa d some iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE!

    In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE! Thank god Pages 09 is still there.

    …and the other 98 missing features.
    Just use Pages '09, which should be in your Applications/iWork folder.
    Rate/review Pages 5 in the App Store.
    Peter

  • When I try to install adobe photoshop 13 on my computer it comes up with the following error message " This installer does not support installation on a 64bit windows operating system" error code 6. How to I recify this? TIA

    When I try to install adobe photoshop 13 on my computer it comes up with the following error message " This installer does not support installation on a 64bit windows operating system" error code 6. How to I recify this? TIA

    You can try downloading the 64 bit version.  You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • In iPhoto, how can I export images with the metadata - including the title and caption information - intact as part of the image?

    In iPhoto, how can I export images with the metadata — including the title and caption information — intact as part of the image?

    Check those boxes in the export dialogue - Exporting From iPhoto
    LN

  • How to open a file with the extension x3f (sigma)

    how to open a file with the extension x3f (sigma)?

    RAW data from the following Sigma cameras is currently supported:
    DP1
    DP1s
    DP2
    SD9
    SD10
    SD14
    If your camera is among these, then simply import the photo as usual. https://helpx.adobe.com/lightroom/help/importing-photos-lightroom-basic-workflow.html

  • How to transfer own -done with the iPad- movies from iPad to PC ?

    How to transfer own -done with the iPad- movies from iPad to PC ?
    The fotos are possible to transfer, but not the movies

    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support

  • How do i mail merge with the new Pages and Numbers?

    How do I mail merge with the new Pages and Numbers?
    On Pages 09 I have a document that draws variable data from a spreadsheet created in Numbers.
    With the new Pages and Numbers program update, my links are lost and I am unable to see how to correct this.

    Thanks Peter,
    very disappointing.
    My Pages 09 keeps opening in the new one.
    I dont think they want me to be a loyal customer anymore.
    They changed Final Cut Pro, so now I use Premier Pro
    Aperture 3 has been left behind so now I moved to Lightroom 4.
    And now Pages 5 does not have a vital component, so back to Word.
    Sad day
    Thanks again

  • How do I copy captions with the photos into a photobook?

    How can I copy captions with the photos into a photobook.  The photos are in Adobe Elements 6.

    Good day!
    The photos are in Adobe Elements 6.
    Then you really should not be posting in the Photoshop for Beginners Forum, I guess, but in the Forum dedicated to that piece of software.
    http://forums.adobe.com/community/photoshop_elements
    Regards,
    Pfaffenbichler

Maybe you are looking for

  • Generating DSOs by using a ABAP program

    Hi Experts, We have a requirement like mass generation of infoobjects through excel file as input. Similarly we need to create 20 to 30 dso's by giving excel file as input.In that file we mention DSO technical name,properties,key fields and data fiel

  • Windows won't print to shared Lexmark

    Hello, I've read several topics on the issue but none seem to have my specific problem. Basically I have my Lexmark X1150 attached to my Mac (USB), printer sharing is on, and my Windows XP box has bonjour installed. I've followed all the instructions

  • 1.8 gamma setting

    My rMBP display is a little on the dark side. Will playing with the gamma setting hurt the display? I currently have it set to 1.8

  • Load from MQ Queue

    Hi, We have got a requirement where we need to load the data from MQ Message queue. What is the approach we have to take in terms km,odi model,topolgy etc and how to read and load into oracle tables. Cheers

  • How do I suppress "plugin container for firefox has stopped working" ?

    I am doing some Flash programming and using Firefox to debug. Every time I end the debug session from Flash Builder I get the error "Plugin container for firefox has stopped working". Is there a way to suppress this false error message? There is not