cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot bind WebService model nodes in Context-Coding

0 Kudos

Hi,

I try to bind a Model to my View's Context with this coding.

Request_WssprocessorViDocument_getKsViews request = new Request_WssprocessorViDocument_getKsViews();

wdContext.nodeResponse_WssprocessorViDocument_getKsViews().bind(request);

But I get the compilation error: The method bind(Collection) in the type IWDNode is not applicable for the arguments (Request_WSSprocessor...)

Can you tell me why?

best regards

Mathias

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mathias,

you try to bind the request to the response. Change the wdContext.nodeResponse_... to wdContext.nodeRequest... and it should work.

Hope that helps.

Regards

Stefan

0 Kudos

Hi,

I did what you said but that doesn't work either. I get the same error.

best regards

Mathias

Former Member
0 Kudos

hi Mathias,

it sounds like you have some wrong context-mapping.

If your WebService has a structure like:

"(class) RequestXXX" > "(relationship) ResponseXXX" > "(class) ResponseXXX" > "(relationship) ResultXXX" > "(class) ComplexTypeXX".

If you do (the component controller) model binding on the "(class) RequestXXX" and a context-mapping with the <b>same structure</b>, then you should be able to bind the request. If your View-Context was bound to the (component controller) "ComplexTypeXXX"-element (not to the request), then you'll get the error.

0 Kudos

Hi,

I could solve the problem. I just had to set the "typedAccessRequired" attribute of my node to true then the bind method worked...

best regards

Mathias