OSB and REST

Hi everyone,
I have the requirement of develop a proxy service that consumes a RESTful service of another system called "Provider", the integration is like this, its very simple.
CLIENT >>>> OSB >>>> PROVIDER
   soap     --      soap      --   http
the problem i have is i dont know how to call a RESTful service via POST method , i have seen various examples but they only specifies to consume the REST service via GET method and not another method, to be more specific, i dont know how to do the mapping of the xml request to a REST service request in the case of a POST method, because the REST service can not receive a xml, which of the variables (indbound, outbound, body) of the proxy service i do the mapping of the xml input for pass the values to a RESTful SERVICE. ???
I will pass what i have...
this xml for example
<OrderNotificaction>
      <OrderNumber>12345</OrderNumber>
      <OrderStatus>20</OrderStatus>
</OrderNotification>
for OrderStatus > 20 = shipped
for OrderStatus > 10 = handling
and the REST service is consumed in this url, with this structure
http://host/api/orders/number/status
the mapping will result in some like this, if im not mistaken
http://host/api/orders/12345/shipped
i have to pass the values to the url with a routing options action to concat the parameters? or i can put the values of the xml in a variable of the proxy service for POST method? or both?
or a REST service can receive a xml request?
thanks in advanced
regrads

Try this:
1. Create a business service to call the Provider service.
2. In the Proxy route node, add a route action to invoke the above business service.
3. In the Route action add routing options and set URL to a new value, you can write XQUery expression to create the endpoint as required (in your case http://host/api/orders/12345/shipped )

Similar Messages

  • OSB to RestFul with Custom Header and Authentication

    I am trying to add to OSB a RestFul service which requires authentication and custom http headers.
    I am able to register the RestFul service as Business Service with following parameter
    - Service Type: Messaging Service
    - Request Message Type: None
    - Response Message Type: Text
    - Http Request Method: Get
    - Authentication: Basic (Service Account)
    When I test the Business Service in the Test Console, I passed in the custom http header and the content type and it did return back the JSON object I was expected.
    However when I then try to create a Proxy against it with the following parameter, I had problem running it in the Test Console. Although I did pass in the http header it still complained that I didn't pass in the header. And as for Authentication, I was not even able to specify a service account like how I did in Business Service.
    - Service Type: Messaging Service
    - Request Message Type: None
    - Response Message Type: Text
    - Http Request Method: Get
    Any ideas?
    Thanks

    What type of service account are you using ? If it is static you need specify the username/password in the PS. Also you do not specify service account for a proxy service. What is the error in the logs.
    If you have to pass the HTTP header use transport headers in your request, select request type as http and then set the content type and custom http header.
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/modelingmessageflow.htm#i1125373

  • 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

  • OSB with Rest JSON webservice

    Hi, I am new to OSB and working on making OSB as a pass thru for RestFul JSON webservices. I am able to get JSON response back in case of GET request however for POST request I am getting this error:
    <con:fault
    xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380000</con:errorCode>
    <con:reason>Unsupported Media Type</con:reason>
    <con:location>
    <con:node>AegisRouteNode</con:node>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    I have used transport header in response action to convert content type to application/json. I am not sure why it works perfectly for GET request but fails for POST.
    I appreciate any help that can be provided. Thanks.

    > I have used transport header in response action to convert content type to application/json
    Why in response? o_O
    My understanding of what is happening is that the remote server rejects your POST with HTTP 415. I.e. you need to set the Content-Type transport header in request pipeline.
    For GET though the server may just ignore the Content-Type header or lack thereof, and that's why it may work.
    Try to point your call via Fiddler to see the actual HTTP request and response, it should give you the idea what's going on.
    Vlad
    http://vladimirdyuzhev.com

  • HT1766 My ipod 4g keept crashing so then i read on this website to go to settings and rest everything. And when i did everything on my ipod got deleted.I tried restarting it but i didnt restore my ipod before everthing got erased. How can i get it all bac

    My ipod 4g keept crashing so then i read on this website to go to settings and rest everything. And when i did everything on my ipod got deleted.I tried restarting it but i didnt restore my ipod before so everthing got erased. How can i get it all back???

    Restore from backup if you have one:
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • 1 Admin console to manage OSB and SOA installed on different servers

    Dear All,
    We are planning to have OSB installed on Host 1 and SOA server installed on Host 2. But there will be one Admin console to manage these 2 for the ease of maintenance. When i was trying to install this configuration I had few issues. Hope SOA experts can help me with the configuration.
    1)
    As SOA and OSB are installed on 2 different host both the servers must have weblogic installed as pre requisite. So I will have
    on host 1:
    http://host1:7001/console
    http://host1:7001/sbconsole
    On host 2:
    http://host2:7001/console (this is redundant)
    http://host2:8001/soa-infra
    2) Is it possible to inactivate http://host2:7001/console ? and add SOA server running on host2 to http://host1:7001/console. In the sense, I would like to control the SOA server from host 1.
    Issue No :2
    When I create a domain on Host 1 I just get the options for OSB and not SOA. It is obvious as SOA is not installed on Host1. but if that is the case, Is it possible to add SOA server running on host2 to host1. Is it going to be a cluster?
    Is this configuration seems realistic? Has anyone implemented. Any pointers please.
    Reagrds,
    Aani

    Hi Aani,
    Please go through the blog series -
    http://blogs.oracle.com/reynolds/2010/09/installing_an_11g_soa_cluster.html
    You may also refer EDG -
    http://download.oracle.com/docs/cd/E17904_01/core.1111/e12036/toc.htm
    Regards,
    Anuj
    Edited by: Anuj Dwivedi on Feb 23, 2011 9:14 PM

  • OSB and BPEL Capacity Planning

    Guys,
    I am looking for a start point to begin a capacity planing of OSB and BPEL infrastructure.
    What are the parameters to take in account?
    How many managed servers?
    RAM?
    CPU?
    I know that some answers might be shallow because there are so many factor to work with, but I need a small guidance.
    Anyone?
    Thanks a lot

    You can't expect a serious answer to your question. With so many unknown factors in place ...
    However, if we stay on this "general level", then based on my experience I can easily say that OSB is not greedy at all. You can handle tens to hundreds of requests per second on a retail hardware. Of course, it all depends on the character of your services. The more complexity (XQuery, XSLT, service callouts, java callouts) you add to your services the more power you need.

  • How to configure osb and soa in single domain

    Hi all,
    hope all are fine.
    sorry if this question is already posted.
    I installed wls 10.3.6 and osb 11.1.1.6 & SOA 11.1.1.6 and domain cofiguration also successful.
    in domain cofiguration i selected both osb and soa.
    all (wls,osb,soa ) servers are up but soa_infra was down. I am unable to see soa folder in em.
    where is the problem please provide solution for this...
    thanks in advance.
    Thanks
    Mohan

    Hi Harsh,
    I tried with(developer template) that but again soa_infra was down. i am getting user messaging services.
    admin server logs are
    oracle.mds.lcm.exception.MDSLCMException: MDS-01330: unable to load MDS configuration document
    MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "soa-infra-store" is invalid.
    ORA-04063: package body "DEV_MDS.MDS_INTERNAL_SHREDDED" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "DEV_MDS.MDS_INTERNAL_SHREDDED"
    ORA-06512: at line 1
         at oracle.mds.internal.lcm.deploy.DeployManager.deploy(DeployManager.java:733)
         at oracle.mds.internal.lcm.deploy.DeployManager.startDeployment(DeployManager.java:204)
         at oracle.mds.internal.lcm.MDSLifecycleListenerImpl.start(MDSLifecycleListenerImpl.java:215)
         at oracle.mds.lcm.weblogic.WLLifecycleListener.preStart(WLLifecycleListener.java:77)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
         at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
         at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:283)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:144)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load MDS configuration document
    MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "soa-infra-store" is invalid.
    ORA-04063: package body "DEV_MDS.MDS_INTERNAL_SHREDDED" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "DEV_MDS.MDS_INTERNAL_SHREDDED"
    ORA-06512: at line 1
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:959)
         at oracle.mds.config.PConfig.<init>(PConfig.java:758)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:787)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:848)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:491)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:438)
         at oracle.mds.internal.lcm.deploy.DeployManager.deploy(DeployManager.java:516)
         ... 27 more
    Caused by: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "soa-infra-store" is invalid.
    ORA-04063: package body "DEV_MDS.MDS_INTERNAL_SHREDDED" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "DEV_MDS.MDS_INTERNAL_SHREDDED"
    ORA-06512: at line 1
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:953)
         ... 33 more
    I installed rcu correctly and db is up and i installed following combination
    oepe-wls-indigo-installer-11.1.1.8.0.201110211138-10.3.6-win32
    ofm_rcu_win_11.1.1.6.0_disk1_1of1
    ofm_osb_generic_11.1.1.6.0_disk1_1of1
    ofm_soa_generic_11.1.1.6.0_disk1_1of2
    is there any mismatch combination.
    Thanks
    Mohan
    Edited by: Mohan SOA on Sep 12, 2012 12:39 AM

  • OSB and SOA Server (Mediator) Design question

    As OSB is the strategic ESB and is used for external services does it make sense that all communication must go out via the OSB.
    For example if I have a request that comes in gets routed through the OSB and then calls a backend composite which contains a BPEL that sits on the Oracle SOA server that calls multiple external services (CRM, SAP etc..) Would all the calls out from the BPEL then go back to the OSB and out to the external services (via proxy/business services.) This seems to add a lot of network hops to the whole architecture.
    I can't really seem to find a diagram to explain this but an external service consumer could call the Oracle SOA stack that will come in via the OSB (for security gateway as OWSM 11g doesn't support gateway yet.) Then get transformed into the CDM and then passed on to the Oracle SOA server that has a composite service with BPEL that orchestrates multiple calls to internal and external services. The external ones requiring a transformation back into the service providers format.
    How does this flow work?

    If you are talking to external B2B systems you should use the Oracle B2B Server, have a look at this link,
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/b2b_intro.htm#CEGGAGJA
    Section 1.6 in there gives a good example of doing just that. The OSB mediator is responsible for talking between CDM's in this case so it does some internal work, within one CDM set of services and then when ready the mediator translates from CDM to the format needed for the B2B. The B2B Server then does all the clever stuff needed to talk to the B2B partner.
    In the internal case where the call is within the Enterprise the Oracle documentation states that there may be cases when doing this translation from CDM to legacy format may take place within the SOA server but recommends that it is normally done using the mediator in the same way as with partner calls. The 11g developer documentation states "The stated direction by Oracle is for the Oracle Service Bus to be the preferred ESB for interactions outside the SOA Suite. Interactions within the SOA Suite may sometimes be better dealt with by the Oracle Mediator component in the SOA Suite, but we believe that for most cases, the Oracle Service Bus will provide a better solution and so that is what we have focused on within this book."
    Just what those exceptions are is an interesting question. If you have a CDM and all of your legacy world has translators you will spend all of your time hoping up to the mediator and back down maybe that is the exception. If everything is using the mediator then the SOA orchestration power is lost. If on the other hand most of your system lives within a canonical schema and there is one exception perhaps you make it pay the price for non-conformance.

  • OSB and SAP integration using XML web services

    Hi Team,
    We are designing solution for asynchronous and synchronous scenarios integration between OSB and SAP using web services.
    Can you please provide some pointers which tells about how OSB and SAP integration works.
    For an example:
    If we are designing the above scenario between SAP PI and SAP ECC, we know the below communication protocols are avilable:
    1.Proxy
    2.RFC
    3.IDOCs
    And also we know how adapters will get connect.
    Now ODB wants to connect to SAP to send and receive data. Please help me with information like:
    1. Is Proxy, RFC or IDOCs are applicable for OSB as well?
    2. How webservice scenarios can be implemented?
    Thanks in Advance.
    regards,
    Vicky

    Hi,
    >>>and what are the Forms ? for SAP Business Connector Related Postings ??
    try WM (webmethods forums) or here since this is the only middleware related forum on SDN
    >>> I have a requirement to integrate sap to non-sap with Business Connector !!
    excellent
    >>>We need to Generate the SAP Data In xml Format ? and the Non-sap System can Understand Only XML Formated data.
    fairly easy
    >>>>Is there any way Business Connector Box can Pull the XML file from R/3 Application Server and store the file in the Business Connector Server. from that How do we Sent XML file to Non-sap. How do we Integrate ??
    business connector has both IDOC and RFC adapters so it can
    receive data from SAP (IDOC, RFC), send data to SAP (IDOC, RFC)
    and pull data from SAP (RFC only)
    >>>>what transaction code will trigger this event ? I mean is ther any SAP Transaction Code to Integrate Business Connector?
    either transaction from SAP (for sending IDOCs for example) or you can schedule (via BC scheduler)
    an RFC call to SAP that will fetch the data and put it in an XML file
    good luck,
    Regards,
    Michal Krawczyk

  • [OSB and OWSM] - External Web service stacks and frameworks

    Hi everyone ! I'm starting to read about OSB and OWSM and I'm having some doubts. I've some developments of Web services with external Stacks like CXF, JBossWS, Metro and I'd like to ask some questions:
    1- Will I be able to productively leverage all features of OSB and OWSM like creating a proxy service to add WS-* standards policies and features (WS-Security, for instance) even with these web services implemented in different stacks other than Weblogic's ?
    2- If it is possible, do these web services need to be deployed at the Weblogic server to enable the OWSM and OSB to work effectively ?
    3- Even if it is possible to use the OSB and OWSM nicely with webservices developed at external stacks and deployed at other application servers is there any reason to quit using these external web service stacks in favor of Weblogic's (like features only enabled on OSB/OWSM when the services use the Weblogic stack) ?
    I suppose that if I ignore the JAX-WS stack from Weblogic and use an external framework (like CXF) I'll lose most of the application server administration capabilities since the Weblogic server won't be able to recognize the CXF stack as it does with its own.But, the main doubt I'm in is, since OSB and OWSM might be used with external providers I probably won't need to develop my web services using the Weblogic implementation (which my team does not yet know) since there will be no features of the OSB and OWSM which can only be used with the Weblogic's stack. I would like, please, to know your oppinions about these considerations. Sorry about the long post and possible errors (I just started learning).
    Thank you!

    Hi Lupan,
    I can speak mostly to OWSM as my experience with OSB is small thus far.
    +1- Will I be able to productively leverage all features of OSB and OWSM like creating a proxy service to add WS-* standards policies and features (WS-Security, for instance) even with these web services implemented in different stacks other than Weblogic's ?+
    OWSM (10gR3) has two types of policy enforcement point (PEP) -- Gateway and Agent. The Gateway acts as a remote proxy and is neutral to the service implementation technology as long as it adheres to SOAP 1.1. In this regard you can use OWSM freely with CXF, MS implementations, etc. Agents run in-process with the service and thus have far greater restrictions on what service implementation frameworks and containers that are supported. There is some certification for AXIS 1.x running in OAS and Tomcat; but practically speaking, my recommendation for Agents is to only use within OAS 10gR3 where it is built in (and using OC4J Web Services through JAX-RPC).
    OWSM 11gR1 initially supports only agent-style (in process) PEP and is built-in to Fusion Middleware and WLS. It is only for Fusion and WLS Web Service implementations.
    OWSM is quite full-featured for WS-*.
    +2- If it is possible, do these web services need to be deployed at the Weblogic server to enable the OWSM and OSB to work effectively ?+
    "No" if using OWSM Gateway PEP. A qualified "Yes" if using OWSM Agent PEP.
    +3- Even if it is possible to use the OSB and OWSM nicely with webservices developed at external stacks and deployed at other application servers is there any reason to quit using these external web service stacks in favor of Weblogic's (like features only enabled on OSB/OWSM when the services use the Weblogic stack) ?+
    There is the manageability that you mention, but also there is the identity propagation scenario and tight security integration. Both OAS and WLS hosted services in the native stacks (JAX-RPC and JAX-WS) allow sophisticated and secure passing of identity in the request -- for instance, via SAML Assertions in the WS-Sec header -- and built-in capabilities to map the passed identity into the running service's Subject (i.e. enabling JAAS security etc.).
    In my experience this type of identity propagation functionality has either been absent or less complete in other typical implementation frameworks not closely aligned with the container security mechanisms.
    Hope this helps,
    Todd

  • Running OSB and SOA Suite as Windows Services?  Node Manager

    Hi,
    Based on our current hardware configuration, we need to deploy our SOA Managed Server and Admin Server on the same machine as our OSB. Currently for development we just start the servers using the start scripts and keep a window open for them (3 of them: 1 - admin, 1 - soa_server1, and 1 - OSB.) We want to be able to run these as services and allow the admins to log out of the box. It seems like the Node Manager would allow us to do that but can we configure our Windows server to have a Node Manager running for the OSB and another for the SOA stuff on the same box? Do we even need to do that? Can we have a single Node Manager manage all three on port 5556?
    I hope this makes sense. Thanks in advance for any quick responses.
    Jeremy

    Definitely you can (should) have a single node manager. You may refer below links -
    http://blogs.oracle.com/jamesbayer/2010/01/weblogic_nodemanager_quick_sta.html
    WLS 10.3.2 Adminserver startup failed when trying to run as Windows Service
    Regards,
    Anuj

  • OSB and SOA Suite in the Java Cloud

    Hi All -- the question is rather to a technical support personnel of the Oracle Cloud,
    Is it possible to deploy and run the OSB and SOA Suite applications on the Oracle Java Cloud? To be more precise:
    1. Is the WL server in the cloud configured to contain the Oracle Soa Suite?
    2. Is the WL server in the cloud configured to contain the Oracle Service Bus?
    If not: would it be possible to configure the Cloud WL domains the way that these are supported?
    What we need are two servers (or two clusters): a SOA Suite application runs on one, while the OSB application runs on the other.
    Thanks for help.

    Hi Chris,
    Oracle's statement of direction that you can find at
    http://www.oracle.com/technology/products/integration/service-bus/docs/Oracle-Service-Bus-SOD.pdf
    there will be convergence of the 2 products that basically address 2 different use cases (see Statement of Direction).
    In my opinion new tools will be added to Jdeveloper to develop and deploy on Oracle Service Bus (OSB). In present OSB version, OSB tools are not part of Jdeveloper and transformations use XQuery instead of XSLT (as for Oracle ESB).
    Hope this help you a little bit.
    Regards,
    Jean-Pierre

  • Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.
    Hello,
    We could not registry activex dll with clickonce directly, but here is a workaround below.
    1. Create Package for that activex dll to registry it to com.
    2. Package that MSI to CAB file.
    #1,#2 for detailed steps, please refer to the following blog.
    How to develop and deploy ActiveX control in C#
    3.
    Deploying CAB Files Using ClickOnce Deployment
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • OSB and WSDL response message

    Hi all,
    from the WSDL, that I put at bottom of this post, I've created a new OSB project importing the WSDL itself and creating a proxy service based on it.
    I've implemented it using the fn-bea:execute-sql function:
    <ctx:route><ctx:service>{   
    fn-bea:execute-sql (
    $myDataSource,
    'resultset',
    'SELECT id, name, type_id, domi_country_id, open_date, close_date FROM myTable WHERE id=?',
    xs:string($body/urn:clientDataLookup/portfolioNumber/text())
    }</ctx:service></ctx:route>
    For getting the response, in the pipeline reponse I added a REPLACE action:
    Replace [ node contents ] of [ . ]
    in [ body ] with
    [ <urn:clientDataLookupResponse>
    <xmlCntent>{ $result/con:service/resultset }</xmlCntent>
    </urn:clientDataLookupResponse>
    I deduced the above xml response message using the OSB xquery wizard navigating through variable structure section and selecting $body - clientDataLookup (response) variable:
    $body/urn:clientDataLookupResponse/xmlCntent
    from that xpath expression I deduced the above xml response message.
    My question: is that approach correct ? Why should I rewrite the xml response message ?
    I'm wondering how to allow OSB to generate the correct xml response message in automatic way and then use it as template and fill only the xmlCntent param.
    Thanks in advance
    ferp
    <definitions name="ClientDataLookup"
    targetNamespace="http://wsdl/ClientDataLookup.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://wsdl/ClientDataLookup.wsdl"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <message name="ClientDataRequest">
    <part name="buId" type="xsd:string"/>
    <part name="portfolioNumber" type="xsd:string"/>
    </message>
    <message name="ClientDataResponse">
    <part name="xmlCntent" type="xsd:string"/>
    </message>
    <portType name="ClientData_PortType">
    <operation name="clientDataLookup">
    <input message="tns:ClientDataRequest"/>
    <output message="tns:ClientDataResponse"/>
    </operation>
    </portType>
    <binding name="ClientData_Binding" type="tns:ClientData_PortType">
    <soap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="clientDataLookup">
    <soap:operation soapAction="clientDataLookup"/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:bsource:dataservice"
    use="encoded"/>
    </input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:bsource:clientdataservice"
    use="encoded"/>
    </output>
    </operation>
    </binding>
    <service name="ClientDataService">
    <documentation>WSDL File for Client Data Lookup</documentation>
    <port binding="tns:ClientData_Binding" name="ClientData_Port">
    <soap:address
    location="http://localhost:8080/soap/servlet/rpcrouter"/>
    </port>
    </service>
    </definitions>

    In most common use cases a service bus transforms the messages from one format to other. In your case you are actually doing the same. You are transforming the message from database structure to the structure which is defined by the WSDL. The snippet you are using is not XML, its an XQuery snippet. There is nothing unusual about it. The tree structure in the left side is given for that purpose only, to facilitate writing XPaths and XQuery snippets. If you do not want to type anything and want to get it graphically (or example when its a big XML), use Eclipse IDE of OSB and create a XQuery transformation which you can call from OSB message flow.
    Edited by: AbhishekJ on Nov 11, 2011 12:57 AM

Maybe you are looking for

  • How do I restore an adjusted version from Time Machine?

    I use time machine. How do I restore an adjusted version? E.g. I take a 1000 pix, bring them into a project, spend a few days making adjustments. Client cancels project. I delete project. Month later I figure out a new market for that project.  (Yeah

  • Laserjet 4 with 600 sheet ad on feeder not working. Springs or rollers?

    I have a Laserjet 4 that is the closest thing to a bomb proof printer.  It's slow and old, but just demands toner, rare roller replacement, and cleaning.  I bought a 600 sheet feeder off of Ebay that the printer sits on top of.  It worked for two yea

  • I don't like Version 9 at all. How can I return to previous version?

    I want to go back to version 7, which had a better layout in my opinion. The bookmarks on 8 and 9 take up so much space and seem to 'stick'.

  • Oracle 9i Collaboration suite works with Oracle10gAS?

    I have already installed Oracle10gAS in my pc. Now I am trying to install oracle9i collaboration suite. While installation process I have to give the Oracle9iAS Single Sign-on host name and port. But when I gave the host and port of Oracle10gAS, It i

  • Remove address book from ipod

    When I first got my iPod, iTunes copied my addressbook and calendar on it. I turned that off later because I didn't want to waste the space. However, the address book is still on the iPod. It hasn't been updated but the old copy is still there. I wou