on 02-23-2006 12:30 PM
Hi,
I have created a Webservice model from a WSDL file, created a service controller and bound the same to the model. I have also created a view and bound my view to my controller.
The problem I am facing right now is that certain fields of my request are not getting set.
The structure of my context is as shown below
Context
|-OrderWS
|- RequestNode
|-NodeA
|-Item1
|-Item2
|-Item3
|-NodeB
|-ItemA
|-ItemB
|-ResponseNode
Even though I have created Item 1,Item2,Item 3 elements of Node A as input fields in my View, they cannot be edited, when I run my application.
Item1,Item2,Item3 have min occurance "0", max occurance "unbounded" , set in the WSDL file.
Is there any way by which I can set these values?
Why are only the Item1,2,3 fields not editable? (I have made sure that readonly =false,editable=true are set for these fields as they are for the other fields.)
-Ashwini.
Hello Ashwini,
If I understand you correctly, your problem is, the input fields that you've bound to a model node is
not open for editing. If yes then,I guess you are not setting the modelObject reference to the model node.
So use this code in the appropriate method (<i>according to your requirement</i>) to make the input fields editable.
I<yourView>.IOrderWSElement el
= wdContext.nodeOrderWSElement()
.createOrderWSElementElement(new <i><b>correspondingInterface</b></i>());
wdContext.nodeOrderWSElement().addElement(el);
wdContext.nodeRequestNode().bind(new <i><b>correspondingInterface</b></i>());
wdContext.nodeNodeA().bind(new <i><b>correspondingStructure</b></i>()());
If this is not the exact problem, then please give an eloborate picture of the scenario.
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.