How to include atribute xsi:type in the xml generated through java

Hi,
i am generating an xml using java and castor.
I want to include this attribute in my xml:
xsi:type="abc"
for example:
My snippet is:
Underwriting_detail[] underwritingDetail = new Underwriting_detail[1];
underwritingDetail[0] = new Underwriting_detail();
underwritingDetail[0].setContent(fulfillmentPreResponseTO.getUnderwritingDetailsMainAnswer1());
underwritingDetail[0].setQuestion_code(fulfillmentPreResponseTO.getUnderwritingDetailsMainQuestionCode1());
underwritingDetail[0].setAnswer_format(AnswerFormatType.YESNO);
underwritingDetail[0].setSequence_number(fulfillmentPreResponseTO.getUnderwritingDetailsSequenceNumber());
Result is:
<underwriting_detail answer_format="YesNo" sequence_number="1" question_code="JVL1Q1">NO</underwriting_detail>
The requirement is:
<underwriting_detail xsi:type="NonStdUWQuestion" answer_format="YesNo" sequence_number="1" question_code="JVL1Q1">No</underwriting_detail>
There is no method defined in the underwriting_detail class to add this attribute. Is there any way to add this xsi:type="NonStdUWQuestion" in this tag?

yes, is a question of JSF
Component dataTable

