cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice

Former Member
0 Kudos

Hi all,

I am trying to use the webservice as a model to my webdynpro application . I have imported this webservice into model and i can see all methods and variables in that webservice. I kept that in Used models and done all the bindings and created a view.

Now the problem is when i deploy my application the input fields are getting disabled(the problem which we normally get because of cardinality). But i cannot change the cardinality since that is a model node which i am using. Kindly help me with a solution.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi tulasi,

The initial problem(input fields not enabled) is solved by using "import webservice model(depricated",instead of :"import adaptive web service model" . Because when i use adaptive webservice model the node structure is differing . And also I got service call exception (unauthorised) while doing this application.

So while creating the application I have selected the authorization level as Simple SOAP.

These two steps resolved the issue.

Former Member
0 Kudos

solved

Former Member
0 Kudos

can you explain me the solutioin?

Former Member
0 Kudos

Hi all,

Thanks for your answers. Finally i am able to resolve it to some extent . Its working when I use the option "Import Webservice model(depricated) its working . But when i use "Import adaptive webservice model" its not working .

The diffierence i observed with these options is when I use depricated option its giving me a different node structure . So my input fields are not getting disabled. But when I use the adaptive webservice model its giving a different node structure.

So if any one can help me out of this it would be very helpful to me.

Thanks in advance.

Former Member
0 Kudos

Hi check the carinality of adative rfc model it is in 0 to 1.

Former Member
0 Kudos

Hi Pavan,

I tried that but its still the same

former_member201361
Active Contributor
0 Kudos

Hi ,

have u tried to execute the model .

For eg :

EmployeeData model = new EmployeeData(); // model imported

Request_SaveEmp modelsave = new Request_SaveEmp(model);

SaveEmp reqsave = new SaveEmp(model);

modelsave.setSaveEmp(reqsave);

wdContext.nodeRequest_SaveEmp().bind(modelsave);

try{

//executing the model

wdContext.currentRequest_SaveEmp().modelObject.execute();

// Invalidating the model

wdContext.nodeResponse_SaveEmp().invalidate();

}catch (Exception e){

// check for any exception

}

finally copy the data from the model to the value nodes or vice versa .

thanks and regards

Former Member
0 Kudos

hi,

yuo have to creatye the instance of theWS model in the wd init of the component controller and then , create any new instances of the classes that are given as the parameter to the request class of the ws ,

then set to to the request class parmater instace to the requset class instance then bind it to the context

it will solve the purpose

EX:

EmployeeData model = new EmployeeData(); // model imported

Request_SaveEmp modelsave = new Request_SaveEmp(model);

SaveEmp reqsave = new SaveEmp(model);

modelsave.setSaveEmp(reqsave);

wdContext.nodeRequest_SaveEmp().bind(modelsave);

Regards

pavan

Former Member
0 Kudos

Hi,

I have applied service controller . So tht will be done automatically I hope.

Former Member
0 Kudos

i know but still u have to do as i said earlier,

Former Member
0 Kudos

did u try the solution i have provided