Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Posts
    3

    Unanswered: xml sample compilation error

    I am using ASE 12.5 eval copy in WINNT 4.0 I have installed java and when i am trying to workout XML in sample given in sybase java manual i am getting the following error

    E:\ase\java\xml>javac Sql2OrderClient.java
    Sql2OrderClient.java:11: Method sql2order() not found in class jcs.xml.order.Ord
    erXml.
    FileUtil.string2File("Order-sql2Order.xml",order.sql2order());
    ^
    1 error


    the code in Sql2OrderClient.java file is as follows

    import java.io.*;
    import java.util.*;
    import jcs.xml.order.*;
    import jcs.util.*;

    public class Sql2OrderClient {
    public static void main (String args[]) {
    try{
    OrderXml order =
    new OrderXml("990704", "123","KAMAL:5000?user=sa");
    FileUtil.string2File("Order-sql2Order.xml",order.getXmlText());
    } catch (Exception e) {
    System.out.println("Exception:");
    e.printStackTrace();
    }
    }
    }

    can anybody help me to solve the problem pls also help with some sample code to transfer data from sql to xml and viceversa.or a reference to a web site of sample will be helpful

    Thanks
    Kamalakar Vangara

  2. #2
    Join Date
    Nov 2002
    Location
    Omaha, Ne
    Posts
    4
    Not sure about your problem, but the message
    "Method sql2order() not found in class jcs.xml.order.Ord" is referring to a method named >sql2order<.

    I don't see a method by that name in the Sql2OrderClient java code.

    I do see a filename of Order-sql2Order.xml. I suspect something is getting confused on what is a filename/string and what is a method invocation.

    HopeThisHelped.

    Brody

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •