REST (HTTP POST) Proxy Service in OSB 11g

Hi everyone,
I am pretty new to Oracle OSB, but I was searching through the forum but could not find any "guide", "tutorial" on how to implement a REST - HTTP Post for a Proxy Service. If anyone know of any disccussions prior, please send me the links!
I have created a SOAP business service based on a WSDL, I have it working with a SOAP proxy service, but I want to implement a REST - HTTP Post proxy service to talk to the same SOAP business service. Can this be done? And if so, can someone guide me on how to create the HTTP Post Proxy service? I have tried implementing a proxy with the relative uri, http, but just could not get it to work, any help would be appreciated!
THANKS!
-ML

Hi!
A few links to help you on your way :
http://blogs.oracle.com/jamesbayer/2008/07/using_rest_with_oracle_service.html
http://blogs.oracle.com/christomkins/2008/10/a_look_at_oracle_service_bus_1.html
http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html
http://www.oracle.com/technology/sample_code/products/osb/index.html (REST-2-REST Routing )
http://wiki.oracle.com/page/Chapter+13+-TheOracle+Service+Bus
http://biemond.blogspot.com/2009/05/osb-rest-service-with-xml-json-output.html

Similar Messages

  • How to configure proxy services in OSB for Rest based services?

    how to configure proxy services in OSB for Rest based services implemented using Jersey (Rest).
    The Client need to contact OSB proxy servies by posting application/xml using jersey client and OSB proxy service will call the OSB business service.
    i would like to know how to get this request in OSB proxy service and send it to the business service and get the response back.

    I would suggest you refer to the below links:
    https://blogs.oracle.com/jeffdavies/entry/restful_services_with_oracle_s_1
    https://blogs.oracle.com/jamesbayer/entry/using_rest_with_oracle_service
    Hope this helps.
    Thanks,
    Patrick

  • How to create RESTful proxy service in OSB?

    How can I write RESTful web services in OSB?
    We are using OSB 11g.
    I know how to create SOAP proxy service in OSB. I just want to switch to RESTful services from SOAP.

    http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html
    http://blogs.oracle.com/jamesbayer/2008/07/using_rest_with_oracle_service.html
    http://biemond.blogspot.com/2009/05/osb-rest-service-with-xml-json-output.html
    http://blogs.oracle.com/knutvatsendvik/2009/11/how_to_specify_ampersand_in_a_rest_query-string_osb.html
    Regards,
    Anuj

  • Http post issue in soa suite 11g  with 10g wsdl

    I have 10g process that has http post wsdl as below. When I'm trying to create a project in 11g 11.1.1.4 with same wsdl, getting the following error at building the project. "Error(12,61): Parse of component type files failed, check the adf-config.xml file : "Error at line 34 char 64: Malformed WS Binding port. Missing # between namespace URI and service/port names."
    I'm sure that http post mechanism is changed in 11g, but can you please help what exactly is wrong ?
    <?xml version="1.0"?>
    <definitions name="HTTPPostService"
    targetNamespace="http://services.otn.com"
    xmlns:tns="http://services.otn.com"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
              xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
              xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    >
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    TYPE DEFINITION - List of types participating in this BPEL process
    The BPEL Designer will generate default request and response types
    but you can define or import any XML Schema type and use them as part
    of the message types.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://services.otn.com"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="Postreq">
    <complexType>
    <sequence>
    <element name="Order_Update_Request">
    <complexType>
    <sequence>
    <element name="ORD_ID" type="string"/>
    <element name="E_MAIL" type="string"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    <element name="Postresp">
    <complexType>
    <sequence>
    <element name="Order_Update_Response">
    <complexType>
    <sequence>
    <element name="RETURN_STATUS" type="string"/>
    <element name="MESSAGE_TEXT" type="string"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    MESSAGE TYPE DEFINITION - Definition of the message types used as
    part of the port type defintions
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <message name="HTTPPostServiceRequestMessage">
    <part name="payload" element="tns:Postreq"/>
    </message>
    <message name="HTTPPostServiceResponseMessage">
    <part name="payload" element="tns:Postresp"/>
    </message>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PORT TYPE DEFINITION - A port type groups a set of operations into
    a logical service unit.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- portType implemented by the HTTPPostService BPEL process -->
    <portType name="HTTPPostService">
    <operation name="IScript_Update_Order">
    <input message="tns:HTTPPostServiceRequestMessage" />
    <output message="tns:HTTPPostServiceResponseMessage"/>
    </operation>
    </portType>
    <binding name="HTTPPost" type="tns:HTTPPostService">
    <http:binding verb="POST"/>
    <operation name="IScript_Update_Order">
    <http:operation location="/PSIG/HttpConnector?From=PSFT_XINBOUND&amp;MessageName=ABC_ORD_UPDORDER&amp;MessageType=sync&amp;MessageVersion=v1"/>
    <input>
    <mime:mimeXml part="payload"/>
    <mime:content type="text/xml"/>
    </input>
    <output>
    <mime:mimeXml part="payload"/>
              <mime:content type="text/xml"/>
    </output>
    </operation>
    </binding>
    <service name="HTTPPostService">
    <port name="HTTPPost" binding="tns:HTTPPost">
    <http:address location="http://myserver.mycompany.com"/>
    </port>
    </service>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARTNER LINK TYPE DEFINITION
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <plnk:partnerLinkType name="HTTPPostService">
    <plnk:role name="HTTPPostServiceProvider">
    <plnk:portType name="tns:HTTPPostService"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    Can you make sure your helloworld is using adf bindings as mentioned in thread Re: Urgent :: 11g Invoking Composite from Java/From Webservice Proxy

  • How to retrieve the java object in a proxy service in osb -- Plz help

    Hi all,
    I have a singleton java class which runs whenever the weblogic server gets started and store the output in its object. I need to access this java object from a proxy service in osb.
    We tried using java call out and retrieved that object but we couldn't know how to parse that object into XML.
    We are not sure of using the java call out in osb to solve this purpose because whenever we use a java callout, that particular java code will run which is not the case of singleton class.
    So kindly help us how to retrieve the java object which holds the output without running the java code every time because its already run and holding the output in its object.
    Regards
    Prabhu

    here the doc http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/context.html#wp1106656
    but I guess you are already at the stage of getting a POJO in a first Java Callout and passing the POJO to a second Java Callout, which should then return it to OSB as a XMLObject.
    My recommendation is to write a Java function which returns a XMLObject and uses a XMLCursor to populate it with the values of the POJO.
    An XMLObject returned to the OSB is automatically transformed in a "XML" variable (which in reality is represented as a XMLObject in the Pipeline context)
    Here some code sample:
    http://www.javamonamour.org/2010/09/how-to-create-xmlobject-using-xmlcursor.html

  • Proxy Services in OSB

    Hi All
    I have an small confusion regarding Proxy services in OSB. Do we have to create a Proxy service from some wsdl file only or can we create a proxy service without a wsdl in OSB and If yes then how to invoke it from BPEL process.
    Thanks,
    Suryaveer

    I would suggest you refer to the below links:
    https://blogs.oracle.com/jeffdavies/entry/restful_services_with_oracle_s_1
    https://blogs.oracle.com/jamesbayer/entry/using_rest_with_oracle_service
    Hope this helps.
    Thanks,
    Patrick

  • How to specify the JMS Client ID in Proxy Service of OSB 11.1.1.5 version ?

    Hi All,
    I am looking for an option to set the JMS clientID for a JMS Proxy services in OSB. Can this feature available in OSB 11.1.1.5 version?
    Thank you,
    Ram.

    These links will helpful for you.
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_train.html
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_train.html

  • OSB proxy service Calling OSB proxy service from BPEL

    Dear team,
    Wehave a requirement to call a Wsdl based OSB proxy service with sb protocol from SOA Composite from BPEL process.
    We created a wsdl based OSB proxyservice with sb protocol and deployed to OSB development server.
    We tried to export the wsdl and corresponding xsd files. sbconfig.jar got created.
    When we extracted the sbconfig file and placed the wsdl and xsd into the SOA composite.
    When we are trying to create a partnerlink, that OSB proxy service wsdl is not showing up.
    Please suggest.
    How to call OSB proxy service from BPEL..

    Hi,
    Here either you need to change the protocol from 'sb' to http or use the Direct Binding in soa-composite.
    please refer this links:
    Can a business service call a proxy service in OSB
    http://biemond.blogspot.in/2009/03/calling-osb-services-from-bpel.html
    BPEL to OSB using sb transport protocol
    Thanks,

  • SFTP PROXY SERVICE IN OSB

    Hi,
    Created sftp proxy service in OSB
    In sftp transport page ,managed server option is not available,pls tel me why this is happening,
    Also expain me the use of manged server option SFTP proxy.
    Regards
    Abhi

    I never thought archiving to be on the remote side... I think archiving is designed to be local...
    Have a look at this...
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Comment out actions in side proxy services in osb

    Do any body know how to comment out certain actions in proxy service in OSB?
    For eg: I have assign, insert, assign, ..route....
    I want to comment out second assign but don't want to delete it, since i might need it later. Can I manipulate the generated code to comment?

    What I meant is that I tried it with a very simple pipeline, a pipeline with one stage and one action. I added the comment tags around that action and it "disappeared" from my pipeline. Later I removed the comment tags and my action was there again.
    But it could get complicated with a pipeline with many stages and actions (that's what I meant by complex). There could be dependencies between the actions (in one you create a variable that you use later in another action), etc.
    I assume you're working directly on the web console. The files are stored in your server's file system but I really advise you against modifying these files directly.
    With your installation of OSB you have an Eclipse (Workshop) with plug-ins for the OSB. You can export your project from the web console and import it into eclipse. You can work on eclipse and then publish your changes to the server.
    There in eclipse you have your files in your file system and you can open them in your favourite text/xml editor. Or inside eclipse you can just right click on the proxy service and choose "open with -> text editor".

  • Can anyone help me what is the use of business and proxy service in osb?

    Hi,
    I am new in Osb what is the use of business service and proxy service in osb.
    I know little bit proxy service is used for actual message flow. I saw some project proxy service invoking the (using service callout,routing and publish) service,but the wsdl of the services of the proxy and business service is same.
    Please can anyone explain the flow while executing through soapUI?(that means it will hit 1st business services or proxy service)
    I have this project structure
    business service
    1.reference.biz----> this is the wsdl of ex:reference.wsdl
    2.external.biz----> this is the wsdl of ex:external.wsdl
    proxy service
    1.referece.proxy--->this is the wsdl of ex:reference.wsdl(in this proxy we are routing to reference.biz proxy service both contains same wsdls why?)
    xqueries of request and response.
    Best Regards,
    Raju.
    Edited by: 996674 on Apr 2, 2013 10:53 PM

    Hi Raju,
    Proxy Service - It is the starting point of you OSB application which deal with receiving messages, inducing logic in it like transformation, if-else, replace, java call outs,etc. You can put in your program logic here and then invoke a business service to route it to your Database or to any other queue as per your requirement.
    Business Service - It is generally used for routing purposes, like inserting the input in your Database or sending it to a different queue or BPEL process, etc..
    Cheers,
    Rit

  • OWSM user name token service policy for a proxy service at OSB

    Hi Friends,
    I am facing an issue while trying for the OWSM user name token service policy Authentication for a proxy service at OSB. I am using the PS4 SOA suite with AIA foundation pack. very first I am login into the EM console and choose the domain<soaosb_domain> form web logic domain I moved to security->security provide configuration. Inside the security provide configuration we have to key store section and I expand that and we have a configure button inside the keys tore. I click that button and it open a new page. In that page I got the Java key store (JKS) as the default key store and in the access Attributes I keep the default key store path and fill password and confirm password fields. Then in Identity certificates I fill the signature key and Encryption key with key Alias as 'orakey' and same password which I am mentioned at access Attributes. I got the message like the key store is created successfully. Then I restarted the server and again I am login into the EM console and choose the domain<soaosb_domain> form web logic domain I moved to security. In security I choose the credentials. In credentials we have create key. In the create key I add the key as hari-key and provide the hari as a user and his password.
    While trying to test the proxy service i am getting the [OSB Security - OWSM: 387253] Failed to initialize OWSM Credential Manager. Please validate the Key store Configuration.
    can anyone please look at this and suggest me how can I proceed for this.
    Thanks
    Hari

    anyone please respond to the above request.
    Thanks
    Hari

  • Need JAVA API to list down all the Proxy Services in OSB Console 11g

    Hi,
    I need a java API to List down all the Proxy Services present in OSB Console for SOA 11g (11.1.1.5). I am in a situation where I cant use python script for the same.
    any help will be much appreciated.
    Thanks in Advance,
    Ravi
    Edited by: 899443 on Oct 1, 2012 4:13 AM

    AFAIK it is proprietary.
    What I do in a similar situation is to form XML for the services, package them into JAR the same way as an import JAR is packaged (creating ExportInfo resource, ...) and deploy with standard WSLT script. Works for simplest services only (direct proxies mostly) but I can also form security, alerts, throttling etc etc etc -- all in one shot.
    Out of sheer interest, may I ask you a question? Why do you need to create OSB services from Java?
    Vlad
    http://vladimirdyuzhev.com

  • Urgent ! Creating https proxy service in OSB

    Hi All,
    I am trying to create a proxy service with https(1 way) in OSB.I followed these steps,or rather tried.I am trying to use the default SSL keystores(Demo Identity and Demo Trust)
    I made sure that the demonstration Identity and Trust keystores are located in the WL_HOME\server\lib directory and configured by default and the cacerts file in the JAVA_HOME\jre\lib\security directory.
    But when I tried to create a service key provider in OSB I get this error "<There is no PKI credential mapper provider configured in your security realm. Service key provider management will be disabled. Configure a PKI credential mapper provider if you need service provider support. This is typically the case if you have Oracle Service Bus proxy services with web service security enabled or outbound 2-way SSL connections.>"
    And when i try to create a PKI Credential mapper then I encounter this "This page is used to create a PKI credential mapping.
    A PKI provider must be created and configured before a PKI credential mapping can be created."
    Is there anything that I am missing?
    Please advice ASAP.
    Thanks
    Sridhar

    I have done this in my development server and it works fineOnly one service can listen on one port and hence you should assign unique ports to each server in Weblogic domain (including Admin server). Two weblogic servers cann't listen on one port. Make sure that ports assigned to the servers are not already in use by any other application/service including any other Weblogic server.
    Please let me know for 2 way SSL,and to add the Service Key Providerhttp://download.oracle.com/docs/cd/E17904_01/web.1111/e13707/ssl.htm#i1200848
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15866/transport_level.htm#i1079076
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15867/service_key_providers.htm#OSBAG982
    Regards,
    Anuj

  • How to configure Security services in OSB 11g..

    We are integration OSB with BANK application, we will be using SSL certificate for the same.
    Please help how to configure security policy in OSB.
    I checked below link policy defination
    http://tim.blackamber.org.uk/?p=825
    but in OSB proxy service we are not able see Policy button.
    Please help.
    Thanks,
    Mihir

    Please post your query in SOA Suite forum -
    SOA Suite
    Regards,
    Anuj

Maybe you are looking for

  • NetStream.send not working in Flash Player 11.2 Beta with Cirrus, Please confirm if it is a bug

    Title NetStream.send not working in Flash Player 11.2 Beta with Cirrus, Please confirm if it is a bug or feature Description Problem Description: NetStream.send can not send data to peerstreams when using with cirrus. Conflict with documents. Sorry f

  • No Dashboard Display under Reports and Analytics - AC 10.0

    Hello, When I try to access the Dashboard reports under Reports and Analytics menu in NWBC, I do not get any display. Instead, I see something like x at the top left hand corner and it keeps loading indefinately. I have instead Adobe Flash Player 10.

  • How to create Messages with Value Bindging

    Hello, i have an custom component and want to show all message for this component: <h:column> <t:messages binding="#{FolgeterminMessages.messages}" globalOnly="false"></t:messages>                                                                      

  • Crop/ Straighten, but not both!

    Really weird: I straighten a photo. Then I want to crop it, but when I click the crop tool (after doing the straitening), ACR, un-straightens the image! I'ts like it's saying you can do one or the other, but not both.

  • Airport Express will not start up (stays flashing amber)

    Hello All I know this topic has been discussed before but none of the answers seem to fit my problem, here's my story, Two months ago all was working fine when I notice the Airport base station would go from steady green to flashing amber. By the tim