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

  • Thread starter ×לחנן
  • Start date
×

×לחנן

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";
}
}
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top