cancel
Showing results for 
Search instead for 
Did you mean: 

problem in passing parameters to webservice

Former Member
0 Kudos

Hello,

I've created a simple web service for displaying Hello<UserName> wherein User Name is the input parameter. Ive created the imported the model and have mapped it to the view using custom controller.

On running the application im getting following illegal argument exception:

Attribute name 'Name' not defined for model class 'SayHello

This exception is coming at the line where im setting the import parameter in the view. This line has been displayed in bold in my code for execution of the model shown below,

try{

InputService objInput = new InputService();

SayHello objSayHello = new SayHello(objInput);

IPrivateInputServicesView.ISayHelloElement eleSayHello;

wdContext.nodeSayHello().invalidate();

eleSayHello = wdContext.nodeSayHello().createSayHelloElement(objSayHello);

wdContext.nodeSayHello().bind(eleSayHello);

eleSayHello.setName("Gaurang");

}

catch(IllegalArgumentException e)

{

wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());

}

Please help/suggest in solving this issue.

Thanks and Regards

Gopi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

closing the message