cancel
Showing results for 
Search instead for 
Did you mean: 

Problems to call a webservice from nwds

Former Member
0 Kudos

Hi experts,

I've a problem when i try to call a webservice, the webservice structure is:

root

---> request

-


> item (0..n)

-


>fieldA(1)

--> response

-


> item (0..n)

-


>fieldb(1)

in the view and controller i have the same structure.

in the java code i populated the request structure manually in the view, the view structure is mapped directly to the controller structure.

but when i try to execute the webservice the values populated in the view don't arrive to the controller.

Any idea?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

First confirm whether the problem is with your context mapping or with webservice. Where are you setting the request parameters in view controller's Init or under any action. Check this by putting this code

wdComponentAPI.getMessageManager().reportSuccess(wdThis.wdGet<<ABCController().wdGetContext().currentA_InputElement().getAttribute())

This will check whether the values set in view context is passing to controller or not?

Regards

Raghu

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

First check if the webservice is working fine. Test the webservice from here.

http://host:port/wsnavigator

Once that is done, recheck the binding from the model and test the output.

Regards,

Harini S

former_member192434
Active Contributor
0 Kudos

Ho Joe,

I think the data is not getting set.

Try to check populated request data of view getting set to the conetxt of view or not.

Thanks