cancel
Showing results for 
Search instead for 
Did you mean: 

Reimport Adaptive Web Service

Former Member
0 Kudos

I have exposed a stateless session bean as a web service imported it through an adaptive web service model in Web Dynpro.

Now I have modified the api of the session bean (and thus the web service) and wish to reimport it in my Web Dynpro application. However the option "Reimport model" is disabled. How can I reimport the model?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to re-create your model. Delete the older one and create the new one. Build and deploy the DC. After this re-start the server.

Hope this helps.

thanks & regards,

Manoj

Former Member
0 Kudos

Hi Manoy

I have done it like that a few times already. However, this means I have to re-do the context mapping also. And worse, I had one model in which I had to change some node names upon import (because of namespace conflicts). In this case, I could not simply re-bind the model in the controller, but I had to completely clear the context in the controller and the view controller and then re-map everything. That does not not seem like a practical approach to me.

Note that I create my model in the same project in which I develop my application. Would it work better if I put my model in a separate project?

Kind regards

Steven

Former Member
0 Kudos

Hi,

Ya i know this drawback. But the better approach is that you take the snap-shot of model binding from model to component controller. Then while re-creating give the same name. This will not effect your coding but other binding you need to do.

This problem was less in my case because i had a seperate DC for model and my UI elements were mapped with value nodes. In your case if your UI elements are directly mapped with model nodes then you need to do this manually.

thanks & regards,

Manoj

Former Member
0 Kudos

Thanks, I'll experiment with the approach you describe.

Does any one know in which case the "Reimport" option is enabled. (It must be there for some purpose).

Former Member
0 Kudos

Hi,

Please check the link below:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b04308ed-62d5-2910-b3a6-c26771b1...

Hope this will clarify some of your doubt.

thanks & regards,

Manoj

Former Member
0 Kudos

Aha, most interesting. This looks like a workable procedure.

Thank you

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Rather than Re importing model create a new model and do the process.

Thanks,

Tulasi