ValueChangeListener not invoked inside h:dataTable h:inpuText

Hi,
I'm creating a simple dataTable with an inputText in each row. Each inputText has a valueChangeListener that is never invoked.
Does anyone know why this is happening ?
Thanks in advance,
- Juan

Thanks for your answer.
First option is excluded.
Third option also, because we are using RichFaces dataTable components.
You are saying that getter method for dataTable value attribute needs to return exactly the same object list which was returned in the request before when the list was populated for the first time, in order for commandButton in dataTable action method to be invoked, right?
In my case loading managed bean fields in constructor is excluded, because we are using EJB dependency injection, so our EJB's from which we are getting data aren't available in managed bean constructors. They are available in other methods. That leaves me to the field initialization in dataTable value getter method, when the list is populated for the first time. Which is the most elegant way to preserve this list between requests, and retrieve this list in later requests? Is saving object list in FacesContext session possible solution?

Similar Messages

  • A4j:support not working inside rich:datatable

    One of my columns in rich:datatable is h:selectboolencheckbox which i want to select we user clicks a row
    but a4j:support is not working.
                    <rich:dataTable value="#{ch.fdetails}" var="c"  style="width:90%" columns="14">
                           <a4j:support event="onRowClick" action="#{ch.toggle}" reRender="select" ajaxSingle="true"> 
                            <f:setPropertyActionListener target="#{ch.fd}" value="#{c}" /> 
                     </a4j:support>
                   </rich:dataTable> It doesn't even call action on bean which is toggling the chechkbox.

    Hi, I assume you are using <rich:column>
    so try to change event to onselect or onchange and if your action is method call so change
    action="#{ch.toggle}"to
    action="#{ch.toggle()}"

  • ValueChangeListener not invoking backing bean method

    Hi Everybody
    I am using a valueChangeListener attribute with <h:selectOneListbox>. As i am using onChange, the form is getting submitted but the associated backing bean method is not getting invoked.
    My JSP code:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
       <head>
          <title>Song Detail</title>
       </head>
       <body>
          <f:view>   
               <h:form id="songForm">
                       <H4>Select a song to view detail.</H4>
                </Br>
                       <h:selectOneListbox id="songList" value="#{songBean.selectedSong}"
    valueChangeListener="#{songBean.songInformation}" immediate="true" onchange="submit();">
                              <f:selectItems value="#{songBean.songList}"/>
                     </h:selectOneListbox>
                <p>
                 <h:outputText id="result" value="#{songBean.songDetail}"/>
             </p>   
         </h:form>                  
       </f:view>
      </body>
    </html> My Backing bean method:
    public void songInformation(ValueChangeEvent vce) throws AbortProcessingException
              System.out.println("Method invoked");
           } This songInformation() method is not getting invoked.
    Please help.

    I never say to put every bean in session scope.
    I recommend that the following beans are in session scope:
    (1) the value property of h:dataTable
    (2) the value property of f:selectItems
    (3) the rendered property
    They are evaluated before Update Model Values phase.

  • CommandButton does not redirect to another if it is inside a datatable

    Hi,
    I have JSPX page in a ADF Faces 11g that contains a dataTable and the last column of each row contains a button that redirects to another page. The redirect simple does not work at all.
    I made a example to try isolate the error:
                <h:dataTable value="#{ajax.list}" var="a">
                  <h:column>
                    <f:facet name="header">
                      <h:outputText value="Mensagem"/>
                    </f:facet>
                    <h:outputText value="#{a.message}"/>
                  </h:column>
                  <h:column>
                    <f:facet name="header">
                      <h:outputText value="Ações"/>
                    </f:facet>
                    <af:commandButton id="edit" action="edit" text="Editar"/>
                  </h:column>
                </h:dataTable>
    <af:commandButton id="edit2" action="edit" text="Editar"/>If I click the button with id "edit" (inside de dataTable>, it just refresh the page.
    If I click the button with id "edit2" (outside de dataTable>, it redirects to the correct page.
    I tried many things (like put immediate = "true", use standard buttons...), but nothing seems to work.
    Any clues?
    Regards, Rubem
    PS: I'm using standard dataTable only in this sample... in real applications I intend to use ADF Faces datatable.

    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <p>
              <af:messages />
              <af:commandButton id="edit2" action="edit" text="Editar"/>
              <af:panelGroupLayout id="teste" partialTriggers="cb1">
                <h:dataTable value="#{ajax.list}" var="a" >
                  <h:column>
                    <f:facet name="header">
                      <h:outputText value="Mensagem"/>
                    </f:facet>
                    <h:outputText value="#{a.message}"/>
                  </h:column>
                  <h:column>
                    <f:facet name="header">
                      <h:outputText value="Ações"/>
                    </f:facet>
                    <af:commandButton id="edit" action="edit" text="Editar"/>
                  </h:column>
                </h:dataTable>
              </af:panelGroupLayout>
            </p>
            <p>
              <af:commandButton text="OK" id="cb1" action="#{ajax.changeMessage}"
                                partialSubmit="true"
                                actionListener="#{ajax.teste}"/>
            </p>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

  • Problem in assigning id to DIV inside a datatable

    In our JSF application, we have a requirement to display a separate DIV for each row which is iterated inside a datatable.
    In order to display the contents under a particular DIV, we need to capture the id of that DIV.
    But since the DIV resides within verbatim inside the datatable, a unique identifier could not be associated to each DIV.
    The code looks like this�.
    <h:dataTable id="product_entity_data_table" width="690" border="0" cellspacing="1" columnClasses="clsTableBodyL"
    rowClasses="clsAlignTop clsListDarkBackground,clsAlignTop clsListLightBackground"
    headerClass="clsTableHeaderBottomL" value="#{entityImpactListBean.currentProductsDSIDetailBeanList}"
    var="productDSIDetail" rendered="#{impactListBean.entityProductFlag}">
    <h:column>
    <f:facet name="header">
    </f:facet>
    <h:panelGrid id="product_ent_dsidetail_newDataValue_pg" columns="1">
    <clsFields:radio id="dsi_newdatavalue" value="#{productDSIDetail.newProductValue}"
    onclick="formDivContent(#{productDSIDetail.productName}, #{productDSIDetail.dataLevelID}, this.id);">
    <f:selectItems value="#{impactListBean.radioValueList}" />
    </clsFields:radio>
    <h:outputText id="product_ent_dsidetail_errorMessage" styleClass="clsErrorMessageB"
    value="#{productDSIDetail.errorMsg}" rendered="#{productDSIDetail.errorMsgFlag}">
    </h:outputText>
    </h:panelGrid>
    <f:verbatim>
    <div id="div<%=divCount++%>" style="display:none;">
    <iframe name="frame<%=frameCount++%>" width="0" height="0" align="center"
    frameborder="0" onload='showData(this);'></iframe>
    </div>
    </f:verbatim>
    </h:column>
    </h:dataTable>
    Inspite of introducing divCount (code highlighted in blue), every time the id associated to every DIV is the same, which is �div1�.
    Any help in this regard will help us solve this issue.

    Hi ,
    If your are not sure about user name , use the wildcard pattern , but make sure you use only a single *
    i.e
    1)IF User = shilpa*
    THEN Portal Desktop = dekstop path
    2)IF User =*  shilpa  *
    THEN Portal Desktop = dekstop path
    Here 1st option will work , 2nd will not work. "  use only a single *   "
    Regards,
    Sunitha Hari

  • How to get the column index inside a dataTable

    Hello,
    before I get staked, there are multiple threads handling familiar topics to the one I'm questioning about but none gives an anwer. If there is one, I'm propably to less skilled to see it.
    So here is my Problem: I've build a web-interface to a time-recording system. The hours worked on a certain project are displayed in a dataTable component which is generated out of a mySQL Query. Each entry (column/row) contains a inputText component to display and edit the specific value.
    Editing one of these inputText elements now fires a valueChangeEvent which reads the new value and stores it in the database. For that cause I need to know the row- and column-index of the inputText component that fired the event.
    Using the getClientId method from the valueChangeEvent I get some Information which makes it possible to calculate the row/column index. A typical clientID looks like "form_table:mainTable:0:_id14". "form_table" is the ID of the form the dataTable is in. "mainTable" is the id of the dataTable component. "0" is the row the component is in. And finally "_id14" stands for the id randomly given to the inputText component by JSF.
    My Problem is now, that though I can calculate the column out of the[i] "_id14", this calculation is hardcoded. So everytime I add a component in before the dataTable, the calculation needs to be adjusted in the code.
    The Questions:
    - How to force a sensefull id indicating a column-index for the inputText components inside the columns of a dataTable?
    - Nicer since no workaround: How to get the column-index inside the dataTable on a natural way? (e.g. out of the valueChangeEvent the specific inputText component fires)
    After some investigation here on the board and on the net I know multiple ways to get the row index, (Things like component-binding and so on) but I can't find a answer on how to get the column-index.
    Thanks to all answers and/or links to things my eyes missed while searching for one.

    ...then index 0 becomes index 1 and my program doesn't work properlyThe program works properly, just not as you expect it to.
    As you've noticed the table gives you the flexibility to move columns around. So if you move column 0 to column 1, why would you expect to still use 0 as the index? The table manages the reordering of columns for you to make sure the data being displayed in each table column comes from the correct column in the data model.
    You can manage this yourself using one of the following methods (I forget which one):
    table.convertColumnIndexToModel(int viewColumnIndex)
    table.convertColumnIndexToView(int modelColumnIndex)
    Or, you can get data from the data model directly:
    table.getModel().getValueAt(row, 0);

  • ORACLE ADF 11g /JSF TO  serviet (Service method) not invoking

    Hi,
    ORACLE ADF 11g /JSF TO serviet (Service method) not invoking
    My project name is : ComplProject
    inside the project im having 1 jsp say x.jsp
    work environment : (oracleADF 11g) jdev11 and weblogic server 10.3
    in x.jsp im displaying 1 go link -> when ever we click on GO link it should go to ComplServlet.java
    i tried like,
    FacesContext.getCurrentInstance().getExternalContext().redirect("/servlet/ComplServlet");
    the "ComplServlet" is an URL pattern in web.xml which points to servlet.
    but not working
    i pointed to faces-config.xml also , not working
    i tried to forward like
    FacesContext context = FacesContext.getCurrentInstance();
    ServletContext sContext = (ServletContext)context.getExternalContext().getContext();
    ServletRequest request = (ServletRequest)context.getExternalContext().getRequest();
    System.out.println("third line...............");
    HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
    response.sendRedirect("/servlet/ViewDocument");
    sContext.getRequestDispatcher("/servlet/ViewDocument").include(request, response);
    brief
    (from jsf page) after clicking on GO LINK i need to redirect or control should go to servlet ->service method
    thanks in advance
    regards,
    sandeep

    Hi,
    i tried like,
    FacesContext.getCurrentInstance().getExternalContext().redirect("/servlet/ComplServlet");
    the "ComplServlet" is an URL pattern in web.xml which points to servlet.
    but not workingUse like following.
        public HttpServletRequest getServletRequest() {
            return (HttpServletRequest)facesContext.getExternalContext().getRequest();
        public redirect(String url){
           getServletRequest().sendRedirect(getServletRequest().getContextPath() + "/servlet/ComplServlet");
        }If you are using golink as frank suggested then use it like this.
    <af:goLink text="ComplServlet" destination="/servlet/ComplServlet"/>no need of using context when using goLink,
    Regards,
    Santosh.

  • CommandLink not invoking every time in table

    Hi All,
    I have a Command Link inside one of the af:columns of the table. I just dragged and dropped the column from component pallet to the table for the link. I have set the ActionListener and Action to the managed bean but, when i try to click the link, its not invoking the action and action listener every time. Don't know whats wrong ?
    code:
    <af:column id="c10" headerText="Link">
    <af:commandLink text="Details" id="cl4"
    action="#{someScope.myBean.myAction}"
    actionListener="#{someScope.myBean.myListener}">
    <f:attribute name="name" value="#{row.someThing}"/>
    </af:column>
    I tried these:
    1. Tried with PartialSubmit:true
    2. tried with ChangeEventPolicy for iterator as PPR and also default
    3. Command Link outside table always invokes the methods
    Additional Info:
    1. I have my bean registered in the TF
    2. Iterator is based on read only VO
    Please help me with this.

    Hi Ramandeep,
    I have these inside my code:
    System.out.println ("In Action Listner");
    System.out.println ("In Link Action ");
    It prints the above lines only on the second time i click, 1st time it does not invoke the methods

  • Can't use binding property of a commanButton inside a datatable

    I have commandButtons inside a datatable.
    The datatable is iterated over ArrayList containing custom PageSnippets objects, which look like this :
    public class PageSnippet {
              private int index = 0;
              private String name = null;
              private String id      = null;
              private UICommand upBtn = new UICommand();
              private UICommand downBtn = new UICommand();
              public PageSnippet (int index, String name, long id, int snippetCount) {
                   this.index = index;
                   this.name = name;
                   this.id = String.valueOf(id);
                   setBtnsVisibility(snippetCount);
               * getters
              public String getId() {
                   return id;
              public int getIndex() {
                   return index;
              public String getName() {
                   return name;
              public UICommand getUpBtn() {
                   return upBtn;
              public UICommand getDownBtn() {
                   return downBtn;
               * Sets button visibility.
              public void setBtnsVisibility (int snippetCount) {
                   upBtn.setRendered(index > 1);
                   downBtn.setRendered(index < snippetCount);
         }The two buttons are binded to the the pageSnippet's upBtn and downBtn objects in order to set their rendered status:
    <h:commandButton
    actionListener="#{pageEditBean.moveSnippet}" type="submit"
    image="../images/btn_up.png"
    binding="#{snippet.upBtn}"/>I got null nuinter exception, datable variable snippet is reported null
    and getter method of the backing bean getPageSnipets is not called at all.
    I got null nuinter exception even when rendered property of the datatable is false.
    When I remove binding property of the buttons everything works fine.
    When instead of binding property I use rendered property of the commandButton and in the getter metthods I return boolean:
    public boolean getUpBtn() {
                   return downBtn.isRendered();
              } Everything is OK as well.
    MyFaces 1.1.5
    JSDK 1.4.2_08
    Tomcat 4.1.3
    Have anybody encountered such problem?
    Is there any workaround?
    Or can anybody confirm that binding a commandButton to a backing UICommand object inside a datatable works for him?
    thanks in advance

    Thanks a lot.
    You're right, the backing bean has request scope.
    I found out (the hard way) that there's a bug in JSF that prevents a commandButton from working, when the button's rendered property is binded to a backing bean's property.
    But this solution works.
    But I got another problem:
    When I click the button, I got java.lang.NoSuchMethodError
    Even clicking the button outside the datatable returns the exception.
    Again, when I set the bean's scope to session it works.
    I don't understand that, except for the datatable business, commandButtons with other request scope beans work well.
    Thanks

  • I recently purchased Macbook air mid 2013. Leftside usb port is not working. I think the USB is not going inside completely. What is the solution?

    I recently purchased Macbook air mid 2013. Leftside usb port is not working. I think the USB is not going inside completely. What is the solution? someone can help?

    Invoke your warranty and take it back.

  • New folder is not visible inside my project but shows in Windows Explorer.

    I created a new folder under another folder.  The new folder is not visible inside my project but shows in Windows Explorer.  Also, if I try to add another folder of that same name, it denies the action since the folder (although invisible) already exists.  My co-worker can access the same file (on a share drive) and see the new folder just fine.  This error occurs whether I was the one creating the new folder or she is the one creating the new folder.  I am new to RoboHelp and she has used it for years.  I suspect something is not yet set up right on my side.  Ideas? (I thought I posted this yesterday but I can't find it anywhere)

    Hi there
    What version of RoboHelp are you using?
    Did you create the folder from inside RoboHelp or did you create it using Windows Explorer?
    Cheers... Rick

  • "A technical error during invocation : Could not invoke service reference" Error message while calling a service from BPM

    Hi Experts,
    We are facing a issue while calling a Automated activity from BPM process, the process gets suspended and the BPM logs says "Process XYZ suspended, A technical error during invocation: Could not invoke service reference name fdhueoegghejietyhsjk6886 Component name ABC " We have already checked the mapped service reference and provider system. Gone through the below link, but no help.
    http://http://wiki.scn.sap.com/wiki/display/TechTSG/Sending+a+message+from+SAP+NetWeaver+BPM+process+to+PI+fails+via+automated+activity?original_fqdn=wiki.sdn.sap.com
    Any pointers or suggestions to fix up this issue will be highly appreciated. Thanks in advance.
    Regards,
    Mohit Jaju

    The details/ID in NWDS Service Reference must exactly match the SOA configuration. Sometimes it's possible you have changed the reference or the group itself and something changed to become mismatched.
    It's possible they don't match - but the SG itself will show green in NWA since the service exists and responds on the target system. Does the ID listed in the error match what is shown in the NWDS project?
    regards, Nick

  • Command Link inside of datatable

    I have the following problem when I put a command link inside a datatable.
    The action or actionlisteners never get called. Now here is the funny thing.
    1. If I move the action link outside the datatable it works.
    2. if I change the scope of the bean to session it works
    3. if the datatable contains more than 1 row it works
    The last one tells me this is a bug.
    To test this I change the sql query to limit the result so 1 row would be returned.
    The sql query returns a CachedRowSetImpl
    I believe this is a bug.
    <h:dataTable rows="6" first="0" id="table" binding="#{event.eventdata}" value="#{event.eventdetails}" var="eventdetail">
    <h:column>
    <h:commandLink value="#{eventdetail.title}" action="#{event.resaveEventaction}" actionListener="#{event.resaveEventdetails}" id="test" >
    </h:commandLink>     
    </h:column>
    <h:column>
    </h:dataTable>

    Here is some additional information that makes this more confusing.
    The following code is used to populate the datatable
    public CachedRowSetImpl getEventdetails(){
         CachedRowSetImpl rs2 = null;
         String selectedeventmy = selectedevent;
         int rowcount = 0;
         try { 
              sql = "SELECT * FROM event where eventid='"+selectedeventmy+"' ";
              rs2 = RunQuery.mysql(sql);
              rowcount = rs2.size();
         } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         return rs2;
    where RunQuery.mysql is
    public class RunQuery {
         public static CachedRowSetImpl mysql(String sql) throws Exception {
              CachedRowSetImpl crset = null;
              InitialContext initCtx = new InitialContext();
              Context envCtx = (Context) initCtx.lookup("java:comp/env");
              try {
                   DataSource ds = (DataSource) envCtx.lookup("jdbc/associations");
                   Connection conn = null;
         Statement stmt = null;
         conn = ds.getConnection();
         stmt = conn.createStatement();
         stmt.execute(sql);
         ResultSet rs = stmt.getResultSet();
         crset = new CachedRowSetImpl();
         crset.populate(rs);
         rs.close();
         stmt.close();
         conn.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
              return crset;
    if I replace the line
    String selectedeventmy = selectedevent;
    with String selectedeventmy = "61";
    it works properly.
    selectedevent is populated from the following triggered by another action event on another page. ? The funny thing is if the result set returns more that 1 row all works ok.
    public String viewDetails(){
         System.out.println("Running view Details");
         int selectedrow = eventlist.getRowIndex();
         Object selected = eventlist.getRowData();
         Map rowdata = (Map) selected;
         selectedevent = rowdata.get("eventid").toString();
         System.out.println("Selected Event:"+selectedevent);
         outcome="eventdetails";
         return outcome;
    }

  • Adapter Module is not Invoking

    Hi
    I have done one adapter module and i have given that in Sender Communication Channel. I have written audit log as well. But its not invoking.I am not getting any thing on Audit Log. My Scenario is working normally. Actually i have to get Host name at destination side but i am not getting
    I ave created on jar file. I have extrancted that jar file and i found the following files
    <javafile>.class
    <javafile>.java
    ejb-j2ee-engine.xml
    ejb-jar.xml
    but i have extract other in built adapter module jar file their i found manifest.mf apart from above mention files.
    I have create the jar files using nwds version 7.0
    My Adapter module is not working. I have done everything fine.Can anyone tell me the solution
    Best Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B

    Hi,
    Ur module name shud b like this
    localejbs/<yourEJBClassName>
    If you specify an incorrect or non-existing module name, it is simply ignored.
    Check the following:
    1. Your stateless session bean should implement SessionBean and Module.
    2. The bean should have the following method
        public ModuleData process()
    Try to create a file in XI Server directory from your adapter module code and this way check whether your module is called or not.
    <i>[Reward if helpful]</i>
    Regards,
    Prateek

  • WebService is not invoking from OAPage

    Hi,
    I created a BPEL WS which creates a employee in oracle EBS and deployed sucessfully.My requirement is to invoke this WS from a custom OAF page.I generated all STUB java classes and done all coding in the controller of the page.The problem is WS is not invoking,no error is throwing.
    I am pasting my WSDL file and stub class
    CreateEmployee WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    name="CreateEmployee"
    targetNamespace="http://xmlns.oracle.com/CreateEmployee"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/CreateEmployee"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
    xmlns:ns1="http://www.globalcompany.com/ns/sales"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:client="http://xmlns.oracle.com/CreateEmployee"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.globalcompany.com/ns/sales"
    xmlns:po="http://www.globalcompany.com/ns/sales"
    elementFormDefault="qualified">
    <annotation>
    <documentation xml:lang="en">
    Order Booking schema for GlobalCompany.com.
    Copyright 2005 GlobalCompany.com. All rights reserved.
    </documentation>
    </annotation>
    <element name="EmployeeDetails" type="po:EmployeeDetails"/>
    <complexType name="EmployeeDetails">
    <sequence>
    <element name="EmployeeNumber" type="string"/>
    <element name="DOB" type="date"/>
    <element name="LastName" type="string"/>
    <element name="Bgid" type="integer"/>
    <element name="EffectiveDate" type="date"/>
    <element name="Gender" type="string"/>
    </sequence>
    </complexType>
    </schema>
    <xs:schema targetNamespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" blockDefault="#all">
    <!-- //////////////////// WS-Addressing //////////////////// -->
    * <!-- Endpoint reference -->*
    * <xs:element name="EndpointReference" type="wsa:EndpointReferenceType"/>*
    * <xs:complexType name="EndpointReferenceType">*
    * <xs:sequence>*
    * <xs:element name="Address" type="wsa:AttributedURI"/>*
    * <xs:element name="ReferenceProperties" type="wsa:ReferencePropertiesType" minOccurs="0"/>*
    * <xs:element name="PortType" type="wsa:AttributedQName" minOccurs="0"/>*
    * <xs:element name="ServiceName" type="wsa:ServiceNameType" minOccurs="0"/>*
    * <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">*
    * <xs:annotation>*
    * <xs:documentation>*
    * If "Policy" elements from namespace "http://schemas.xmlsoap.org/ws/2002/12/policy#policy" are used, they must appear first (before any extensibility elements).*
    * </xs:documentation>*
    * </xs:annotation>*
    *</xs:any> *
    * </xs:sequence>*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:complexType>*
    * <xs:complexType name="ReferencePropertiesType">*
    * <xs:sequence>*
    * <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>*
    * </xs:sequence>*
    * </xs:complexType>*
    * <xs:complexType name="ServiceNameType">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:QName">*
    * <xs:attribute name="PortName" type="xs:NCName"/>*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    * <!-- Message information header blocks -->*
    * <xs:element name="MessageID" type="wsa:AttributedURI"/>*
    * <xs:element name="RelatesTo" type="wsa:Relationship"/>*
    * <xs:element name="To" type="wsa:AttributedURI"/>*
    * <xs:element name="Action" type="wsa:AttributedURI"/>*
    * <xs:element name="From" type="wsa:EndpointReferenceType"/>*
    * <xs:element name="ReplyTo" type="wsa:EndpointReferenceType"/>*
    * <xs:element name="FaultTo" type="wsa:EndpointReferenceType"/>*
    * <xs:element name="Recipient" type="wsa:EndpointReferenceType"/>*
    * <xs:complexType name="Relationship">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:anyURI">*
    * <xs:attribute name="RelationshipType" type="xs:QName" use="optional"/>*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    * <xs:simpleType name="RelationshipTypeValues">*
    * <xs:restriction base="xs:QName">*
    * <xs:enumeration value="wsa:Response"/>*
    * </xs:restriction>*
    * </xs:simpleType>*
    * <!-- Common declarations and definitions -->*
    * <xs:complexType name="AttributedQName">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:QName">*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    * <xs:complexType name="AttributedURI">*
    * <xs:simpleContent>*
    * <xs:extension base="xs:anyURI">*
    * <xs:anyAttribute namespace="##other" processContents="lax"/>*
    * </xs:extension>*
    * </xs:simpleContent>*
    * </xs:complexType>*
    </xs:schema>
    </types>
    <message name="CreateEmployeeResponseMessage">
    <part name="payload" element="ns1:EmployeeDetails"/>
    </message>
    <message name="CreateEmployeeRequestMessage">
    <part name="payload" element="ns1:EmployeeDetails"/>
    </message>
    <message name="WSARelatesToHeader">
    <part name="RelatesTo" element="wsa:RelatesTo"/>
    </message>
    <message name="WSAReplyToHeader">
    <part name="ReplyTo" element="wsa:ReplyTo"/>
    </message>
    <message name="WSAMessageIDHeader">
    <part name="MessageID" element="wsa:MessageID"/>
    </message>
    <portType name="CreateEmployeeCallback">
    <operation name="onResult">
    <input message="tns:CreateEmployeeResponseMessage"/>
    </operation>
    </portType>
    <portType name="CreateEmployee">
    <operation name="initiate">
    <input message="tns:CreateEmployeeRequestMessage"/>
    </operation>
    </portType>
    <binding name="CreateEmployeeCallbackBinding" type="tns:CreateEmployeeCallback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="onResult">
    <soap:operation style="document" soapAction="onResult"/>
    <input>
    <soap:header message="tns:WSARelatesToHeader" part="RelatesTo" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>
    <binding name="CreateEmployeeBinding" type="tns:CreateEmployee">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="initiate">
    <soap:operation style="document" soapAction="initiate"/>
    <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle=""/>
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>
    <service name="CreateEmployee">
    <port name="CreateEmployeePort" binding="tns:CreateEmployeeBinding">
    <soap:address location="http://kbace12:8888/orabpel/default/CreateEmployee/1.0"/>
    </port>
    </service>
    <service name="CreateEmployeeCallbackService">
    <port name="CreateEmployeeCallbackPort" binding="tns:CreateEmployeeCallbackBinding">
    <soap:address location="http://set.by.caller"/>
    </port>
    </service>
    <plnk:partnerLinkType name="CreateEmployee">
    <plnk:role name="CreateEmployeeProvider">
    <plnk:portType name="tns:CreateEmployee"/>
    </plnk:role>
    <plnk:role name="CreateEmployeeRequester">
    <plnk:portType name="tns:CreateEmployeeCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    CreateEmployeeStub.java
    package mentor.oracle.apps.webservices;
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.util.xml.QName;
    import java.util.Vector;
    import org.w3c.dom.Element;
    import java.net.URL;
    import org.apache.soap.Body;
    import org.apache.soap.Envelope;
    import org.apache.soap.messaging.Message;
    import java.util.Properties;
    public class CreateEmployeeStub
    //public String endpoint = "http://172.16.1.157:8888/orabpel/default/CreateEmployee/1.0";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_smr = null;
    public CreateEmployeeStub()
    m_httpConnection = new OracleSOAPHTTPConnection();
    public void initiate(Element requestElem) throws Exception
    URL endpointURL = new URL( "http://172.16.1.157:8888/orabpel/default/CreateEmployee/1.0");
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    requestBodyEntries.addElement(requestElem);
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "initiate", requestEnv);
    and Input to initiate method is in the form of XML
    <ns1:EmployeeDetails>
    <ns1:EmployeeNumber>6999</ns1:EmployeeNumber>
    <ns1:DOB>2000-07-15</ns1:DOB>
    <ns1:LastName>Manoj9334</ns1:LastName>
    <ns1:Bgid>7577</ns1:Bgid>
    <ns1:EffectiveDate>2009-07-15</ns1:EffectiveDate>
    <ns1:Gender>M</ns1:Gender>
    </ns1:EmployeeDetails>
    that i created using org.w3c.dom.Element class before invoking the initiate method.
    Please give solution to this problem
    Thanks in Advance

    You better ask this in the [OA Forum|http://forums.oracle.com/forums/forum.jspa?forumID=210]
    Timo

Maybe you are looking for

  • Calendar not showing times?

    In Calendar, is there a way to see the time of the event when the app is in "Month" view? Right now, it just list the events, and you have to open the event or go into "week" view to see what time it starts.

  • Working with a template.. Very frustrating

    Very new to After effects. Using on windows 7. Ae cc.ver 12.2.1, I Downloaded a template from videohive. So I'm trying to add several more text place holders. I select the tracks which I want to appear again, copy and paste them in the timeline. If I

  • Buttons no longer go to highlight state when linked

    I have many simple text buttons that start in white, go to green when rolled over and go to red when pressed. simple stuff. For some reason when I linked the buttons to a url or file the highlight states no longer work. The buttons go to there respec

  • Open Flash 8 file with MX 2004

    I am teaching a web design class and the student files that came with the book are a newer version than what I am using. I am using Flash MX 2004 and assume the files are either Flash 8 or CS3. Is there anyway to get MX to open the new file? Thanks,

  • Debit entries in part 2 register for rejected materials

    Hi, GR posted, part1 and part2 posted. Later material rejected, and with reference to rejected material document we have created Excise invoice (thru T.Code J1IS). We observed part1 register get updated, but part 2 register has not updated. But entri