Service Callout to HTTP Post Business Service?

Hi,
I have created a "Business Service" with following config,
1) Any XML Service
2) Prtocol- HTTP
3) HTTP Request Method- Post.
I have created a Proxy Service , which is "Any XML Service" based on HTTP ptotocol.
inside the message flow of proxy service i am routing to the Above Business Service passing query parameter. The business service returns an XML.
How do i make a service callout to the business service assing a query string?
I need this functionality to work because i have to call multiple business service (endpoint is a jsp which accepts query string) inside a proxy service and retreive xml from response , merge them and send it back to the client(invoking proxy service).
Thanks,
Anup

Hi Gregory,
In fact when i used route node to invoke a business service i modified "URL dynamically by setting the value in the pipeline variable $outbound", it worked here.
Same i tried on Service Callout, it did not work. Also when we create a service callout action it expects us to select either "confugure soap body" or "configure payload document" followed by
1) Request Document variable
2) Response Document variable.
What parameter should i set for above fields?
Thanks,
Anup

Similar Messages

  • Need good example HTTP POST Business Service

    Hi guys,
    I've looked into the provided Reference Implementations in JDE for HTTP Post examples, but they only provided a business service (JRH90I13) and published business service (JPRH90I0) without any C BSFN to execute them. Does anyone have possible examples of how this works?
    Thanks in advance.

    Hi Gregory,
    In fact when i used route node to invoke a business service i modified "URL dynamically by setting the value in the pipeline variable $outbound", it worked here.
    Same i tried on Service Callout, it did not work. Also when we create a service callout action it expects us to select either "confugure soap body" or "configure payload document" followed by
    1) Request Document variable
    2) Response Document variable.
    What parameter should i set for above fields?
    Thanks,
    Anup

  • 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

  • Features to isolate OSB services from just one slow business service.

    Hi,
    Here is a OSB question around a quick business service that suddenly turn to be a slow one and the impact on the overall OSB performance.
    Suppose you have a critical OSB cluster in production with many proxy and business services.
    Because of requirements, you have a specific sync http business service (web service) that has an acceptable response time around 1 secs. But suddenly the response time goes to 30 secs or even more due to some problem, generating a great impact on thread and resource consumption on OSB side.
    Suppose a http time out configuration of 2 secs on the business service is just not enough. OSB continues to crash.
    You can use OSB throttling feature but doing that you have to fix a maximum concurrency.
    If the service implementation is down, OSB can handle that using "Offline Endpoint URIs" in the operational settings of sbconsole. But in this situation the service is online accepting requests. It's just slow to respond.
    This is a hypothetical situation just to stress the problem.
    Besides business service time-out configuration and throttling and dispatch-policies on proxy/business services are there any other features that can be used ?

    Wesley,
    Ok, once the business service request is sent, the thread is freed. When the response comes, a new thread is picked up to handle the business service response. So in the mean time there's no blocking thread. Yes. It is correct.
    Just to make sure, what about the waiting synchronous http client calling the proxy service ?
    I mean, this fire-and-forget feature works only on the business service side or entirely for the proxy/business service (That separation would not make sense I suppose) ? The same case with http proxy. The request thread will be used till the BS is invoked in the route node or end-of the request pipeline. After this thread is released. Once the response comes from the http bs on a different thread, that thread will be used till the end of the responsepipeline
    eg
    Client---->Http Proxy---->Thread1{Request Pipeline--->Routenode---->End of Request actions in the Routenode--->Call BS Request} ----->Thread2{BS gets response--->Response Pipeline --->send response back to the client}
    For example, a http client is waiting for the proxy service response, but while the business service does not respond, there is no blocking thread at all in the proxy service side too ?Yes. That is true
    So, there could be many waiting http clients calling this proxy service, all http business service requests sent, and no blocking threads ?Yes.
    What would be the drawbacks of this feature ?Nothing I can think off. Therotically we will be forced to do extra over head when BS latencies are low which might of little practical impact. In that case you can change QOS=Exactly once. BS request and response will be on the same thread , but proxy response thread will be always different from that of proxy request thread no matter what the QOS is set
    Cheers
    Manoj

  • OSB - Problem using the Service Callout control in a proxy service

    Greetings,
    Using a Service Callout control in a proxy service requires to check one of the following two options: Configure SOAP Body or Configure Payload Document. Both require to write SOAP code and to assign it to variables that will be used in the Service Callout control. I found quite inconsistent to have to write SOAP code in order to use a tool which is supoposed to avoid writing Java code. In this case I largely prefer to write Java code and doing things manually. Is there any other way to use this control ?
    Many thanks in advance,
    Nicolas

    I'll try to explain again, however it seems very clear. I'm using a Service Callout control in order to call a JAX-WS web service. This web service is using a "document" style, of course. Consequently, all its operations (messages) are document-centric and they have only one parameter: the document. In order to use tha Service Callout control, one has to construct the <siap:body> element, to assign it to a variable and to provide the name of this variable in the Request Body test field of the Service Callout Properties dialog. Accortdingly, one needs to assign something like:
    <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <osb:myOperation xmlns:osb="http://www.simplex_software/fr/">
    <osb: .../>
    <osb:myOperation>
    </soap>
    Now, for those who have understood what I'm talking about, here come the question ? Is that the only way to use the Service Callout control ? If yes, this control is useless. If no, what is the other way to use the control in the given context while avoiding providing a <sopa:body> written manually ?

  • Oracle service bus cache flush/clear - business service

    Hi Everyone,
    We are currently using oracle service bus as an integration platform. We are conducting a disaster recovery exercise for on of the applications (A) integrated to OSB, but the OSB is always connecting to the primary node of the application A though the DNS at application A is pointing to the secondary node.
    We believe this is happening because OSB is caching the IP address of the application A (though it is using DNS) and keeps connecting to the same server even if the primary traffic is diverted to the secondary node.
    Can someone please let us know if there is a way we can clear the cache of the business service (used to connect to the application A) without restarting the servers?
    Thank you.
    Regards,
    Ram

    Yes, by default the JVM will cache the name resolution. You can change this behaviour by adding the TTL in the managed server startup parameters as follows:
    -Dnetworkaddress.cache.ttl=120 -Dnetworkaddress.cache.negative.ttl=10
    The above parameters mean that the JVM will cache the name resolution for 2 minutes in case of success and for 10 seconds in case of a failure.
    For testing purposes, you can reduce the ttl from 120 seconds, but when in production make sure that this value is not too low.
    Regards,
    Fabio Douek

  • B2B Support SOAP via SOAP Service and/or HTTP Posting?

    I cannot find any documentation that points to the B2B product and it's support for SOAP. Can someone point me to this documentation if any?
    If someone can answer the quick questions in the subject that would be great as well.

    ebXML standard is typically supported by all available B2B Integration products. Oracle B2B is interoperability certified by Drummond group for ebXML. ebXML offers much richer security framework compared to basic SOAP and it will be a easy change for your partners - they need to configure their B2B to talk ebXML.
    We are also planning on adding generic SOAP support in our next release. Please send me an e-mail and I can keep you posted.
    Also if you need a demo of the product, we can arrange one as well.
    Thanks - Sundar

  • OSB: Configuring business service for JMS Queue

    Hi,
    I want to produce messages into a JMS queue from OSB proxy service. I have created business service for the JMS queue. I also want to return Status code=200, Status Messgae=Success if the message is successfully inserted into the Queue. Kindly let me know how to do this.
    I tried using Service Callout to call the business service but it is not allowing me to use it because my business service is a one-way operation. So, i tried with Publish activity but my doubt is how and where to configure request payload for the publish activity. I could not find any.
    And how do i know if the message is successfully inserted so that i can send the Status=200 back to the calling proxy service.
    Kindly help in this regard.
    Thanks in advance.

    As suggested, use QoS=ExactlyOnce as RoutingOption within the Publish to business service. If there was any error it will send the flow to error handler where you can do a reply with failure to return HTTP status code=500 to the caller of the proxy service.
    If you do a reply with success the caller will receive HTTP status code=200

  • Using OWSM to secure Services based on http binding

    Hi,
    We are using OWSM Gateway in DMZ as a proxy server to communicate with systems beyond the firewall. We have two specific requirements:
    1) The BPEL/ESB services should invoke http POST/GET services on the third party systems which are located beyond the firewall.
    2) Third party services uses http POST/GET to access the BPEL/ESB services.
    My queries are:
    Are these possible with OWSM?
    For reqmnt 1, when we tried with OWSM we are getting the following error
    "No policies found for service "SID0003001/servletclasstest?Locality=Chennai.Make sure the service is registered correctly and gateway policies are up to date"
    Can any one help us out with solution. We are running on tight timelines any help is highly appreciated

    Have you resolved your issue. I am in the same situation. Can you please let me know how you have resolved your issue.

  • How to send HTTP POST message using Business Service ?

    Hi all,
    I need to call a service which accepts HTTP post, how can I achieve this using OSB Business Service ? Kindly post any documentation link related to this.
    Thank You
    Arun

    Basically to to create a business service to send to a HTTP post all you need to do to point the business service to the desired URL.
    In the OSB console you can test using the debug option. All you need to do is paste the XML you require and execute.
    If this works then you know your business services is sorted. Can you confirm you can complete up to this point?
    As Anuj correctly states you need to populate the body variable. This is the fundamental concept of OSB. All service calls request and respond using the body variable. So if you create a proxy service and route to the business service and provide NO routing. The proxy service will pass the input of the Proxy service to the input of the business service as the body has been populated by the Proxy service.
    cheers
    James

  • OSB: When does invokation from http Business Service result into an error

    Hi,
    I want to know when does invokation from http Business Service in OSB result into an error.
    I have a http based business service which is calling an external service on http url.
    I want to know when this business service is invoke/tested, what are the cases in which the invokation will result into an error.
    What does OSB read to cause the invokation an error.
    I am aware that it reads the http-response-code. If its not 200 or 0, it will result into an error.
    Want to validate this understanding and also want to know what are the other case that will cause this happen. Is it by any way dependent on body content?
    Please help. Please share any good links for the topics related to this.
    TIA.
    Regards,
    Ashish

    Hi,
    Some info here...
    http://svgonugu.wordpress.com/2011/06/15/fault-handling-in-osb/
    Cheers,
    Vlad

  • Business service

    What is Business service and when we will create Business service?
    What is the difference between Business Service and Business System?

    Hi,
    This is already explained in above posts.
    I will add just extending to above posts with some useful reference links also
    Business Service Vs Business System
    Business Service vs Business System in Integration Directory.
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D44%26threadID%3D21711%26messageID%3D184694%23184694
    Business System
    A business system is an actual application system in a system landscape. A business system (service) comprises information about the inbound and outbound interfaces and the software component versions of the business system.
    You usually use business system services when configuring internal company processes.
    Business Service
    If you want to address an abstract business entity as the sender or receiver of messages, choose this service type.
    Using a business service, you can define the technical or business subunits of the companies involved and then assign them the relevant interfaces.
    You usually use business services when configuring cross-company processes. In this case, you only make your interfaces known to the business partners involved and either do not make any details about your own system landscape available, or only specific details. 
    For example, you can define RosettaNet Partner Interface Processes (PIPs) as business services.
    http://help.sap.com/saphelp_nw04/helpdata/en/3e/60653f0c9fa075e10000000a114084/frameset.htm
    Thanks
    Swarup

  • Can a business service call a proxy service in OSB

    In Oracle service bus, can a business service call a proxy service and if yes , what is the scenario?
    Thanks in advance
    Priya

    Yes a business service can call a proxy service......for example set your PS as http proxy service and set the endpoint url of PS in the business service..... Lets say when you have three service callouts to be done...the third service callout needs to retried in case of any failures, then you may move the third service callout to a new proxy service and use the buisness service for calling it,,, use the BS retry settings for retyring..

  • Business service invoquing a simple servlet

    Hi all,
    I'm working with ALSB 2.6. I have a servlet that receive 2 simple parameters (GET or POST) and gives back a string "OK" or "KO".
    I create a new business service that invoque this servlet, select Messaging Service; text - text; transport http - the endpoint uri and so.
    When I try the uri of the busines directly it works fine but when I test the business service it does not.
    I have created a proxy service (that route to the business service) with a Log action for the $body, and from an html with a form (that works fine for invoking the servlet) I have inoked the proxy service and get:
    <Body xmlns="http://schemas.xmlsoap.org/soap/envelope/">param1=value1&param2=value2</Body>
    I thought that writting this in the test console of the business service it must work fine but the servlet is called without receiving the params.
    Where is my error???
    Thanks for your time
    David
    Edited by aldreas at 09/20/2007 8:03 AM

    Sorry for the brake, I'm back with this after a few time working in another (urgent) things.
    What I need is to invoke a servlet from a busines service passing parameters to the servlet and the problem I have is that the servlet does not receive the params that I try to send.
    I can assign the
    $outbound/ctx:transport/ctx:request/http:query-string
    to a variable and work with it but that's not my problem. The question is: how can I do for sending parameters to a servlet that is registered as a bussines service??
    Well, I can add a a routing option action and set the URI manually, but... is that the only way for invoking a servlet sending parameters???

  • Message procesing OSB rename after service callout error

    Hi,
    I have an error after make a service callout, i can't do a rename in the context variable that i create for the response of the service callout.
    I have this
    SERVICE CALLOUT.
    Service:.....
    Operation:.....
    requestVariable: inputVar
    responseVariable: outputVar
    Rename:
    Xpath:/*/return/items
    Variable:outputVar
    local: someNew
    this a example of outputVar
    <S:Body      xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <ns2:buscarSaldosExample xmlns:ns1="http://some.services.finanzas/">
         <return>
         <existWarnings>false</existWarnings>
         <items xsi:type="ns1:resumenSaldo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <categoriaCnt>PERSONAL</categoriaCnt>
         <estadoCnt>A</estadoCnt>
         <saldoCnt>506</saldoCnt>
    </items>
         <name>buscarSaldosExample</name>
         </return>
    </ns2:buscarSaldosExample >
    </S:Body>
    The rename never works out, its like he didn't see the outputVar
    if I make a assing after the service callout and assing all the content in
    outputVar in another variable named outPutVar2 the rename in outPutVar2 works just fine...
    i dont know if this is a mistake in osb or is mine.
    Please help out with this error
    Thanks in advance.
    Gustavo.
    If you need an example, let me knwo and i will post all the details.
    Thanks.

    Hi hisaak, Thanks for the answer again..
    your test was right, is the xpath, if i use //return/items works out fine!. Thanks for that.
    I was reading in some books that // in osb it has to be avoided for perfomance issues, i just
    want to know if /*/*/return[1]/items is the same of //return/items.
    I used baseX6 for testing the Xpaths and Xquerys, and if i put the xml give above as input
    and i try //return/items gives the same result as /*/*/return[1]/items, but it doesn't work out
    in osb, why can be that??
    Thanks agains for your answers.

Maybe you are looking for

  • Signature again- personal Curve 3G thinks it is in an enterprise?

    Hi I am trying to change the signature in my 9300 Curve 3G. I use Gmail / GoogleSync. I must have set the email sig at some time, but now cannot find how to adjust it. I have also just bee upgraded (ugh!) from OS 5 to OS 6 (and HATE it, BTW). Howver,

  • Invoice Reduction Issue

    Hi Gurus,            I am facing one problem in invoice reduction where solution is required. If the vendor send the invoice of lesser value, then the value proposed by the system, the system is not permit to enter the invoice, (even if try to enter

  • Aperture Can't Open Photos Library

    On my iMac 24" (Mid 2007) 2.4 GHz Interl Core 2 Duo running OSX Yosemite Version 10.10.3: Aperture 3.0 will not open Photos 1.0 library

  • X10.4 wont recognize external FW with X10.3 installed as startup disk

    I have a G5 double processor and need to run my AVID Xpress software, which requires X10.3 to run. i have bought an external firewire drive and installed x10.3 on a partition, but my G5 does not show it as a choice when I open system preferences and

  • HT1391 how do I sync my library with my i pod

    Recently purchased music from i tunes.  Can see the music in the library.   Unable to move tunes from library to ipod......duh