Sample "REST" service for context based routing in OSB

Hi All,
We have a requirement where we have to do context based routing in OSB.For that, we need to have a Rest Service which should do context based routing.In the payload there will be Action tag, based on the Action tag we need to invoke corresponding Business service, if you have any sample service like this please send it to me.
As I am quite new to Rest services.It will be helpful if I get a sample service.
Thanks In Advance

http://prsync.com/oracle/restful-services-with-oracle-service-bus-6243/
http://blogs.oracle.com/jamesbayer/2008/07/using_rest_with_oracle_service.html
http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html
Regards,
Anuj
Edited by: Anuj Dwivedi, TCS on Aug 17, 2010 3:02 PM

Similar Messages

  • Any solutions for URL based routing

    Hi,
    I have an ASA 5505 that has 2 route (1 route connecting to MPLS VPN to HK branch office and 1 route connecting to Internet service provider). As you know, ISP in China blocking many web sites (such as facebook, youtube or etc.). So , I would like to route the traffic when the user in China office would like to browse facebook.com or youtube.com to HK ASA and egress to the internet by NAT. However, all other traffic remain to route to ISP in China, so that the Internet traffic in HK office will not be overload and the user in China can browse facebook.com or youtube.com.
    I have researched a topic of regular expression with Modular Policy Framework (MPF). I expected that if the ASA can match the traffic, I can set next hop to HK office's ASA. However, this feature does not support https so that my expectation failed. Because the login page and sometime these web site using https for encryption. I hope URL based routing work on both http and https can work.
    Do anyone have any solutions to resolve this situation? Please kindly provide it to me. I would appreiciate it if you could also provide configuration example with commands. I look forward to hearing from anyone soon. Thank you.
    Regards,
    Lapson Wong

    What you are trying to do is policy-based routing which is not supported on the ASA.  MPF is used only for inspection and QoS type serverices.
    If using a proxy is not an option, you would need to put in a router that would send the desired traffic over the WAN network.  another option, though I would not recommend it, is to find all the IPs of facebook, youtube, etc. and add static routes on the ASA pointing out the WAN interface.

  • Rest service DELETE doesn't work with OSB

    Hi,
    I am using OSB 11g, I am using OSB proxy to monitor external rest services call. I've created a business service that point to the external rest service and I created a proxy that is routed to my business service. I modified the flow by adding a piplinepairNode -->requestPipline-->stage -->created two assign and created two variable one for the id and another one for the productID. Then I modified the business service flow as follow:
    created two insert, one to define the method, which is DELETE and another one to set the relative-URI to the productID variable and I set the response to replace the . in the body with $body, following this post: http://blogs.oracle.com/jeffdavies/entry/restful_services_with_oracle_s_1
    When I test it using osb console Execute, I can see my productID variable is set to $inbound and it is passed all the way to the business service, where it should call the external rest service with the relative-URI, which is set to my productID. it doesn't work, I get 404 error, which is undefined, I believe the reason is because business service is trying to call the external rest service with
    http://localhost:{port}/deleteProduct and the rest service expect this URL
    http://localhost:{port}/deleteProduct/2 or {productID}
    can you please help and tell me what I'm doing wrong?
    appreciate any kind of help
    Thanks
    M.

    Please refer -
    http://blogs.oracle.com/jeffdavies/entry/enhanced_rest_support_in_oracl
    Regards,
    Anuj

  • Incorrect condition evaluation for content-based routing (Receiver determ.)

    Hi experts,
    We have a SAP XI scenario (using web services), where we use external
    definition (an imported WSDL document) of messages, which contain
    elements with a default namespace. We have a problem during the
    receiver and interface determination, where we use conditions.
    When we use an element with a default namespace, it doesn't work (the receiver is not found), e.g. <UserRequest xmlns=http://portal.skoda-auto.com/Namespaces/PortalB2B...
    When we add some prefix to the namespace e.g. ns0, it starts working
    OK. Problem is, that sender application (web service client) send us
    message without a prefix.
    What we can do on the side XI? Can you suggest some solution for this problem?
    Do you know if SAP XI has some limitation using default namespaces?
    In our test system we use SOAP sender adapter and in productive we use external SOAP adapter.
    We use SAP XI3.0 (SP19)
    Thanks for your help!
    Regards
    Petr

    It is OK now. We have already solved the problem. We had to correct a
    wsdl and add to it <b>elementFormDefault="qualified"</b> ,
    <schema targetNamespace="http://portal.skoda-
    auto.com/Namespaces/PortalB2B" xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:ns0="http://portal.skoda-auto.com/Namespaces/PortalB2B"
    elementFormDefault="qualified" >
    The receiver determination started to work correctly. (Our partner apologise for this mistaken wsdl).

  • Design suggestion for content based routing

    Hi All,
    I have the following scenario.
    Based on one field in the file I have to take the following decisions.
    1)If field is 'R'. Then I should send a mail with some data to the concerned person.
    2) If filed value is 'V' . Then I should create file with the  input XMl.
    Venu.

    hi,
    just use condition editor in directory to
    do it (receiver determination)
    if r then one service which will send mail
    if v then another service with mapping etc
    it's all standard
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Generate sample CFC Service for Oracle 11g problem

    Hello,
       i am facing problem with Generating cfc from RDS datasource for oracle database 11g , i can borows the tables and fields
    in the RDS Dataview but i cant Generate the CFC using the option of Generate from RDS datasoures , if i chose it it takes long time
    and the flash builder is frazed and not responding if i try to select the table wich i want to create that CFC for . i have the correct
    Oracle jdbc driver for that database version and also if i generate from template and try to create the return datatype it dosent
    give me the correct datatype of the oracle table .. please help
    thanks

    The main problem that i am not able to select the table from the table lists to start generate the CFC
    No there is no database objects in oracle starts with numbers , but most of thim having the ($) charactier in there names , i am not getting the correct datatypes , the num
    bers datatype in oracle is presenting with Object datatype in flex .
    i mean if you have a field with Number(6.2) in oracle the flash builder use Object datatype
    and i am using the latest nightbuild of flash builder do i have to download something else ?

  • APEX Listener 2.0 - RESTful Services Failure with  404 - Not Found

    Versions used:
    * APEX Listener 2.0.0.354.17.05
    * Application Express 4.2.1.00.08
    * Oracle Database 11.2.0.1
    When testing the sample RESTful Service Module oracle.example.hr I always get 404 - Not Found page.
    I followed the documentation to install and configure APEX 4.2 and the Listener 2.0. Everything in my APEX installation works fine except RESTful Services.
    For example, when calling this RESTful Service:
    http://company.com:45678/apex/DEV/xxuapex/hr/empinfo/
    I get a 404 page.
    The corresponding entry in url-mapping.xml is:
    <pool base-path="/DEV" name="od01" workspace-id="xxuapex"/>
    where xxuapex is the name of the schema as well as the workspace where the RESTful Service is installed.
    Moreover, the corresponding od01.xml, od01_rt.xml and od01_al.xml in the conf directory seem correct.
    Any help is greatly appreciated.
    Thanks.
    Eddie Awad.

    Hi Eddie,
    +> try the other option base-url of the url-mapping+
    I did. No change. Still getting 404.When active it should transform the 404 page into a detailed 404 with a description of what the error is. Just to be sure, this is activated in the defaults.xml file of the APEX Listener as: *<entry key="log.logging">true</entry>*.
    You should then see a detailed 404 output in your browser of what's going wrong first of all.
    +> Could you post your url-mapping.xml file?+
    <?xml version="1.0" encoding="UTF-8"?>
    <pool-config xmlns="http://xmlns.oracle.com/apex/pool-config">
    <pool base-path="/DEV" name="od01" workspace-id="xxuapex"/>
    <pool base-path="/TEST" name="ot01" workspace-id="xxuapex"/>
    </pool-config>
    Despite using the url mapping script, it didn't map mine correctly and had to edit it manually. It was the use of "apex" that got it to work for me:
    *<pool base-path="/" name="apex" workspace-id="workspace-name-here" updated="2013-01-09T20:48:59.75Z"/>*
    Nick.

  • Sender SMTP Adapter / Content Based Routing / Mapping of an attachement

    Hi all,
    I'm still working on my SMTP --> PI --> Proxy scenario (asynchronous). I've tried several different properties of my sender communication channel (type = mail), but I didn't find the correct configuration. Hopefully it exists.
    I'm working with PI 7.0 SP10.
    I get an inbound message via Mail using sender SOAP Adapter. The message payload itself is an attachement. Now I'd like to do the following:
    a) Content Based Routing in Receiver Determination based on the message subject
    b) Mapping of the Attachement XML message to my inbound proxy interface
    Now, trying to do so, I didn't get it work. When I use XIPAYLOAD with keep attachements, I get two attachements in my inbound message (one in XI mail package format having the subject within, one with the IDoc structure I'd like to map). How can I assign the second attachement to be used for my message mapping?
    When I use XIALL instead of XIPAYLOAD, I think the mapping will work but my subject for content based routing will be lost, right? That one I didn't get running because of another failure, so I don't know the exact behaviour of the adapter for that configuration.
    Anybody out there who know the correct configuration for the sender mail adapter for my small scenario above?
    BR
    Holger

    Hi Stefan,
    sorry for misunderstanding, for sure I'm using the mail adapter, not the SOAP Adapter. I'm actually on the same direction. I'm using XIPAYLOAD as message protocoll (having the attachement as the content for the mapping --> correct). Furthermore I've also found the predefined context objects for the content based routing receiver determination.
    What I missed was setting the following properties in the communication channel:
    To store adapter attributes in the message header of the XI message, set the Set Adapter-Specific Message Attributes indicator.
    The following attributes are added to the XI message header if the sender makes them available, and if the Variable Transport Binding indicator is set.
    Now it's working
    BR
    Holger

  • RESTFul services

    Hi.
    I'm implementing a Java Wrapper to invoke RESTFul services.
    I tested some of them and it's running fine. However i'm having some problems with Search REST API.
    My enviroment is described as follow:
    - Oracle WebCenter Portal : Spaces PS5 with OAM SSO configured and Oracle OHS as webserver.
    - .../rest/api/resourceIndex is succesful and i tested getGroupSpaces functionallity through Java Code and directly URL.
    However, i'm trying to invoke http://host/rest/api/searchresults?startIndex={startIndex}&mimetype={mimetype}&q={q}&serviceId={serviceId}&refiners={refiners}&data={data}&scopeGuid={scopeGuid}&itemsPerPage={itemsPerPage}&utoken=FIgDJVfHs52CpShC6gpum8qE6X8A_w**
    Can provide me a sample of replaced param that works?. I tried a lot of ways and i'm getting HTTP 501 or 403 sometimes!! (strange).
    I'll check OAM WebTier (WebCenter REST Auth Policy) and more parameters...
    Any tip or suggest are welcome :).
    Update: All seems configurated
    Regards.
    Edited by: Daniel Merchán on 09-oct-2012 14:02

    Why don't you try out this https://mgmt2.espressologic.com/Management/?accountType=eval#/ and get faster de-bugged RESTful service for your backend.
    It will get you started within a minute and solve your http 501 and param issues in no time.    

  • Issue with calling restful services via HTTP in an Orchestration

    The company I work for is using RESTful services for our I/O. We are processing EDI files using Biztalk, and are calling the REST services via HTTP from a c# code called within the orchestration. At lower volumes, the service performs fine, but at higher
    transaction volumes, the HTTP calls never return. Is there a resource that needs to be tuned somewhere on the biztalk node to allow higher volumes of HTTP calls? Its not the REST service side - it has no problems handling loads generated by non biztalk nodes.
    For further clarification, the EDI message is a multi batched, so there are many simultaneous orchestrations running at once.  I have started to look at ways to throttle how many instances can run at once, but I still suspect some resource in the HTTP
    sequence that we dont have enough of.
    Ideas?

    I think you were not  enough free threads in the ThreadPool to complete the operation.
    So you can work out with Max connection setting in your BTSNTSvc file first
    <system.net>
    <connectionManagement>
    <add address="http://name.of.server.here" maxconnection="1oo" />
    </connectionManagement>
    </system.net>
    and try increasing number of threads allocated to the specific send Host instance and your Orchestration instance  ,you can try twinkling Response timeout in minutes as well  on host instance
    Thanks
    Abhishek

  • Is exposing ADF BC as RESTFul service supported by current JDev?

    According to the presentation at http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adf-service-integ/adf-service-integ.html, Frank mentioned that Jdev will support RESTFul services for ADF BC in future. Is it available now? If no then is there any tentative version number when it might be available?

    Hi Frank
    Is this why the "ADF Model RESTful WebService Project" option in the New Gallery is greyed out in the 12.1.2c version of JDev.
    Eddie

  • Configuring RESTful Services in detail

    Hi Community,
    we've set up RESTful Services for our APEX installation, we've followed the Oracle documentation on how to do that.
    Now, there are some questions left:
    Is there a way for us to configure the RESTful services in detail? It looks like there are very few configuration possibilities at all, for example, we can't set the Tokens lifetime (or configure anything at all actually=).
    Thank you!
    - Georg Dangl

    So, I'm one step closer now, thanks to Securing ORDS REST Services with OAUTH2 | Oracle Is Easy, I've found that there is the possibility to set the lifetime for the BEARER token in the defaults.xml via the following parameter:
    security.oauth.tokenLifetime
    Additionally, I discovered a table in the Database under the  Apex user, "WWV_FLOW_RT$USER_SESSIONS" where current OAuth2 Information (Tokens and expiry info...) is saved. From there, I found that the default refresh Token lifetime is one day.
    So, the next step is to find out the command to set the refresh token lifetime in the defaults.xml. I'd appreciate any help!

  • Can I create JDE BSSV (Business Services) for REST based services?

    Can I create JDE BSSV (Business Services) for REST based services? If yes, then how? In what way it will be different from SOAP based?

    Hi
    Within Oracle SOA Suite, Oracle Service Bus would handle the REST side of things, which in turn would call the JCA adapter to talk to your JDE backend, or vice versa.
    Checkout the JDE adapter docs - http://www.oracle.com/technetwork/middleware/soasuite/documentation/jdewardsweb-1954164.pdf
    and the OSB Docs - HTTP and Poller Transports - 11g Release 1 (11.1.1.7)
    OSB 11.1.1.7 introduced additional REST support, so I'd recommend using that version onwards.
    Cheers
    iain

  • Role Assignment Discovery Issue for Files and Folders through Sharepoint REST services

    To preface, I am a decided Sharepoint newbie in every sense. I am trying to use the Sharepoint REST services (Sharepoint 2013) to walk the folder and file structure of my Sharepoint server and, determine as I go, the Role Assignments (and subsequently
    Permissions) on those folders and files. I'm using an Administrator credentials and I'm actually able to successfully do it but I've run into some caveats. All the caveats begin with this; when I'm examining a folder, for example:
    /_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/ListItemAllFields
    I receive either an empty list or an error response doc when following the link supplied for ListItemAllFields.  When following that kind of link for folders, I either get:
    <d:ListItemAllFields
    m:null="true"
    />
    or an error response document that says "The object specified does not belong to a list." When I hit the /ListItemAllFields endpoint for files, I receive a response with a link for Role Assignments which subsequently also works and I get the
    info I need. So, is this a bug? Why does the link returned from Sharepoint work for files and not folders? So, google, google, google, and I discover that there is another possible way to get at the Role Assignments (and that the object does, indeed, belong
    to a list!).
    If I know the Title (or the guid) of the folder in question, I can use the following endpoint:
    /_api/Web/Lists/GetByTitle('Development')
    If I use that endpoint, I get the information I would have expected to get from following /ListItemAllFields and the subsequent Role Assignments links all work and I get what I need. If there's a bug and this is how I have to work around it, that's fine
    but I have yet to discover how to dynamically determine the Title of a given folder nor am I sure if all Titles are supposed to be unique within a given Sharepoint server. I'm assuming that the folder name as represented in the server relative URL and the
    Title may be different and this is where my newbishness may start to shine if I'm misunderstanding what a "List" is supposed to be in Sharepoint. Anyway, I did find that I could use the Properties endpoint to perhaps get the Title, for example:
    /_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/Properties
    gives me:
    <d:vti_x005f_listtitle>Development</d:vti_x005f_listtitle>
    whose value I assume I could then supply to the /GetByTitle endpoint and be golden. However, "vti_x005f_listtitle" just sounds a little too deep to be something I should be relying on but maybe that's kosher. That's part of what I'm trying to
    find out. Also, if there is a way to use the Sharepoint REST API to discover the guid of a given object, then I could look it up in that way.
    So, in summary:
    1. Am I going about getting folder Role Assignment information in the wrong way? Based on the CSOM examples I've seen, I believe I'm doing it correctly and that the answer to #2 below is a resounding "Yes!" :)
    2. Is it a bug if I'm not able to use /ListItemAllFields on folders using the server relative url?
    3. If I'm supposed to use GetByTitle as a workaround, am I discovering that Title correctly through /Properties? Seems quite circuitous and awkward. Are Titles required to be unique throughout a given Sharepoint server?
    4. If I'm supposed to use the guid, how can I use the REST interface to discover an object's guid? Once we get down to the Role Assignments and other links, the guid appears in those links but I don't know how to discover it independently if that's the
    path I should use to get the data I described above.

    Upon further research, I'll answer my own question for the benefit of some other potential future newbie.  The answer to question number 1 above is "Not exactly.".  The server relative URLs I was using corresponded to lists (which are
    returned as a collection through /_api/web/lists).  I was treating them mentally like regular folders.  That, coupled with the fact that accessing their data as I showed above returns a ListItemAllFields link, made me think that was the way to get
    the Role Assignments just as I would for files and, as it turns out, "real" folders and sub-folders created under these lists.  That was the other problem with thinking of these lists as regular folders.  So, ListItemAllFields works on
    all files and folders in a list.  However, if you want Role Assignments for the lists themselves, you can keep track of the Titles and\or Guids from the /_api/web/lists that you're interested in (in my case, all non-hidden "document library"
    type lists) and then access those Role Assignments as I discussed in questions 3 and 4 above.  For example, from the /_api/web/lists collection from my test server, the "Development" document library Role Assignments are accessable via /_api/Web/Lists(guid'cd242eeb-aafa-4efa-aecc-9bbdf8e3d459')/RoleAssignments
    or /_api/Web/Lists/GetByTitle('Development')/RoleAssignments.

  • HT3152 I have triple play cable service. Phone service is internet based. i pay monthly charge for cable provider modem. I also want to use modem for my Apple ipad2. Can I replace with another modem that will support internet based phone as well as ipad2?

    I have cable triple play service. Phone service ios internet based and depends on cable provider modem. I pay monthly charge for modem. I also want to use modem for ipad2. Is there any modem that can support both internet based phone as well as ipad2?

    If I understand you correctly, I have the same configuration.  My modem supports Internet and phone service and my television service bypasses the modem.  It does not do any routing.  It has a single Ethernet port and I plugged in an external router with a WiFi radio - Apple Airport Express.  Works like a champ.
    Configuration of the Express was difficult.  I had to plug it in to AC power and to the modem.  Then, I opened up Airport Utility and had to click "yes" for each recommendation.  Then I had to really think hard to come up with a WiFi password.  Took me a horrendous thirty seconds from start to finish!

Maybe you are looking for