Similar Messages

  • How to find out which type of the driver is used in our application?

    Hi all,
    can anyone tell me how to find out which type of the driver is used in our application?
    Thanks in advance,
    Phoeniox

    Hi,
    Check out this...
    Class.forName("com.mysql.jdbc.Driver"); //if u r using MySql
    List drivers = Collections.list(DriverManager.getDrivers());
                   for(int i=0;i<drivers.size();i++)
                        Driver driver = (Driver)drivers.get(i);
                        String driverName = driver.getClass().getName();
                        System.out.println("Driver "+i+":::"+driverName);
    you need to load the driver and display in the same program.
    Then only you'l get the required result.
    prakhyath

  • How to assign a pricing type to the pricing procedure ?

    Business Scenario : When the prices change from the time the order is taken to the time the invoice is created, how can setup the system to  handle the changes automatically ? 
    I would like to know How to create a pricing type and How to assign a pricing type to the pricing procedure so that I can use the 'new pricing document' function in the sales document and 'Update prices' on the condition screens in the Billing document.
    Thanks for your input in advance.
    Oscar

    Hi !! Oscar,
    1) For pricing type definition you would require the help of a developer.
    2) However, most of the commonly occuring requirements are supplied with  standard SAP.
    You can assign a pricing type to pricing procedure as follows:-
    IMG>S & D >Basic Functions>Pricing>Pricing Control>Define & Assign pricing procedures>Maintain pricing procedure> Here, locate your pricing procedure , in the fourth coloumn using the drop down list, you can assign a pricing type to the pricing procedure.
    Now you can use the 'new pricing document' function in the sales document and 'Update prices' on the condition screens in the Billing document !
    Regards,
    PATHIK
    Message was edited by:
            Pathik Pandya

  • 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 document type for the residence status GB in infotype 48

    Hi Team,
    How to add a document type for the residence status GB in infotype 48.
    Please answer this  at the earliest.PFA screnshot.
    Thanks
    chris

    I believe there is a PDF doc which comes with the component (it should be at your harddrive when you install it), which describes everything you will need.
    In a nutshell, there are two types of relationship: sibling - sibling, parent - child (there are some more nuances, but it follows the same logic).
    A relationship is created between two existing items (not sure, if you can also create a relationship for a new checked in item, but it would be just a usability). You select the type of relationship and the item - I believe depending on the relationship you may start from either item. The dialog to start is INFO (display metadata) or UPDATE (update metadata).
    When a relationship is created you may watch it also from either end (again INFO is the starting point).
    It is quite self-explanatory, so if you have the component installed you may just play around with it for a while and that is it.

  • How can we default a Purchase Organisation in the PR generated through MRP

    Hi,
    How can we default a Purchase Organisation in the PR generated through MRP
    (This is a Auto generated PR when the MRP Run is taken)
    We take a MRP Run for CBP. After the MRP Run system Auto generates a PR. But this PR does not have the P.organisation mentioned in it. It has to be done manually.
    How can we Default the P.Organiastion in the PR.
    NS

    The Purchasing Organization is only filled in the Purchase Requisition
    when a source is assigned because it represents a source of supply.
    Please also refer to attached note 206684 for more information.
    When executing a MRP-run, it is checked first if there exists a quota
    arrangement, the source list is read after it and the purchasing
    organization is taken from the source list. But before filling
    the relevant field in the purchase requisition (EBAN-EKORG), the
    system checks if there exists a record in the source list which is
    RELEVANT TO MRP, which means that the parameter 'MRP' has to be set to
    '1'.
    So please ensure that MRP = 1 in ME01 for the existing records and start
    the next planning run with planning mode = 3 and check the results.

  • Parallel How many times user can login to the SAP system through ITS

    Hello all
    We are using the ITS ---620 and following 46D R/3 system 
    R/3 system details:
    Kernal :
    kernel release :46D
    O/S :SunOS 5.8 Generic_108528-05 sun4us
    We would like to now, At a time How many times user can login to the SAP system through ITS
    Kindly letus know  if any one have idea about parameter which can restrict the end users to u201CNu201D times/ sessions.
    Transaction SITSPMON/SMICM are not working in R/3 system as it is 46D.
    We found that parameter u201Clogin/disable_multi_gui_loginu201D works with SAPgui logons.
    System logons using the Internet Transaction Server (ITS) or Remote Function Call (RFC) are not affected by this Parameter u201Clogin/disable_multi_gui_loginu201D
    I need similar parameter u201Clogin/disable_multi_gui_loginu201D for the ITS users.
    Thanks

    I have searched all docs and notes.
    Everytime the answer is PArameter for multi_gui_logonis not applicable for SAP Gui for HTML ( Browser )
    The functionality does not exist for SAP Gui for HTML.
    Regards,

  • How to edit the existing data in the XML file from java programming.

    Hi all
    i am able to create XML file with the sample data as below from java programming.
    i need sample code on how to edit the existing data in the XML file?
    for example
    <?xml version="1.0"?>
       <mydata>
               <data1>
                         <key1>467</key1>
                        <name1>Paul</name1>
                        <id1>123</id1>
              </data1>
              <data2>
                         <key2>467</key2>
                        <name2>Paul</name2>
                        <id2>123</id2>
              </data2>
        </mydata>
    i am able to insert the data in the XML.
    now i need sample code on how to modify the data in the above XML file from the java programming for only key2,name2,id2 tags only. the remaining tags data in the XML file i want to keep same data except for key2,name2,id2 which are i want to modify from java code
    Regards
    Sunil
    [points will be always rewardable]

    hi
    u need a parser or validate the xml file for to read the xml file from java coding u need for this
    xml4j.jar u can download this file  from here
    http://www.alphaworks.ibm.com/tech/xml4j
    or we can use the SAX(simple API for XML)
    some sample applications for this
    http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
    http://www.developertutorials.com/tutorials/java/read-xml-file-in-java-050611/page1.html
    http://www.xml-training-guide.com/e-xml44.html
    let me know u need any other info
    bvr

  • How to clear the DOS screen through java program

    how to clear the DOS screen through java program

    Just some Friday fun. Use the telnet program that comes with Windows and supports VT escape sequences.
    import java.io.*;
    import java.net.*;
    public class AutoTelnet {
         private static Socket s;
         public static void main(String[] args) throws Exception {
              Thread t = new Thread() {
                   @Override public void run() {
                        try {
                             s = new ServerSocket(5555).accept();
                        } catch (IOException ex) {
                             ex.printStackTrace();
              t.start();
              Process p = new ProcessBuilder("cmd", "/C", "start", "telnet", "127.0.0.1", "5555").redirectErrorStream(true).start();
              t.join();
              PrintStream ps = new PrintStream(s.getOutputStream());
              ps.println("Screen will be cleared in 5 seconds");
              ps.println("5");
              Thread.sleep(1000);
              ps.println("4");
              Thread.sleep(1000);
              ps.println("3");
              Thread.sleep(1000);
              ps.println("2");
              Thread.sleep(1000);
              ps.println("1");
              Thread.sleep(1000);
              ps.println("\u001b[2J");
              Thread.sleep(5000);
    }

  • How to write adapter module to convert the xml to pdf file

    Hi all,
      how to write adapter module to convert the xml to pdf file.
    Please any body assist step by step procedure.

    PI 7.1 XML to PDF transformation
    have you seen below links:
    http://forums.sdn.sap.com/thread.jspa?threadID=1212478
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363

  • How to read particular Sector and Block in Mifare 1k through Java?

    Hi Friends..
    Do you know how to read particular Sector and Block in Mifare 1K through Java?..
    I've created the simple application that read data from Mifare 1K, but i've problem when i want to read the other sectors and blocks..
    i tried to read the blocks by using this APDU command :
    FF B0 00 00 10  //read data in Sector 0 and Block 0
    FF B0 00 01 10  //read data in Sector 0 and Block 1
    FF B0 00 02 10  //read data in Sector 0 and Block 2
    FF B0 00 03 10  //read data in Sector 0 and Block 1How to read the other sectors and blocks?..
    I've tried to read data in Sector 1 and Block 5, so i tried to send this APDU command : FF B0 01 05 10, but i got this error : *6986*
    Actually, it doesn't matter if i use MifareWnd, but i want to create my own application that Read/Write From/into Mifare 1K..
    Please help me regarding this..
    Thanks in advance..
    Edited by: Leonardo_Carreira on Mar 31, 2010 2:47 AM
    Edited by: Leonardo_Carreira on Mar 31, 2010 2:50 AM

    Hi Sidd,
    You should check out the Example Finder under Hardware Input and Output»IMAQ»Signal Input and Output for examples of triggering in framegrabbers.
    Stephen Meserve
    National Instruments

  • How to store xml data into file in xml format through java program?

    HI Friends,
    Please let me know
    How to store xml data into file in xml format through java program?
    thanks......
    can discuss further at messenger.....
    Avanish Kumar Singh
    Software Engineer,
    Samsung India Development Center,
    Bangalore--560001.
    [email protected]

    Hi i need to write the data from an XML file to a Microsoft SQL SErver database!
    i got a piece of code from the net which allows me to parse th file:
    import java.io.IOException;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import org.apache.xerces.parsers.SAXParser;
    import java.lang.*;
    public class MySaxParser extends DefaultHandler
    private static int INDENT = 4;
    private static String attList = "";
    public static void main(String[] argv)
    if (argv.length != 1)
    System.out.println("Usage: java MySaxParser [URI]");
    System.exit(0);
    String uri = argv[0];
    try
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    MySaxParser MySaxParserInstance = new MySaxParser();
    parser.setContentHandler(MySaxParserInstance);
    parser.parse(uri);
    catch(IOException ioe)
    ioe.printStackTrace();
    catch(SAXException saxe)
    saxe.printStackTrace();
    private int idx = 0;
    public void characters(char[] ch, int start, int length)
    throws SAXException
    String s = new String(ch, start, length);
    if (ch[0] == '\n')
    return;
    System.out.println(getIndent() + " Value: " + s);
    public void endDocument() throws SAXException
    idx -= INDENT;
    public void endElement(String uri, String localName, String qName) throws SAXException
    if (!attList.equals(""))
    System.out.println(getIndent() + " Attributes: " + attList);
    attList = "";
    System.out.println(getIndent() + "end document");
    idx -= INDENT;
    public void startDocument() throws SAXException
    idx += INDENT;
    public void startElement(String uri,
    String localName,
    String qName,
    Attributes attributes) throws SAXException
    idx += INDENT;
    System.out.println('\n' + getIndent() + "start element: " + localName);
    if (localName.compareTo("Machine") == 0)
    System.out.println("YES");
    if (attributes.getLength() > 0)
    idx += INDENT;
    for (int i = 0; i < attributes.getLength(); i++)
    attList = attList + attributes.getLocalName(i) + " = " + attributes.getValue(i);
    if (i < (attributes.getLength() - 1))
    attList = attList + ", ";
    idx-= INDENT;
    private String getIndent()
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < idx; i++)
    sb.append(" ");
    return sb.toString();
    }// END PRGM
    Now , am not a very good Java DEv. and i need to find a soln. to this prob within 1 week.
    The next step is to write the data to the DB.
    Am sending an example of my file:
    <Start>
    <Machine>
    <Hostname> IPCServer </Hostname>
    <HostID> 80c04499 </HostID>
    <MachineType> sun4u [ID 466748 kern.info] Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz) </MachineType>
    <CPU> UltraSPARC-IIi at 360 MHz </CPU>
    <Memory> RAM : 512 MB </Memory>
    <HostAdapter>
    <HA> kern.info] </HA>
    </HostAdapter>
    <Harddisks>
    <HD>
    <HD1> c0t0d0 ctrl kern.info] target 0 lun 0 </HD1>
    <HD2> ST38420A 8.2 GB </HD2>
    </HD>
    </Harddisks>
    <GraphicCard> m64B : PCI PGX 8-bit +Accel. </GraphicCard>
    <NetworkType> hme0 : Fast-Ethernet </NetworkType>
    <EthernetAddress> 09:00:30:C1:34:90 </EthernetAddress>
    <IPAddress> 149.51.23.140 </IPAddress>
    </Machine>
    </Start>
    Note that i can have more than 1 machines (meaning that i have to loop thru the file to be able to write to the DB)
    Cal u tellme what to do!
    Even better- do u have a piece of code that will help me understand and implement the database writing portion?
    I badly need help here.
    THANX

  • The XML generated by the Lotus servlet component is not well formed

    Hello Experts,
    While integrating EP7 to Lotus Domino 7 we are facing some problem with XML parser.
    We have following configuration
    EP7 SP 13
    Lotus Domino 7
    All configurations related to SSO are done. SSO is working fine.
    All transports are created properly. All services active
    Please suggest some solution
    The error is displayed when i try to access the calendar related objects, like calendar, appointments etc.
    Here is error detail:
    The XML generated by the Lotus servlet component is not well formed com.sap.ip.collaboration.gw.impl.transport.lotus.exception.XMLParserException: The XML generated by the Lotus servlet component is not well formed
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getXmlDocument(LotusCalendarTransport.java:997)
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.readResponse(LotusCalendarTransport.java:1922)
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getLotusServerTz(LotusCalendarTransport.java:405)
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getItemList(LotusCalendarTransport.java:377)
         at com.sap.ip.collaboration.gw.impl.framework.groupware.GroupwareManager.getItemList(GroupwareManager.java:263)
         at com.sap.ip.collaboration.gw.impl.manager.calendar.ContentManager.getChildren(ContentManager.java:237)
         at com.sapportals.wcm.repository.CollectionImpl.internalGetChildrenManager(CollectionImpl.java:1538)
         at com.sapportals.wcm.repository.CollectionImpl.internalGetChildren(CollectionImpl.java:1555)
         at com.sapportals.wcm.repository.CollectionImpl.doGetChildren(CollectionImpl.java:144)
         at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:124)
         at com.sap.ip.collaboration.gwui.api.GWUtils.getAllCalendarItems(GWUtils.java:180)
         at com.sap.ip.collaboration.gwui.api.htmlb.component.day.DayControlDynPage.doProcessBeforeOutput(DayControlDynPage.java:65)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:123)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Waiting for replies
    Regards
    Kedar Kulkarni
    Do Not worry for points.

    Hello Michael Sambeth and all Lotus experts,
    I read about a tool for Lotus Domino Ticket Verifier that is delivered by SAP.
    Can you please send it to kedar.c.kulkarni @ gmail.com
    I actually posted a thread, but could not get any reply for SAP standard error: GW-LOT-014
    regards
    Kedar Kulkarni
    Edited by: Kedar Kulkarni on Apr 9, 2008 12:11 PM

  • Any way to insert the XML generated from dataTable into the oracle?

    Hi guys,
    I want to know if there is a way to insert the XML generated from dataTable(dataTable.GetXML()) into the oracle?
    Thanks in advance,

    There is o extractor to load assessment cycles; instead you can load dtaa after the assesment cycle is complte in R/3. You can schdeule the job in BW accordingly.
    May I know what exactly is the requirement.
    Ravi Thothadri

  • 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

