on 06-23-2008 10:54 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavan,
I tried that but its still the same
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.