XML - Generating a file with CR LF (Format)

I'm stuck. I appologize, but have not been able to find a CLEAR example of exporting/creating an XML file based upon inputs. I am actually creating the file, but the XML is all "bunched" on one line. Is it possible to get line breaks and indents?
Here is the output (It's on two lines (One for <?XML /> One for the rest):
<?xml version="1.0" encoding="UTF-8"?>
<department><!--The first employee description--><employee id="J.D."><name>John Doe</name><email>[email protected]</email></employee><?application commandForApp?></department>
Here is the source:
package Chap03;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;
import org.w3c.dom.ProcessingInstruction;
import org.apache.xml.serialize.XMLSerializer;
import org.apache.xml.serialize.OutputFormat;
import java.io.FileWriter;
//import org.jdom.output.XMLOutputter;
public class MakeDocumentWithFactory {
     public static void main(String[] argv) {
          try {
               // Creates Document Object
               String documentImpl = "org.apache.xerces.dom.DocumentImpl";
               Document doc = (Document)Class.forName(documentImpl).newInstance();
               // Creates <department> element as root
               Element root = doc.createElement("department");
               // Sets the element as root
               doc.appendChild(root);
               // Creates comment node
               root.appendChild(doc.createComment("The first employee description"));
               // Creates <employee> elements and its text content, and adds it
               Element employee = doc.createElement("employee");
               employee.setAttribute("id", "J.D.");
               root.appendChild(employee);
               // Create Processing Instruction
               root.appendChild(doc.createProcessingInstruction("application", "commandForApp"));
               // Creates <name> element and adds it
               Element name = doc.createElement("name");
               name.appendChild(doc.createTextNode("John Doe"));
               employee.appendChild(name);
               // Creates <email> element and adds it
               Element email = doc.createElement("email");
               email.appendChild(doc.createTextNode("[email protected]"));
               employee.appendChild(email);
               // Prepares output format
               OutputFormat formatter = new OutputFormat(doc, "UTF-8", true);
               formatter.setLineSeparator("\n");
               formatter.setIndenting(true);
               // Preserves whitespace
               formatter.setPreserveSpace(true);
               // The XML document is output to standard output
               FileWriter writer = new FileWriter("C:/zzzzz.xml");
               XMLSerializer serializer = new XMLSerializer(System.out, formatter);
               XMLSerializer serializer2 = new XMLSerializer(writer, formatter);
               /* DOESN'T WORK
               XMLOutputter op = new XMLOutputter();
               op.setNewlines(true);
               op.setIndent(" ");
               FileWriter writer = new FileWriter("C:/zzzzz.xml");
               op.output(doc, writer);
               // Serializes the DOM tree as an XML document
               serializer.serialize(doc);
               serializer2.serialize(doc);
          } catch (Exception e) {
               e.printStackTrace();
}

Guys,
I have the same problem. But looking at this link i tried. The method parameters is what causes the problem.
XMLOutputter.output(org.jdom.Document,java.io.outputStream).
I have is org.w3c.dom.Document. How to go about this ? I believe BMWM3LUV when saying 'required re-writing' he/she meant writing the entire code with jdom objects.
Please help.

Similar Messages

  • DMEE tree:it's possible to generate more files using one DMEE format tree?

    Hello Expert,
    I have a question and i need you help.
    It's possible to generate two files with one DMEE format tree? If yes, how can i do it?
    Thank you in advance.
    Amal

    In DMEE we define the structure ie the kind of feilds that needs to be populated.As far as my knowledge I think one DMEE tree can be used to create one file FORMAT
    Thanks,
    K.Kiran.

  • Export/Import Process in the UI for Variations Content Translation is Generating CMP Files with No XML

    We have a SharePoint 2010 Publishing Website that uses variations to deliver contain to multiple languages. We are using a third-party translation company to translate publishing pages. The pages are
    exported using the  export/import using the UI process described here: "http://blogs.technet.com/b/stefan_gossner/archive/2011/12/02/sharepoint-variations-the-complete-guide-part-16-translation-support.aspx".
    Certain sub-sites are extremely content-intensive. They may contain many items in the Pages library as well as lists and other sub-sites. 
    For some sub-sites (not all), the exported CMP file contains no XML files. There should be a Manifest.XML, Requirements.XML, ExportSettings.XML, etc., but there are none. After renaming the CMP file
    to CAB and extracting it, the only files it contains are DAT files.
    The only difference I can see between the sub-sites that generate CMP files with no XML files is size. For example, there is one site that is 114 MB that produces a CMP file with no XML files. Small
    sites do not have this problem. If size is the problem, then I would think the process would generate an error instead of creating a single CMP file that contains only DAT files. However, I do not know exactly what the Export/Import Process in the UI is doing.
    This leads to two questions:
    1.
    Does anyone know why some CMP files, when renamed to *.CAB and extracted, would not contain the necessary XML files?
    2. Second, if exporting using the UI will not work, can I use PowerShell? I have tried the Export-SPWeb, but the Manifest.XML does not contain translatable
    content. I have not found any parameters that I can use with Export-SPWeb to cause the exported CMP to be in the same format as the one produced by the Export/Import process in the UI.
    As a next step, we could try developing custom code using the Publishing Service, but before doing this, I would like to understand why the Export/Import process in the UI generates a CMP that
    contains no XML files.
    If no one can answer this question, I would appreciate just some general help on understanding exactly what is happening with the Export/Import Process -- that is, the one that runs when you select
    the export or import option in the Site Manager drop down. Understanding what it is actually doing will help us troubleshoot why there are no XML files in certain export CMPs and assist with determining an alternate approach.
    Thanks in advance
    Kim Ryan, SharePoint Consultant kim.ryan@[no spam]pa-tech.com

    I wanted to bump this post to see about getting some more responses to your problem. I'm running into the same problem as well. We're running a SharePoint 2010 site and are looking at adding variations now. The two subsites with the most content take a
    while to generate the .cmp file (one to two minutes of the browser loading bar spinning waiting on the file). Both files are generated with a lot of .dat files but no .xml files. I was thinking like you that it must be a size issue. Not sure though. Did you
    ever happen to find a solution to this problem?

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • Generating war files with jdev

    Hi,
    I am trying to generate a war file with jdev and wish to exclude the connections.xml file from the war file. Is there any settings in the xxx.deploy file that I can change in jdev to do this?
    I am using 9i (v 9.0.3.4)
    Thanks

    Doesn't it come with a file called assembly.bat which launches the Java assembly tool. Webphere 4 does.
    That makes everything a lot easier.
    Dom.

  • How to read only files with a certain format from folder with java

    I have this folder on the server and I only want to read files from this folder on the server... I only want to read files with the files format starting with error_ and ending with xml... an example of a file would be..
    error_123.xml
    I want something like this
    if(fileName.startsWith("error_") && fileName.endsWith(".xml")){
    but which java package will I have to use to read the file from the directory...

    Create an implementation of the java.io.FilenameFilter interface to match the pattern you need.
    Create a java.io.File object for the folder.
    Use the File.listFiles(FilenameFilter) method to get an array of File objects for the files in the folder that match the pattern.
    For each file in the array, create a FileInputStream, wrap it in an InputStreamReader, and wrap that in a BufferedReader (assuming you want to read the XML files as character streams).

  • How to generate SWF file with dynamic data but no live connection

    Hello,
    We got a requirement where we have to email out SWF file either in PPT or outlook generated from BOBJ universe. When the file reaches the customer who would be outside our network with no access to our servers or data should be able to view the swf file with data. So the goal is to generate these files automatically and should not prompt for BOBJ login or wouldn't have ability to query the database but need to report data pertaining to the customer.
    Any help in this regards is greatly appreciated.
    Thanks
    Manohar

    Hi Manohar,
    You can use QAAWS(query as a web services) and build your queries on universe.
    You get an option of hardcoding the user id and password in the data connection for QAAWS which will not asks the users for login credentials.
    This will hepl the user to veiw the latest data from the database and the user wont be asked for login too.
    Thanks,
    Amit.

  • Need to generate excel file with different sheets

    Hi,
    I need to generate the excel file with diffrent sheets . Currently I am generating the data in three diffrent excel files
    and my requirement is to generate this in a single excel file with diffrent sheets.
    Please help on this
    Thanks & Regards,
    Krishna Vyavahare

    I'm not able to realize how Oracle will help in the problem. You may probably want to look at some [.net forums|http://www.google.com.sg/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS280&q=.net+forums&btnG=Google+Search&meta=lr%3D] about this.
    Cheers
    Sarma.

  • How to save dynamically generated PDF files with proper file name?

    Hi,
    I need to save the pdf file with default name which generated by
    dinamically.
    this is the code i am trying to save by default
    protected void processRequest (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    OutputStream bos = response.getOutputStream ();
    // this returns pdf byte array
    byte  ios[]  = callReport ( reportId_param , fullyQualifiedReportClassName , paramHashMap ) ;
    response.setContentType ("application/pdf");
    // reportId_param and reportName_param supplied from some where
    String docName =  reportId_param + "_" + reportName_param ;
    if( fromDate_req != null && toDate_req != null )
                    String dateStr = fromDate_req + "_to_" + toDate_req ;
                    dateStr = dateStr.replaceAll ( "/" , "_" ) ;
                    docName = docName + "_" + dateStr ;
    // here docName would be like "RP_COM_COLL_01_Message_Details_03_09_2008_to_03_09_2008"
    response.setHeader ("Content-Disposition","inline; filename=" + docName ) ;
    bos.write (ios);
    bos.flush ();
    }the above code produces pdf in browser when calling this URL
    http://localhost:8080/DAD01TN0801027/RWReportServlet
    In browser we can save this PDF by using two ways
    1. File -> Save As
    2. By using Save Icon within the PDF toolBar
    both the actions uses the file name "RWReportServlet" as default instead of using docName
    Can any one help me please
    Regards
    Sakthivel.

    That said, your code is not very efficient. You're storing the complete PDF file in memory. What if the PDF file is fairly large? And what if multiple users download multiple large PDF files simultaneously? Your server would run out of memory. Rather use InputStream instead of a raw byte[]. And preferably buffer it.
    You should also be setting the content-length header by the way.

  • Downloading of file with default xls format

    Hi All..
    i wish to download all the files with xls as a format irrespective of user selecting either f4 or search help or writing a free text  in the selection screen text box.
    do we have FM or suggest somthing.thanks!
    Moderator message: please (re)search yourself before asking.
    Edited by: Thomas Zloch on Jul 13, 2010 11:53 AM

    Hello Wirtschaftsmann,
    you Need to select the check box " Output to file System". When you select this, the file will be save at the path with the way you want. But then, it will always be saved with the same same and will get overwritten when the next file is created.
    When you fo not select this Checkbox, the file gets saved in Temse Directory and the System automatically puts a number at the end and this Counter gets incremented every time, so that the old file do not get overwrittenn.(As far as i remeber this Counter is till 9999).
    In order to make the file saved the way you want and also do not want it to be overwritten, you Need to write your own logic (e.f. adding timestamp). for this, get in touch with your developer.
    BR
    Amitash

  • Generate configuration file with non-default binding configuration in WCF 4.5

    Hi,
    I am using WCF 4.5 for generating configuration file.
    I have referred following MSDN link for generating configuration file.
    https://msdn.microsoft.com/en-us/library/hh309266(v=vs.110).aspx
    I want binding property for e.g 'maxReceivedMessageSize'  in configuration file.
    I changed default value of 'maxReceivedMessageSize' to non-default value, but i could not able to saw 'maxReceivedMessageSize' binding property in configuration file.
    Is anyone know why i am not able to see non-default value in configuration file.
    Thanks.

    Hi Amy,
    Thanks for reply. Please see below content of configuration file.
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <system.serviceModel>
            <bindings>
                <netTcpBinding>
                    <binding name="TestCustBind_CustomerService" />
                </netTcpBinding>
            </bindings>
            <client>
                <endpoint address="net.tcp://ABC/CustTest"
                    binding="netTcpBinding" bindingConfiguration="TestCustBind_CustomerService"
                    contract="CustomerService" name="TestCustBind_CustomerService">
                    <identity>
                        <userPrincipalName value="[email protected]" />
                    </identity>
                </endpoint>
            </client>
        </system.serviceModel>
    </configuration>
    Thanks.

  • Generate trace file with required name

    hi all,
    as a sys user i want to trace a user session. so i am using
    SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=>123, serial#=>1234, sql_trace=>TRUE);
    SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=>123, serial#=>1234, sql_trace=>FALSE);
    to trace. but this trace file is mixing with another trace files in udump.
    did some google and found that we can use ALTER SESSION SET TRACEFILE_IDENTIFIER = "MY_TEST_SESSION". but this will generate trace file for sys user account not for the desired user session. how we can define trace file name for desired user session trace.
    Please let me...
    thanks

    >but this trace file is mixing with another trace files in udump.
    above is NOT true for any *NIX Operating System.
    The trace file name will contain the OS ProcessID#
    is this application 3-tier/
    does application utilize connection pooling?
    It appears that you post frequently & reply/respond very infrequently.
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Creating XML file with UTF-8 format

    Hi,
    I have written the below code to download an XML file. but ia m able to in UTF-16 format.how do i download in UTF-8 format.
    can somebody send i sample code for UTF-8 format.
    types: begin of x_mara,
           matnr type matnr,
           mtart type mtart,
           end of x_mara.
    TYPES: BEGIN OF ttab,
           record(50000) TYPE c,
           END OF ttab.
    data: t_mara type standard table of x_mara.
    DATA: xml_out TYPE string,
          xml_table type table of ttab.
    select matnr
           mtart
           from mara up to 10 rows
           into table t_mara.
    CALL TRANSFORMATION id
    SOURCE output = t_mara
    RESULT XML xml_out.
    append xml_out to xml_table.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = 'C:\Users\sirishac\Desktop\Siri.xml'
       FILETYPE                         = 'BIN'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = 'BCWEB'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = xml_table
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks in Advance,
    Neha

    hi
    good
    go through this link
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    thanks
    mrutyun^

  • Cannot generate WSDL file with wscompile

    I get an error while generating the WSDL file using wscompile tool.
    my compile line is "wscompile -gen:server CRAWS.xml -keep" and I get a RmiModeler error with an ClassNotFoundException .
    I have put my jar file in the bin folder (same folder of wscompile) and I've also copied my service build files in the same folder (under the package subfolders).
    Here is the code of the xml configuration:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <service name="CraWS_Service" targetNamespace="urn:com.servepath.cra/wsdl/CraService"
          typeNamespace="urn:com.servepath.cra/types/CraService"
          packageName="com.servepath.CraWebService">
        <interface name="com.servepath.CraWebService.CraWSIF" servantName="com.servepath.CraWebService.CraWS_Impl"/>
    </service>
    </configuration> 

    I'm new to Web Services so I'm just guessing, but perhaps you need to add -classpath lib/foo.jar;lib/bar.jar to specify where your class-files are.

  • _SQL_NAME in generated java file with JPublisher

    Does anyone has generated the java wrapper of EBS SQL packages with JPublisher 10? I use JPublisher to generate the java classes of APPS.AR_ADJUST_PUB which is a SQL package in EBS Financial. The APIs in this package has an input parameter whose type is the rowtype of table AR_ADJUSTMENTS (AR_ADJUSTMENTS%rowtype). The JPublisher generate the SQLNAME as "ARADJUSTPUB_ROWTYPE_SQL". But when I run the generated java code, it gives an SQLException saying APPS.ARADJUSTPUB_ROWTYPE_SQL is not a existed object.
    Can anyone give me some idea? Thanks very much!

    but if one of the when clause faild or some rows are
    rejectet the sequence is not right.Did you read the link?
    "If a record is rejected (that is, it has a format error or causes an Oracle error), the generated sequence numbers are not reshuffled to mask this. If four rows are assigned sequence numbers 10, 12, 14, and 16 in a particular column, and the row with 12 is rejected, the three rows inserted are numbered 10, 14, and 16, not 10, 12, and 14. This allows the sequence of inserts to be preserved despite data errors. When you correct the rejected data and reinsert it, you can manually set the columns to agree with the sequence."
    also if you read multiple lines and they inserted in
    the wrong order the number from the sequence is not
    the line number...what do you mean with "reading multiple lines and wrong order?"

Maybe you are looking for

  • Cant change volume

    Hello all, This new Pro has a problem. I started it up today, and the volume meter is stuck. Whenever I push f5 to increase or f4 to decrease the volume, the symbol appears on screen and shows full volume as well as a little circle with a slash throu

  • Double-Click Setting not saved

    Help! On my brand-new MBP 13" the double-click speed is not saved with "Keyboard & Mouse" preferences. Everytime I log in the double-click speed rate is set to "slow" and as a result many mouse-clicks are considered as "double" without intended to be

  • Why, after pasting a weblink into my emails and sending them it does not allow you to click on them to open directly to the website? (It just started doing that)

    When I copy and paste the weblink to a particular website I wish to paste into an email I'm sending it just pastes it in 'black & white' and after I send it it will not allow you to open it up in the email...It does not create a 'weblink.' You have t

  • "Published"  Edit does not show up.

    I have successfully downloaded my trial version of Contribute CS3 and when I click my Contribute App. it opens and shows my web site name with the "not connected" line under it. I click on that and my front page shows up with the "connect" button abo

  • Address book in alphabet order

    Hi Is it possible to put names and addresses in their groups in alphabet order? Ta George