on 02-29-2012 3:12 PM
Hello,
I've got a big problem comsuming a Business Rules Management (BRM) Webservice (Netweaver 7.3) in my Web Dynpro app.
In WSNavigator the webservice is running fine and fully functional.
I created a custom controller by using the "apply template" function and selecting the mentioned webservice, which I have imported before.
The following methods were created within the custom controller: executeInvokeRules() and initRequest_InvokeRules() .
When I just execute the webservice the error, that there are mandatory input parameters occures. That's OK!
But when I want to set the values to the attribtues in my custom controller, the following error occures:
com.sap.tc.webdynpro.progmodel.context.ContextModelException: Node(ConfigureAngebot/PreisfindungRController.Request_InvokeRules.RequestAufpreisfindung.Aufpreise_1.AufpreiseType_1.Preise_1, class=de.mycomp.mydevision.bau.angebot.admin.wd.wd.comp.configureangebot.wdp.IPublicPreisfindungRController$IPreise_1Node): <modelObject class="de.mycomp.mydevision.bau.angebot.admin.wd.wd.models.preisfindungr.AufpreiseType_Sequence1__"><target roleName="Preise"></target></modelObject> delivered no object for supplying relation role Preise, but the relation cardinality requires one
at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyRelation(DataNode.java:229)
Any help would be apprecited.
Thanks ahead,
Bernd
Hello Bernd,
this error is a singleton characteristic issue. You get this error if you try to use singleton context node without setting lead selection before. If you are using singleton context nodes and want to set attributes, you have to work like this:
ISingletonNode singletonNode = wdContext.createAndAddSingletonNode();
wdContext.nodeSingletonParent.setLeadSelection(singletonParent.index());
wdContext.currentSingletonParent.setExampleValue("Test");
For Lead selection you can also use constant IWDNode.LEAD_SELECTION
BR , Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Dont use apply template for web service ,Create the model and execute web service using your own code
Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.