cancel
Showing results for 
Search instead for 
Did you mean: 

Validating web services

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved Error