on 08-28-2006 5:24 PM
Hi everybody
I have a web service for data validation which returns boolean if all data is correct and false if not.
My question is how do I call this webservice to return me a boolean value (I don't undersatnd well how this works in Web Dynpro)
I have been trying with web services as it follows
Controllers methods:
public void sendHeaderData( )
{
//@@begin sendHeaderData()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try{ wdContext.currentRequest_ValidacionServiceViDocument_validaFechaElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
}catch(Exception ce) {
manager.reportException(ce.getMessage(), false);
}
//@@end
}
public void wdDoInit()
{
//@@begin wdDoInit()
//$$begin Service Controller(303787628)
wdContext.nodeRequest_ValidacionServiceViDocument_validaFecha().bind(
new Request_ValidacionServiceViDocument_validaFecha());
//$$end
//@@end
}
and in the init method of my view:
public void wdDoInit()
{
//@@begin wdDoInit()
//$$begin Service Controller(303787628)
wdContext.nodeRequest_ValidacionServiceViDocument_validaFecha().bind(new Request_ValidacionServiceViDocument_validaFecha());
//$$end
//@@end
}
I think it works with void methods but how can I do with return methods like the following one?
public boolean validaFecha(String date);
Thanks for all your help.
Regards.
Gino
Solved Error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.