on 10-25-2013 6:30 PM
Greetings All,
I am creating a service using transaction SEGW. I have created my data model as an XML file and imported it by right clicking Data Model->Import->Data Model From File. After writing some code for one of my entity_set methods, I realized that there was an additional entity_set that I needed to create. I created the entity_set using the SEGW UI. I then Generated my runtime objects. To my surprise, the code that I had written for the other entity_set had been overwritten. Is there any way to Generate Runtime Objects for when additions to the data model are made without overwriting existing code?
Regards,
Clayton
Hi Clayton,
You have modified the wrong class method.
Do not write your code in the DPC class. Choose the DPC_EXT class and redefine the method in question. The DPC_EXT version is never overwritten and is the first point of contact with the incoming request. DPC is always rebuilt as you may have added an entity, etc, which now needs a new method stub set.
If a method is not implemented, it falls back to the DPC class intentionally to notify that the method is not in use.
Regards
Ron.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.