Maybe you are looking for

  • Unable to view stock on a posting date

    I'm implementing inventory scenario in BI. Initialized the stock in R/3 and uploaded into cube 0IC_C03 through 2LIS_03_BX. Also initialized 2LIS_03_BF and uploaded into the same cube. When i run a query, I see opening stock. But if i change posting d

  • Using OpenPop.dll in Sharepoint

    I'm using POP3 in sharepoint to read and count mails in my mail but i received error : "Could not load file or assembly 'OpenPop, Version=2.0.4.369, Culture=neutral, PublicKeyToken=bebb5741791313cd' or one of its dependencies. The system cannot find

  • Does workgroup manager and OSX have problems?

    I am a classroom teacher using Adobe CS2 on 24 IMac G5's and 3 IMac G5's with the intel processor. I have had problems with Photoshop and Illustrator saving empty files and files disappearing. So my Tech people want to redo the server. They tell me t

  • Help me in this

    Hi, I have Wrote a Stored Procedure which is calling a Function inside that. My Function will Return the Integer Values and the Function is in the Loop I want to Return the Array of the Integer Returned by Function. That is, Funcction will return 1 w

  • Loading iBooks from Word.

    The most used tool in the world has problems getting into ibooks author. Shapes do not come in correctly or at all. Fills in shapes get messed up. Chapters do not load correctly even when Heading 1 is chosen in Word. Layout gets messed up. Any sugges