on 02-24-2006 11:00 AM
Hi,
The scenario I have in hand is this -
I have created a Webdynpro application wherein I have a <b>Webservice model</b>(Created from a WSDL file), a <b>custom controller</b>, a <b>view</b> which is mapped to my controller.
The structure of my context is as below -
Context
|-OrderWS
|- RequestNode
|-Item
|-Item1
|-Item2
|-Item3
|-Order
|-ItemA
|-ItemB
|-ResponseNode
The properties of the nodes are as below -
Property of <b>orderWS node</b>
Cardinality : 0...1
Collection Type: list
initialleadselection:true
selection:0..1
singleton: true
typedaccessrequired: true
Property of <b>Requestnode</b>
Cardinality : 0...1
Collection Type: list
initialleadselection:true
selection:0..1
singleton: true
typedaccessrequired: true
Property of <b>NodeA</b> & <b>Node B</b>
Cardinality : 0...1
Collection Type: list
initialleadselection:true
selection:0..1
singleton: true
typedaccessrequired: true
I have done the necessary mappings between my view
<->Controller <-> Model.
When I execute my application , I get an error message "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [Node B] of class [com.sample.createorder.proxies.types.DT_OrderREQUEST_HTTP] must exist and can not be null. This is required by schema description."
Is this because I have not set certain values of the "order" node?
Have I missed out anything necessary to execute the model?
Please suggest.
-Ashwini.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwini,
You need to set certain attributes before calling the webservice.
Please check the mandatory attributes and set those attributes uisng
wdContext.current<<Node>>element().set<<Attrib>>(<<Value>>)
and call the webservice.
Best Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwini,
change the cardinality property of your Request node to 1...1 or 1...n. It shouldn't be 0...1.
Regards,
Satyajit.
Message was edited by: Satyajit Chakraborty
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.