×
××œ×—× ×Ÿ
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";
}
}
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";
}
}