trying to return a bean from a java web service...

Discussion in 'ASP .Net Web Services' started by ×לחנן, Mar 15, 2005.

  1. hi..

    i've been trying to return a bean from a java web service in dotnet,
    although the add web reference works i keep getting
    java.lang.reflect.InvocationTargetException

    the web service looks like this:
    class BeanData{
    private String messageData;
    private int messageCode;
    public BeanData(){};
    public BeanData(int Code,String Data)
    {
    messageCode=Code;
    messageData=Data;
    }
    public String getmessageData(){return messageData;}
    public int getmessageCode(){return messageCode;}
    public void setmessageData(String value){messageData=value;}
    public void setmessageCode(int value){messageCode=value;}
    }

    public class TestBean {

    public BeanData getBean()
    {
    BeanData d= new BeanData();
    return d;
    }
    public String getString()
    {
    return "Me";
    }
    }
     
    ×לחנן, Mar 15, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Benjamin Stewart

    To bean or not to bean...

    Benjamin Stewart, Jun 30, 2003, in forum: Java
    Replies:
    0
    Views:
    818
    Benjamin Stewart
    Jun 30, 2003
  2. David Thielen
    Replies:
    2
    Views:
    809
    Marek Lange
    Sep 12, 2003
  3. Markku Salminen
    Replies:
    3
    Views:
    5,868
    Michael Borgwardt
    Jan 21, 2004
  4. Takeshi
    Replies:
    0
    Views:
    525
    Takeshi
    Jan 28, 2004
  5. Elhanan
    Replies:
    0
    Views:
    407
    Elhanan
    Mar 15, 2005
Loading...

Share This Page