Skip to Content
author's profile photo Former Member
Former Member

Adaptive WebService Model- Controller Binding

HI,

Cannot execute a webservice from webdynpro applcn due to the error described at the bottom.

My Node Structure:

-Request1(0..n)

--ChildNode1(0..1) of Class ComplexType1

---ChildNode2(0..1) of Class ComplexType2

-


Required_Date

-


Required_Quantity

---Material

---Unit

Source Code:

Request1 input = new Request1();

wdContext.nodeRequest1().bind(input);

ComplexType1 input1 = new ComplexType1();

ComplexType2 input2 = new ComplexType2();

input2.setREQUIRED_DATE("20.06.2007");

input2.setREQUIRED_QUANTITY("5000");

input1.setChildNode2(input2);

input1.setMATERIAL("1000141000");

input1.setUNIT("ST");

wdContext.currentRequest1Element().modelObject().setChildNode1(input1);

try{

wdContext.currentRequest1Element().modelObject().execute();

wdContext.nodeResponse().invalidate();

}catch(Exception ex){

wdComponentAPI.getMessageManager().reportException(ex.toString(), false);

}

Exception:

java.rmi.RemoteException: Service call exception; nested exception is:

com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException:

XML Serialization Error. Property [ChildNode2] of class [com.test.model.proxies.types.ComplexType1]

must exist and can not be null

Is there anything missing which Iam not instantiating?

Regards

MK.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2007 at 10:04 AM

    Hi,

    You are missing

    wdContext.currentRequest1Element().modelObject().setChildNode2(input2);

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.