Parsing condition out of a string

Hi,
If I have a string, for example test := 'length(x) > 10';, is it then possible to use it in a condition? Like:
if test = true then
where oracle should see: if length(x) > 10 = true then
thanks

<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Freek D ([email protected]):
Hi,
If I have a string, for example test := 'length(x) > 10';, is it then possible to use it in a condition? Like:
if test = true then
where oracle should see: if length(x) > 10 = true then
thanks<HR></BLOCKQUOTE>
Yes, it's possible, by passing the whole command to the DBMS_SQL package.
Hope this will help...
Thomas.
Thomas Devalli
KSI Int'l
[EMAIL][email protected][EMAIL]
www.ksi.be
null

Similar Messages

  • How to find out if a string is all alphabets

    Hi,
    How can I find out if a string contains all alphabets? Please help. Thanks.

    Hi,
    How can I find out if a string contains all
    all alphabets? Please help. Thanks. I am not sure if there's easier way. But this code should do what you want:
    boolean bAlpha = true;
    for (int i=0; i<str.length; i++)
    if (!Character.isLetter(str.charAt(i))){
    bAlpha = false;
    break;
    //bAlpha is true if str contains only alphabets.

  • Parseing a Float from a string.

    Does anyone know how to parse a float from a string variable? The documentation says there is a method for it, it doesn't say what it is(?).
    I.e. the equavilent of int this_num.parseint(this_string) only for a float.
    Thanks.

    Thanks, that helped...now for another apparently stupid question....
    How do you add two floats??
    I have:
    fInvAmount = fInvAmount + Float.parseFloat(rsSmartStreamInvoice.getString("invoice_amt"))
    and it tells me that 'operator + cannot be applied to java.lang.Float,float'

  • Want to cut the blanks out of a String

    Hi
    I have a Problem getting the Characters out of a String.
    I get a String that looks like " I like Strings ".
    and want to change it into something like this "I like Strings".
    Thanx in advance.

    You could also use the class StringBuffer. In contrast to String StringBuffer was designed to manipulate Strings:
    String s = "-I like Strings-";
    StringBuffer sb = new StringBuffer(s);
    sb.deleteCharAt(0); // or: sb.delete(0, 0);
    sb.deleteCharAt(sb.length() - 1);
    sb.delete(0, 1);
    sb.delete(sb.length() - 1, sb.length());
    System.out.println(sb.toString());
    That's all ;-)

  • NEED HELP:To Parse Conditional Operator Within An Expression.

    Hi there:
    I'm having some difficulties to parse some conditoional operator. My requirements is:
    Constants value: int a=1,b=2,c=3
    Input/Given value: 2
    conditional operator expression: d=a|b|c
    Expected result: d=true
    Summary: I like to receive a boolean from anys expressions defined, which check against Input/Given value.Note: The expression are various from time to time, based on user's setup, the method is smart enough to return boolean based on any expression.
    Let me know if you have any concerns.
    Thanks a million,
    selena

    here is a simple example.
    BNF changes
    EXPR ::= OPERATOR
    EXPR ::= OPERATION OPERANT EXPR
    This is as far as I can go, please use it as a template only
    because you need to take into account the precedence using ()
    the logic of the eval was simply right to left so I think it is not what you want
    Cheers
    public interface Expression
         String OR = "|";
         String AND = "&";
         public boolean eval(int value) throws Exception;
    public class ExpressionImpl implements Expression
         public String oper1;
         public String operant;
         public Expression tail;
         /* (non-Javadoc)
          * @see parser.Expression#eval()
         public boolean eval(int value) throws Exception
              int val1 = getValue(oper1);
              if (null == tail)
    System.out.println(val1 + ":" + value);               
                   return (val1 == value);
              else
                   if (OR.equals(operant))
                        return (val1 == value || tail.eval(value));
                   else if (AND.equals(operant))
                        return (val1 == value && tail.eval(value));
                   else
                        throw new Exception("unsupported operant " + operant);
         private int getValue(String operator) throws Exception
              Integer temp = ((Integer)Parser.symbol_table.get(operator));
              if (null == temp)
                   throw new Exception("symbol not found " + operator);
              return temp.intValue();
         public String toString()
              if (null == operant) return oper1;
              return oper1 + operant + tail.toString();
    public class Parser
         public static HashMap symbol_table = new HashMap();
          * recursive parsing
         public Expression parse(String s)
              ExpressionImpl e = new ExpressionImpl();
              e.oper1 = String.valueOf(s.charAt(0));
              if (s.length() == 1)
                   return e;
              else if (s.length() > 2)
                   e.operant = String.valueOf(s.charAt(1));
                   e.tail = parse(s.substring(2));
              else
                   throw new IllegalArgumentException("invalid input " + s);
              return e;
         public static void main(String[] args) throws Exception
              Parser p = new Parser();
              Parser.symbol_table.put("a", new Integer(1));
              Parser.symbol_table.put("b", new Integer(2));
              Parser.symbol_table.put("c", new Integer(3));
              Parser.symbol_table.put("d", new Integer(4));
              Expression e = p.parse("a|b|c&d");
              System.out.println("input " + e.toString());
              System.out.println(e.eval(2));
    }

  • How to find out what a string contains?

    I'm in the process of writing an XML parser for a project that I am working on. There will be one field in the XML that can be used to store an int, a date, or a string. I need to figure out a way to determine if that field contains an int, a date, or a string without modifying the XML at all. Meaning I can't just put an indicator in the XML itself. So given the string of data from the xml, how do I figure out what it is so that I can convert it to that type?
    Any help would be appreciated as I don't have much time left to work on this.

    How are you going to be able to tell?
    There will be one field
    in the XML that can be used to store an int, a date,
    or a string. "20010101" fits all three. In the absence of any other information, there's no way to tell what the sender meant the type to be.
    Now, if you assume some formatting information, then you have a chance. Let's say that "dates" MUST be in the format "YYYY-mm-dd hh:MM:ss". Use SimpleDateFormat and Calendar and try to parse the string. If it works - it's a Date.
    If it doesn't work - try to parse it as an Integer. If it works - it's an int.
    If THAT doesn't work - give up and just use the String.
    Does that help?
    Grant

  • Parse lines out of a StringBuffer and/or InputStream

    I am loading and parsing a ~40MB text file. I am retrieving this file using the JCraft JSch SFTP library. This has given me no problems so far.
    Since I need to process this file line by line, my first approach was to read a character at a time off the InputStream provided by the SFTP library, collect characters until a new line was reached, then parse the line. This proved to be extremely slow. Now I'm pulling 1024 characters at a time into a byte[] from the stream and pushing that array into a StringBuffer until the end of the stream has been reached. It has sped up considerably, but now I don't know what the best way would be to process the buffer.
    What would be the best way to split off and process every line of this file? It seems redundant to pull the whole thing into a string buffer then parse it again by using charAt() and substring() to find and chop off lines. Reading character by character from the stream works in theory but is much too slow. Trying to parse the byte[] with fragments of lines is impractical and error prone.
    Memory is not an issue since it is running on a dedicated batch server, but speed is important.
    Thank you.

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    public class ReadLines {
        public static void readLinesFromInputStream(InputStream is)
             throws IOException {
         BufferedReader reader = new BufferedReader(new InputStreamReader(is),
              1024 * 1024);
         String line;
         while ((line = reader.readLine()) != null) {
             System.out.println(line);
    }Piet

  • Parsing multiple digit numbers from string

    I have a string, specifically "Cups = 30" that I need to parse out "30" from. How can I do this? I've gone through tokenizing, it's dirivng me crazy!!

    This program will help you
    import java.util.*;
    class s21
    public static void main(String args[])
    try
    String s1="Cups=30";
    StringTokenizer st=new StringTokenizer(s1,"=");
    while(st.hasMoreTokens())
    st.nextToken();
    System.out.println(st.nextToken());//This statement will
    give 30 as output
    catch(Exception e)
    System.out.println(e);

  • DBMS_SQL.parse error when working with string 32k

    Hi,
    In order to execute a dynamic string > 32 k , i followed metalink note: 77470.1 :" How to Execute DML and DDL Statements Larger than 32k Using dbms_sql "
    When running a procedure to dynamicaly recreate a view i got the following error message.
    Can one suggest what to do ?
    Thanks
    begin
    2 recreate_dynamic_views(to_date('01/01/2008','dd/mm/yyyy'),
    3 to_date('01/05/2009','dd/mm/yyyy'),
    4 to_date('01/12/2006','dd/mm/yyyy')
    5 );
    6 end;
    7 /
    prod_num_of_months=16
    begin
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 1600
    ORA-06512: at "SYS.DBMS_SQL", line 26
    ORA-06512: at "MYUSER.RECREATE_DYNAMIC_VIEWS", line 87
    ORA-06512: at line 2
    Line 87 is :
    DBMS_SQL.parse (cursor_id, create_stmt, 1, ub, TRUE, DBMS_SQL.native);
    The source code :
    CREATE OR REPLACE procedure recreate_dynamic_views(p_prod_from_month_include date,
    p_prod_until_month_include date,
    p_hist_until_month_include date)
    is
    -- example : exec recreate_dynamic_views(to_date('01/01/2008','dd/mm/yyyy'),
    -- to_date('01/05/2009','dd/mm/yyyy'),
    -- to_date('01/12/2006','dd/mm/yyyy'))
    CURSOR c (v_instance_type VARCHAR2)
    IS
    SELECT view_name, view_text, month_exp, instance_type, start_from,
    complex_view, union_with,
    ROUND(months_between(to_date(p_prod_until_month_include,'DD/MM/YYYY'),
    to_date(p_prod_from_month_include,'DD/MM/YYYY')
    ) prod_num_of_months,
    months_between(to_date(p_hist_until_month_include,'DD/MM/YYYY'),
    to_date(START_FROM,'DD/MM/YYYY')
    ) hist_num_of_months
    FROM list_of_views
    where instance_type = v_instance_type
    and view_name = 'V_MY_CALLS';
    v_str_header VARCHAR2 (32000);
    v_str VARCHAR2 (32000);
    v1 VARCHAR2 (4);
    v_month VARCHAR2 (200);
    v_instance VARCHAR2 (20);
    v_instance_type VARCHAR2 (20);
    v_start_from VARCHAR2 (10);
    v_num_of_month NUMBER;
    v_its_new_view VARCHAR2 (1) := 'Y';
    create_stmt DBMS_SQL.varchar2a;
    ub NUMBER := 0;
    cursor_id INTEGER;
    ret_val INTEGER;
    BEGIN
    dbms_output.enable(1000000);
    --DBMS_OUTPUT.put_line ('start hir');
    SELECT UPPER (instance_name)
    INTO v_instance
    FROM v$instance;
    --DBMS_OUTPUT.put_line ('v_instance=' || v_instance);
    IF UPPER (v_instance) LIKE '%HST%'
    THEN
    v_instance_type := 'HISTORY';
    ELSE
    v_instance_type := 'BILLING';
    END IF;
    IF v_instance_type = 'BILLING'
    THEN
    for c_rec in c(v_instance_type) loop
    v_str_header := null;
    v_str := null;
    ub := 0;
    ret_val := null;
    dbms_output.put_line('prod_num_of_months='||c_rec.prod_num_of_months);
    for i in 1..(c_rec.prod_num_of_months+1) LOOP
    if i=1 then -- you should create the header
    v_month := ' select to_char(add_months(to_date(:until_date,''dd/mm/yyyy''),' || TO_NUMBER (i-1)|| '),''' || c_rec.month_exp || ''') from dual';
    EXECUTE IMMEDIATE v_month
    INTO v1 using p_prod_until_month_include;
    v_str_header := 'CREATE OR REPLACE VIEW '||c_rec.view_name||' AS '||chr(10);
    v_str := v_str_header||' '||c_rec.view_text||v1||chr(10);
    ub := ub + 1;
    create_stmt (ub) := v_str;
    else
    v_month := ' select to_char(add_months(to_date(:until_date,''dd/mm/yyyy''), -'||to_number(i-1)||'),'''||c_rec.month_exp||''') from dual';
    execute immediate v_month
    into v1 using p_prod_until_month_include;
    v_str := v_str ||'UNION ALL '||chr(10)||c_rec.view_text||v1||chr(10);
    ub := ub + 1;
    create_stmt (ub) := v_str;
    end if;
    end loop;
    cursor_id := DBMS_SQL.open_cursor;
    DBMS_SQL.parse (cursor_id, create_stmt, 1, ub, TRUE, DBMS_SQL.native);
    ret_val := DBMS_SQL.EXECUTE (cursor_id);
    dbms_output.put_line('View '||c_rec.view_name||' Created');
    end loop;
    ELSE -- v_instance_type HISTORY
    FOR c_rec IN c (v_instance_type) LOOP
    dbms_output.put_line('c_rec.hist_num_of_months='||c_rec.hist_num_of_months);
    IF v_its_new_view = 'Y' THEN
    v_its_new_view := 'N';
    END IF;
    FOR i IN 1 .. (c_rec.hist_num_of_months+1) LOOP
    IF i = 1 THEN -- you should create the header
    v_month := ' select to_char(add_months(:start_date,' || TO_NUMBER (i-1)|| '),''' || c_rec.month_exp || ''') from dual';
    EXECUTE IMMEDIATE v_month
    INTO v1 using c_rec.start_from;
    v_str_header := 'CREATE OR REPLACE VIEW '|| c_rec.view_name || ' AS ' || CHR (10);
    v_str := v_str_header || ' ' || c_rec.view_text || v1 || CHR (10);
    ub := ub + 1;
    create_stmt (ub) := v_str;
    ELSE
    v_month := ' select to_char(add_months(:start_date, '
    || TO_NUMBER (i-1 )
    || '),'''
    || c_rec.month_exp
    || ''') from dual';
    EXECUTE IMMEDIATE v_month
    INTO v1 using c_rec.start_from;
    v_str := 'UNION ALL ' || CHR (10) || c_rec.view_text || v1 || CHR (10);
    ub := ub + 1;
    create_stmt (ub) := v_str;
    END IF;
    END LOOP;
    IF NVL (c_rec.complex_view, 'N') = 'Y' THEN
    v_str := 'UNION ALL ' || CHR (10) || c_rec.union_with || CHR (10);
    ub := ub + 1;
    create_stmt (ub) := v_str;
    END IF;
    v_its_new_view := 'Y';
    cursor_id := DBMS_SQL.open_cursor;
    DBMS_SQL.parse (cursor_id, create_stmt, 1, ub, TRUE, DBMS_SQL.native);
    ret_val := DBMS_SQL.EXECUTE (cursor_id);
    dbms_output.put_line('View '||c_rec.view_name||' Created');
    END LOOP;
    END IF;
    END;

    user546852 wrote:
    Hi,
    I dont think its possible in case when the string is more that 32K.
    ThanksIt is possible to create a SQL statement larger than 32K.
    Firstly, you need take your statement (easiest if it's built up in a CLOB), the split it up into the DBMS_SQL.VARCHAR2S array structure (_not_ the VARCHAR2A structure), and then execute that as your statement.
    Example:
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    v_large_sql  CLOB;
      3    v_num        NUMBER := 0;
      4    v_upperbound NUMBER;
      5    v_sql        DBMS_SQL.VARCHAR2S;
      6    v_cur        INTEGER;
      7    v_ret        NUMBER;
      8  begin
      9    -- Build a very large SQL statement in the CLOB
    10    LOOP
    11      IF v_num = 0 THEN
    12        v_large_sql := 'CREATE VIEW vw_tmp AS SELECT ''The number of this row is : '||to_char(v_num,'fm0999999')||''' as col1 FROM DUAL';
    13      ELSE
    14        v_large_sql := v_large_sql || ' UNION ALL SELECT ''The number of this row is : '||to_char(v_num,'fm0999999')||''' as col1 FROM DUAL';
    15      END IF;
    16      v_num := v_num + 1;
    17      EXIT WHEN DBMS_LOB.GETLENGTH(v_large_sql) > 40000 OR v_num > 800;
    18    END LOOP;
    19    DBMS_OUTPUT.PUT_LINE('Length:'||DBMS_LOB.GETLENGTH(v_large_sql));
    20    DBMS_OUTPUT.PUT_LINE('Num:'||v_num);
    21    --
    22    -- Now split that large SQL statement into chunks of 256 characters and put in VARCHAR2S array
    23    v_upperbound := CEIL(DBMS_LOB.GETLENGTH(v_large_sql)/256);
    24    FOR i IN 1..v_upperbound
    25    LOOP
    26      v_sql(i) := DBMS_LOB.SUBSTR(v_large_sql
    27                                 ,256 -- amount
    28                                 ,((i-1)*256)+1 -- offset
    29                                 );
    30    END LOOP;
    31    --
    32    -- Now parse and execute the SQL statement
    33    v_cur := DBMS_SQL.OPEN_CURSOR;
    34    DBMS_SQL.PARSE(v_cur, v_sql, 1, v_upperbound, FALSE, DBMS_SQL.NATIVE);
    35    v_ret := DBMS_SQL.EXECUTE(v_cur);
    36    DBMS_OUTPUT.PUT_LINE('View Created');
    37* end;
    SQL> /
    Length:40015
    Num:548
    View Created
    PL/SQL procedure successfully completed.
    SQL> select count(*) from vw_tmp;
      COUNT(*)
           548
    SQL> select * from vw_tmp where rownum <= 10;
    COL1
    The number of this row is : 0000000
    The number of this row is : 0000001
    The number of this row is : 0000002
    The number of this row is : 0000003
    The number of this row is : 0000004
    The number of this row is : 0000005
    The number of this row is : 0000006
    The number of this row is : 0000007
    The number of this row is : 0000008
    The number of this row is : 0000009
    10 rows selected.
    SQL>

  • How do you make Robot type out a variable String?

    I don't know why I'm having an issue with this. I want the Robot class to type out a string one character at a time as if I were sitting at the keyboard and doing it myself. There will be many, variable strings to type. Here is what I tried to do and it fails miserably:
    private String myString = "example";
    // Loop for each character in the string
    for(int i=0; i<numChars; i++)
         // Get the current character
         myChar = myString.charAt(i);
         // Convert the character to a keycode
         myKC = (int)myChar;
         // Press the key, release the key
         myRobot.keyPress(myKC);
         myRobot.delay(10);
         myRobot.keyRelease(myKC);
    }When I run it, I get some unexpected output in the Notepad window I have open. Instead of it spelling out "example", it gives me something entirely different:
    e - instead of 'e', it gives me a '5'
    x - instead of 'x', it gives me nothing at all
    a - instead of 'a', it gives me a '1'
    m - instead of 'm', it gives me a '-'
    p - instead of 'p', 'F1' is triggered and the Notepad help window pops open
    l - instead of 'l', it gives me nothing at all
    e - instead of 'e', it gives me another '5'
    What am I doing wrong here? This was supposed to be easy...
    Edited by: ConQuesimo on Jan 19, 2010 12:06 AM

    ConQuesimo wrote:
         // Convert the character to a keycode
         myKC = (int)myChar;
    I don't see a keycode conversion here, keycodes for a to z are the same as ASCII, what I do see is an int conversion of what ever character set you have running on your computer. If I take your approach to conversion, then I get different codes on different keyboards/systems also. What I finally ended up doing is making a map for my keys and everything started working fine.
    For me, the problem expressed itself when I went from my Windows with MS-Keyboad to my Ubuntu with an earlier style MS-Keyboad. Character values and single character strings come out fine, but when I would try converting char to KeyCode as you have done, the results were not always what was desired. I've not looked into it to see what was actually causing the problem, ti was faster and easier just to make the map.

  • A method which prints out if a strings starts with a character or not

    Below you can see what I have made :
    public class StringZerleger {
    public static void main(String args[]) throws Exception{
    new StringZerleger().zerlegeString();
    public void zerlegeString()
    String s3 = "_a b c d";
    String [] temp = null;
    temp = s3.split(" ");
    dump(temp);
    public void istGueltigerBezeichner()
    String s3 = String s3;
    boolean b = s3.regionMatches( 1, "_", 1, 1 );
    public void dump(String []s)
    System.out.println("------------");
    for (int i = 0 ; i < s.length ; i++)
    System.out.println(s);
    System.out.println("------------");
    unfortunately it doesn't work as I want it to work.
    Could someone help me please ?

    Below you can see what I have made :
    public class StringZerleger {
    public static void main(String args[]) throws
    Exception{
    new StringZerleger().zerlegeString();
    public void zerlegeString()
    String s3 = "_a b c d";
    String [] temp = null;
    temp = s3.split(" ");
    dump(temp);
    public void istGueltigerBezeichner()
    String s3 = String s3;
    boolean b = s3.regionMatches( 1, "_", 1, 1 );
    public void dump(String []s)
    System.out.println("------------");
    for (int i = 0 ; i < s.length ; i++)
    System.out.println(s);
    System.out.println("------------");
    unfortunately it doesn't work as I want it to work.
    Could someone help me please ?
    It shouldn't even compile.
    This method
    public void istGueltigerBezeichner()
    String s3 = String s3;
    boolean b = s3.regionMatches( 1, "_", 1, 1 );
    }1) is never called,
    2) should return a boolean
    3) should accept the string you are testing as a parameter
    4) should be redone using a different method of String
    private boolean istGueltigerBezeichner(String str)
    if(str == null)
        return false;
    return "_".equals(str.substring(0,1));
    }Then call this method from with you loop, before your println statement
    ~Tim
    Message was edited by:
    SomeoneElse

  • Parsing Metadata out of a file

    Hey,
    does anyone know how to read metadata (XMP, EXIF, IPTC)
    stored in a file with Flex?
    I want to parse the File (in a ByteArray?) and read the
    informations out at runtime.
    Thanks

    Hi,
    I'm in need of such a library too. Actually I should be able
    to read iptc of an image before uploading this image to the server
    with flex. I'm not sure this is possible because of security
    reasons. Can anyone confirm if this is possible?
    I found an undocumented library at
    http://reader.imagero.com/flex/
    but haven't got it to work yet.
    please reply on this post if you know any more details about
    this subject.
    Thanks and Kind regards,
    Bogguard

  • Pull out part of string

    I have program that gives me the following data:User[type=Call Manager User,id=usersname,authenticated=true]I need to pull out just the part that is "usersname"
    The length of this part is variable, the rest is not.
    I don't normally program and am not very java familiar at all all.
    Thanks in advance!!

    Assuming the data you have is a String, and as you have said, it will always be the same apart from the id part, you could use the split method followed by the substring method to isolate the part you need. Something like:
    String[] arr = yourString.split(",");
    String id = arr[1].substring(3);Basically, you split the string into an array, using the commas as the delimeter, which will put "id=usersname" in the 2nd element of the array. Then, use the substring method to get the part of the string after the first 3 characters, "id=". Hope that helps.

  • ENHANCEMENT: parse condition queries in builder

    The conditions box on item attributes does not seem to parse the condition statement when saving; unlike the region source or process source.
    It would be helpful if the conditions box parsed the statements of type plsql expression, function body, sql query when they are saved displaying any parsing errors so that they can be fixed at time of writing

    Farhan - thanks, that's on our list.
    Scott

  • Struggling to create a Document out of xml string

    I am trying to parse a simple xml into a Document. I have already tried Jaxb but gave up( the file i need to unmarshall is quite complicated the output kept bombing with the soap exception "premature end of file") so I went down this route, only to find that it is impossible to get working. I have already see the other thread with a similar issue but the workaround suggested does not work. Here is my code;
    try {
    javax.xml.parsers.DocumentBuilderFactory docFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
    javax.xml.parsers.DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
    docFactory.setNamespaceAware(true); <-- these 2 lines done as per recommendation here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181020
    docFactory.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); <;-- these 2 lines done as per recommendation here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181020
    Document doc = docBuilder.parse("c:\\users\\ildsarria\\desktop\\test.xml");
    System.out.println(doc.getDoctype() +"|"+ doc.getLocalName() +"|"+ doc.getDomConfig() +"|"+ doc.getLocalName());
    } catch (ParserConfigurationException ex) {
    System.err.println(ex.getStackTrace().toString());
    } catch (Exception e) {
    System.err.println(e.getStackTrace().toString());
    No exception is thrown and the output is always null :
    null|null|[email protected]50|null
    I have tried this in netbeans and eclipse, and also with different files, lastly using this one just to try get it to pass:
    <?xml version="1.0" encoding="UTF-8"?>
    <Personnel>
    <Employee type="permanent">
    <Name>Seagull</Name>
    <Id>3674</Id>
    <Age>34</Age>
    </Employee>
    <Employee type="contract">
    <Name>Robin</Name>
    <Id>3675</Id>
    <Age>25</Age>
    </Employee>
    <Employee type="permanent">
    <Name>Crow</Name>
    <Id>3676</Id>
    <Age>28</Age>
    </Employee>
    </Personnel>
    Any help would be greatly appreciated !
    Edited by: ildsarria on Feb 9, 2010 11:28 AM

    OK I have added the MTOM annotations and imported the package, and this allows my WS to deploy, however when i run it i get the java.lang.reflect.InvocationTargetException message ( see below)
    import javax.xml.ws.soap.MTOM;
    @MTOM
    @WebService(name="Dfp",
                serviceName="DfpService",
                targetNamespace="")
    @Stateless()
    plublic class ..Part of the exception that I think is the clue :
    ...33 more Caused by: javax.xml.bind.UnmarshalException - with linked exception: [javax.xml.bind.UnmarshalException: Unable to create an instance of aem.adservices.dfp.ws.InputStream - with linked exception: [java.lang.InstantiationException]] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:425) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:362) at com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:120) at com.sun.xml.bind.api.Bridge.unmarshal(Bridge.java:233) at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:547) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:121) ...So I don't think it was enough to just include the annotations to be able to return the InputStream. Can anyone please help?
    Many thanks

Maybe you are looking for

  • Error msg: user's ipod can not be read or written to. how do i fix this?!?

    after putting the latest ipod update on my mini and restoring i hav been havin problems with it. when transfering my songs to ipod it only transfered about 30 of 600 then it just stopped and came up with the error message i've tried restoring my ipod

  • [svn] 3936: Added flag to force the creation of a displayObject for a GraphicElement

    Revision: 3936 Author: [email protected] Date: 2008-10-28 17:27:07 -0700 (Tue, 28 Oct 2008) Log Message: Added flag to force the creation of a displayObject for a GraphicElement SDK-17818 - calling getBitmapData on a GraphicElement that shares it's d

  • XML Payload Response Syn scenario not comming

    Hi all, I am working in a SOAP-->JDBC syncronous scenario. I am doing an INSERT into a JDBC data base. I am able to do the insert, but I can not map de response message from data base. I get a Mapping error. I guess that this error is due to my defin

  • How to set a template to multiple pages

    Hello, I'm using Oracle Portal 10.1.2.0.2 and I've created a hiearchy of pages and a template with regions for banner, navigation portlet and content area and I want to set up this template to multiple pages. Manually and uncomfortably, I can edit my

  • The number pad on my wirelss keyboard has stopped working...help!

    Hi All, New to macs, I have a new interl-based iMac with a wireless keyboard and mouse. Yesterday the number pad stopped working. The CD eject and sound buttons still work, but the numbers themselves do not - in fact when I use them, the whole machin