cancel
Showing results for 
Search instead for 
Did you mean: 

Exception handling in MI service call

Former Member
0 Kudos

Hi,

I have consumed MI service in web dynpro java.

I created model from local wsdl file etc and its working perfect

But one problem is that even though its succesful execution, it returns exception.

So I am not able to catch genuine failure cases.

I have tried all below three exceptions:

try{

wdContext.createRequest_MI_UI_BSCS_GL1_OUT_518Element(request_MI_UI_BSCS_GL1_OUT_518).modelObject().execute();

}

catch(Exception ex)

{

//wdComponentAPI.getMessageManager().reportException(ex.getMessage().toString(),true);

}

try {

wdContext.createRequest_MI_UI_BSCS_GL1_OUT_518Element(request_MI_UI_BSCS_GL1_OUT_518).modelObject().execute();

} catch (WDWSModelExecuteException e)

{

// TODO Auto-generated catch block

}

try {

wdContext.createRequest_MI_UI_BSCS_GL1_OUT_518Element(request_MI_UI_BSCS_GL1_OUT_518).modelObject().execute();

} catch (RuntimeException e2) {

// TODO Auto-generated catch block

e2.printStackTrace();

}

Accepted Solutions (0)

Answers (1)

Answers (1)

bhakti2
Active Participant
0 Kudos

i used runtime exception along with the wdwsmodel exception