Skip to Content
0
Former Member
Dec 10, 2008 at 07:22 AM

WebService Error

14 Views

Hi All,

I am trying to invoke a webservice through webdynpro. I created a model and gave the url of wsdl. I am not using any logical destinations. When i ping the WSDL, it is working fine. I give a numeric value as input and gives displays the same value as response.

Component controller init

try

{

Value model = new Value();

Request_Data req = new Request_Data(model);

Data dat = new Data(model);

dat.setValue(2);

req.setData(dat);

wdContext.nodeRequest_Data().bind(req);

}

catch(Exception e1)

{

wdComponentAPI.getMessageManager().reportSuccess("Error comp"+e1.toString());

}

-


public void executeXacute( )

{

//@@begin executeXacute()

try

{

wdContext.currentRequest_DataElement().modelObject().execute();

wdContext.nodeResponse().invalidate();

}

catch(Exception e)

{

IWDMessageManager manager=null;

manager.reportException(e.getMessage(),true);

}

View

try

{

wdThis.wdGetMytest_compController().executeXacute();

}

catch(Exception e)

{

wdComponentAPI.getMessageManager().reportSuccess("Error view"+e.toString());

}

But it is throwing Error

"Error viewjava.lang.NullPointerException".

What could be the Problem? Why null pointer Exception happens? Can anyone help me out in this?

Thanx and Regards,

Divya