How to include a response element in the ESB database adapter.

hi,
i am using the dbadapter to insert the data into the table successfully.
The problem is when i am using a db adapter it doesnot include a response element in its wsdl.I want to send a response to the client as and when the data got inserted from the dbadapter for that transaction.
i tried using the pl/sql procedure with a out parameter which returns the response but the problem is the pl/sql is called by adapter only once though i am using for each constructor.
i tried to modify the xsd generated by the dbadapter by including the response element,but the xsd is not getting parsed and throwing error.
how to overcome this problem and send a immediate response to the client as and when the adapter inserts the data into oracle?
thanks in advance.

Although not the cleanest solution, but can't you create another routing service which defines a request (equal to the request element of the original routing service) and reply element (defining a single element called success or something).
Then have this new routing service invoke your original routing service which invokes the database adapter. Now define a XSLT map for the reply of the new routing service and put an XSL text there with the value "success" or something?
So:
Routing_service_new --> Routing_service_original --> database_adapter
Regards, Ronald

Similar Messages

  • How to bind a UI element to the context

    Hi Experts,
               I have a problem binding UI element to the context. In my code i have to create TabStrips dynamically and under this tabstrip number of UI elements would be there. For this i have a code like this..
    IWDTransparentContainer theActionContainer =(IWDTransparentContainer)view.getElement("RootUIElementContainer");
         IWDTabStrip ts = (IWDTabStrip) view.createElement(IWDTabStrip.class,"TabStrip");
              IWDTab tab1 = (IWDTab) view.createElement(IWDTab.class,"Tab1");
              IWDInputField in = (IWDInputField) view.createElement(IWDInputField.class,"in");
              IWDCaption header1 = (IWDCaption) view.createElement(IWDCaption.class,"Header1");
              header1.setText("Tab1");
              tab1.setContent(in);
              ts.addTab(tab1);
              IWDTab tab2 = (IWDTab) view.createElement(IWDTab.class,"Tab2");
              IWDInputField in2 = (IWDInputField) view.createElement(IWDInputField.class,"in2");
              IWDCaption header2 = (IWDCaption) view.createElement(IWDCaption.class,"Header2");
              header2.setText("Tab2");
              tab2.setHeader(header2);
              ts.addTab(tab2);
              theActionContainer.addChild(ts);
    <b>when i run this code it is giving following exceptions..</b>
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Property 'value' of AbstractInputField with id 'in' in view 'LoginView' must be bound to the context
        at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.getValue(AbstractInputField.java:1260)
        at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter.getValue(InputFieldAdapter.java:582)
        at com.sap.tc.ur.renderer.ie6.InputFieldRenderer.render(InputFieldRenderer.java:56)
        at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:435)
        at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:134)
        ... 63 more
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Property 'value' of AbstractInputField with id 'in' in view 'LoginView' must be bound to the context
         at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.getValue(AbstractInputField.java:1260)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter.getValue(InputFieldAdapter.java:582)
         at com.sap.tc.ur.renderer.ie6.InputFieldRenderer.render(InputFieldRenderer.java:56)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:435)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:134)
         at com.sap.tc.ur.renderer.ie6.TabStripRenderer.renderTabStripItemContentFragment(TabStripRenderer.java:1867)
         at com.sap.tc.ur.renderer.ie6.TabStripRenderer.renderTabStripFragment(TabStripRenderer.java:838)
    From these exceptions what  i understood is, i need to bind these UI elements to context.
       Can any body tell me how to bind a UI element to the context if I understood the exceptions correct..
    Thanks in Advance,
    Murthy.

    HI,
    lets say Ctx is your context attribute,
    IWDAttributeInfo attrInfo = wdContext.getNodeInfo.getAttribute("Ctx");
    then , as per your code,
    IWDInputField in = (IWDInputField) view.createElement(IWDInputField.class,"in");
    <b>in.bindValue(attrInfo);</b>
    if your contex attribute is child of some other node then do like this,
    IWDAttributeInfo attrInfo = wdContext.getNodeInfo.getChildNode("SalesOrder",0)getAttribute("Ctx");
    //this is when Ctx is child of node SalesOrder, and we are taking Ctx from its 0th element
    then ,
    IWDInputField in = (IWDInputField) view.createElement(IWDInputField.class,"in");
    <b>in.bindValue(attrInfo);</b>
    include this in your code ,
    let me know if you face any problem
    regards
    reward points if it helps

  • How can I create an element in the model node?

    Hi, Experts,
    I create a model node that name is containerNode in the contxt. Cadinility is: 1..n
    I write the code in the method:
      private String getDataForOutputTable( IWDNode wageTypePayslip, IWDNode containerNode ){
           String betrgSumStr = "";
         int index = 0;
         Vector containerVector = new Vector();
         int size = wageTypePayslip.size();
         IWDNodeElement element = containerNode.createElement();// The system report error when I run the application.
         BigDecimal betrgSum = new BigDecimal( 0 );
    I try to create a element in the containerNode, But the system report error when I run the application.
    java.lang.IllegalArgumentException: model object must not be null
         at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:66)
         at besuretech.com.wdp.IPrivatePayDataDispView$IOContainerElement.<init>(IPrivatePayDataDispView.java:1537)
         at besuretech.com.wdp.IPrivatePayDataDispView$IContextNode.doCreateElement(IPrivatePayDataDispView.java:88)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:884)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElementInternal(Node.java:1351)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElement(Node.java:1370)
         at besuretech.com.PayDataDispView.getDataForOutputTable(PayDataDispView.java:251)
         at besuretech.com.PayDataDispView.getAllData(PayDataDispView.java:196)
         at besuretech.com.PayDataDispView.onPlugPayListViewIn(PayDataDispView.java:154)
         at besuretech.com.wdp.InternalPayDataDispView.wdInvokeEventHandler(InternalPayDataDispView.java:391)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
    How can I create an element in the model node ?
    Best regards,
    tao

    Hi,
    You need to execute the model before creating the element.
    Regards
    Ayyapparaj

  • How to include in table of contents the list of figures and list of tables?

    How to include in table of content the "Table of contents", "List of figures" and "List of tables"? All are generated with function Table of contents, but they will not appear in generated table of contents even if they have proper style of headings - Heading 1, as other chapter.
    I get this in generated Table of contentes of my dissertaion thesis:
    Table of contents
    Preface
    Table of contents <- missing
    List of tables <- missing
    List of figures <- missing
    Introduction
    Main
    Conclusion
    Is it ok, that generated lists are not included in table of contents?

    You've just confused me.
    My understanding of how this is set up is that either:
    This is a book, and there is a master TOC that includes all book documents and a document-specific TOC in each component file, or
    This is a single file and there is one master TOC that includes all sections and a section-specific TOC that includes only the individual section.
    In the first case, I think you would want two TOC styles set up, one that includes the chapter heads (if I understood how you said this worked) for the for the master, and you would include all docs in the book when you generate it, and a second style for the individual chapters, with the subheadings you want to include.
    In the second case, it would be similar, but instead of only one style to cover the section TOCS, I think you would need to create a unique set of pargraph styles for the headings in each section (they can all be the same format, based one section, just with unique names), and then make a TOC style for each section that includes only the styles from that section.
    OK,  wait a sec. I just reread what you said: "Another thing: when the numbers are "linked" and updating well, they  display indide a little box. Not a text box, but a kind of little frame  around the numbers. That frame makes it imposible to delete just one  number: when the TOC says that Section 6.1 is in page 135, for example,  you cannot delete just the 5, it deletes, not just the 3 numbers, but  also the doted tab."
    I think these are NOT normal TOCs created by using Layout > TOC (but you could replace them with ones that are, if you set up your styles properly and the text you want to include is appearing on the pages). Those little boxes you mention sound like cross-references, which should update automatically without any intervention at all. Unfortunately, cross-refs can be flakey, especially if they point to another document. I'd open the cross-refs panel and see if you need to recreate a bunch of links.

  • How to add a new Element to the Context

    Hello all.
    I created in the wdInit()
    ArrayList datas = new ArrayList();
         for (int i = 0; i < 25; i++) {
              MyData data = new MyData();
              data.setMethods();
              datas.add(data);
         wdContext.nodeMyData().bind(datas);
    Now, I want by clicking on the Button "Create new Element", forward user to the other View, which elements are connected with the same model -> context, the new element should be added to context, the user should fill the form and click Save-Button.
    How can I add a new Element to the Collection I created and choose it as a current element?
    If I do: wdContext.nodeMyData().bind(new MyData()) all information will be lost. And I will have only one field.
    If I do it like this:
    IWDNodeElement dynTabElem=(IWDNodeElement)wdContext.nodeMyData().createElement();
    wdContext.nodeMyData().addElement(dynTabElem);
    I get an error: com.sap.tc.webdynpro.progmodel.context.ContextException: NodeInfo(DataComp.MyData): value node is created without a reference
    Well I can pass to my new View a Collection as a parameter and then
    Collection.add(new MyData()) and then bind it. But I find this solution not good.
    Is there any possibility to get the existing Collection from the Context without passing it to the view?
    Can I just add a new element to the existing collection?
    Thanks in advance.

    Hallo Monalisa,
    I did as you said. But I can't add something to my model class, because it is not collection.
                            MyData data = wdContext.currentBelegElement().modelObject();
                   data.add() ???? - don't work
                   wdContext.nodeMyData().invalidate();

  • How to make a UI element at the horizontal middle of a View?

    a browser like IE , if  the computer screen size is different,  UI Element position will change.
    How can i make the UI in the middle of the screen. like the WebDynpro Longon page.

    Hi Jason,
    You will have to use three transparent containers in the view.
    Adjust your transparent containers so that it will cover the 100% area of
    the view.
    Use matrix layout for root container and put all three transparent containers
    one below other i.e. in a single column. Apply matrix head data for two
    containers.
    Now put all your UI elements in the middle transparent container in a group.
    so that you can apply grid layout to your 'group' UI element.
    I hope this will solve your problem as this solution helped me in my
    developement.
    Or else,
    Just use the system logon, it's already pre-configured. The link is:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ff/c7de3fc6c6ec06e10000000a1550b0/frameset.htm
    Always use UI elements so that 100% area can be used. Because this will automatically adjust your screen for different computer screen sizes. Do not use UI elements in pixels. These might vary as per the screen size.
    Cheers,
    Darshna.

  • How to include WS-Security Header in the WSDL

    hi
    how to include WS-Security Header which have username and password as
    i had seen the below link it deals with just hello world which is not using any Services(DBAdapter) is it possible to use DBAdapter as the steps present in the below link how to include WS-Security Header which have username and password
    http://blogs.oracle.com/reynolds/2005/09/invoking_bpel_from_an_html_for.html

    As Amir suggested, you may provide in the URL but I wouldn't suggest it though. You don't want to hard code the user ID and password within in the WSDL because it is a bad practice especially the user ID and password may be different in different systems and every time you change the password, you have to regenarate your WSDL.
    May be you thought through this but just in case if you didn't
    KK

  • How do I download Photoshop Elements with the Adobe Download Assistant?

    It used to be pretty straight forward, you would launch ADA and it would show all the programs available for download.
    Now it just shows "Products you may like", which doesn't show Elements (at least not that I can find).
    So how do I get Photoshop Elements? Am I looking in the wrong place?

    If you have tried a different web browser and are still facing problems please try initiating a direct download of the software by following the steps listed at http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l.  Please be advised that you need to complete the Very Important Instructions section prior to clicking on the link to download the software.

  • How to goTo a specific element in the sap.m.list

    Hi everyone,
    I have a long list of elements in the sap.m.list.
    I wish to allow the users to get to a specific element of the list without the users having to scroll the long list.
    Is that an api to allow the list to automatically "scroll to" a specific element?
    Regards,
    Chris

    Hi Chris,
    may be you can provide SearchField to go to specific element. have a look at JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;icon&quot; href=&quot;http://static.jsbin.… I have not implemented search function but this will give you an idea what I am trying to convey.
    Regards,
    Chandra

  • How to include a js file in the JSP page

    Hi
    i have included a script tag like the following in the JSP file
    <SCRIPT language="JavaScript">vDateFormat='mm/dd/yyyy';</SCRIPT>
    while deploying i am getting an error 'vDateFormat' unidentified
    Can any one help me

    under view put a new tag
    <f:view>
    <ui:script url="page.js"/>
    and thats it

  • How do I join two tables in the same database and load the result into a destination table in a SSIS package

    Hi,
    I have a query that joins two tables in the same database, the result needs to be loaded in a destination DB table.  How do I do this in SSIS package?
    thank you !
    Thank You Warmest Fanny Pied

    Please take a look at these links related to your query.
    http://stackoverflow.com/questions/5145637/querying-data-by-joining-two-tables-in-two-database-on-different-servers
    http://stackoverflow.com/questions/7037228/joining-two-tables-together-in-one-database

  • How to include original message body in the reply to a workflow notificatio

    Hi,
    I have a requirement from my clients.
    Standard Functionality: When a Manager clicks on the APPROVE (button / link) to approve a workflow notification from a mailing application, a (response) mail gets composed to the Workflow Mailbox with the NID and Access Key. The content as shown below.
    ===========================
    Action: 'Approve'
    Comments: ''
    NID[3699/874478985@WFMAIL3]
    ===========================
    Requirement:
    The requirement is that, when the Maanger clicks on Approve / Reject, the original message body also has to get populated into the response mail along with the NID and Access Key.There would be audits conducted(looking into the workflow mail box) on the approval / rejection decisions taken by the users. The intention of getting the originial message body is to identify, to which notification(or letter) this action was taken. Me, being a Technical person can get it from the Notification Id in the workflow mail box, but the people conducting the Audit cant identify that. So, I need to get the original message body into the response. This is the reason for the requirement.
    Actually, I dont need the whole message body, but the value in an URL attribute, which is one of the SEND attributes of the notification in question.
    fyi, It is a VOTING ACTIVITY and hence, I donot know how many users would get the notification.
    I tried creating a RESPONSE Attribute(I understand that, a response attribute is an attribute where I accept inputs from the user), but couldnt assign the value to that attribute.
    Regards
    Anil K A

    Sadly, I believe this will require a bit of development to make it happen. The project I'm on now...we are finding that to get it to do what we want it to do, a development to customize the email message to include all the case fields is required.
    D

  • How to include original InDesign filename in the PDF properties?

    In CS3, I used to make postscript files and distill them to PDFs in Acrobat Distiller. When I did this the finished PDF would include info about the author and original filename.
    In CS5 I export directly to PDF. Is there any way to include this data when I export? I know you can add additional metadata in File info, but it doesn't seem to include the original file name.
    Anyone know how to do this?
    V

    Distiller operates on files, so I'm not surprised it can insert the file name, but I wonder where it gets the author?  (I confess I use Distiller as a last resort.)
    One of the charming aspects of XMP metadata is that the names for the different categories of information sometimes change with the context.  Thus were you to put your ID file's name in the ID File Info category Description and export to PDF it will show up in Acrobat/Reader in the Subject category.  If I wanted to record the original ID filename I'd probably paste it there -- in my work Title usually needs to hold the actual title.  One of the scripters could probably come up with a way to automate the process, but I want to check the metadata anyway, and as long as I'm there it doesn't take long to type or paste in the filename.
    David

  • How to include partner number dynamically in the archive filename ?

    Hi,
    I am working on IDOC archiving. Since we have a lots of IDOCs with the same Master IDOC name but coming from different partners, it would make sense to generate as much archive files as there are different partners.
    I have seen that the archive filename is dynamically built with concatenation of parameters.
    I guess we could use the filename_exit function module to set a parameter to the value of the partner number, but how to get the partner number ?

    Welcome to SDN.
    check out this weblog.
    <a href="/people/sap.user72/blog/2005/06/02/dynamic-includes-for-bsp">Dynamic Includes for BSP</a>
    Regards
    Raja

  • How to put an xml element in the header field?

    Hello friends,
    My requirement is like I've a particular element that needs to be printed on the header filed
    for ex --dept_no and dept_name in the header field...please let me know how..
    Thanks

    For each occurrence of DEPT_GROUP, a new section is created.
    These sections can have different header/footer.
    In case, you want different values to be displayed in header/footer section(as your requirement) or you want the page numbers to be reset for each group, you can use this command.
    Check the user guide http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#4535398

Maybe you are looking for

  • Can't send mail from outlook for mac

    I have a desktop mac with OS X 10.8.3 operating system. I recently upgrade to Mountain Lion. I use Outlook Office for mac 2011 to receive/send emails. For the last four days I haven't been able to send mail, only receive. Whenever I try to send an em

  • Debug Error on start up

    I need to know how I can get this program to work. I am trying to create a form from an existing Acrobat 7.0.8 Professional pdf. I'm using Windows XP Professional and LifeCycle Designer 7,0,041126,0. After selecting the preferred import options & ret

  • Compiling COBOL

    I tried compiling a sample cobol program (with embedded sql) with precompiler pro*COBOL for Oracle 8i. I used IBM visual Age for COBOl as the compiler. I was able to pre compile and compile the sample program provided with Oracle demo (precomp/demo/p

  • Create query views on WAD

    Hi all!, In BI netweaver 7, is recommended to allow final users have access to create Query Views from WAD/Productive environment?,  this is because when production is closed, final users cannot save Query Views because transport error is generated.

  • 80gb ipod wont hold a charge properly!!!!!

    my ipod is 2 weeks old, and the battery drains too fast - it's 80gb. i watch an hour and half long movie and the battery was already half empty. another time, it was fully charged and i was listening to music and watching a tv show, i fell asleep for