cancel
Showing results for 
Search instead for 
Did you mean: 

How can I fill a set parameters of a complex type?

Former Member
0 Kudos

Hi,

I have a webservice that needs three complex types. I try to fill these complex types and add them to the Complex type param. This is my code:

ComplexType_BAPI_SALESORDER_CREATEFROMDAT1 param = new ComplexType_BAPI_SALESORDER_CREATEFROMDAT1();

BAPISDHEAD bapishead = new BAPISDHEAD();

//adding the parameters

bapishead.setBILL_BLOCK(""); bapishead.setCD_CU_ISO1("");

...

msgMgr.reportSuccess("bapishead "+bapishead.getSALES_ORG());

param.setORDER_HEADER_IN(bapishead);

msgMgr.reportSuccess("orderHeadersin"+param.getORDER_HEADER_IN().getSALES_ORG());

The complex type bapishead contains the parameters I have added but the parameter param doesn't have the parameters. This is the output I get:

bapishead 0001

orderHeadersin null

Fehler java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [ORDER_HEADER_IN] of class [gg.proxies.types.BAPI_SALESORDER_CREATEFROMDAT1] must exist and can not be null. This is required by schema description.

What could be missing?

Thank you!

Julia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

check out Parag jain reply to this message:

Former Member
0 Kudos

Thank you, this solved my problem!

Answers (0)