cancel
Showing results for 
Search instead for 
Did you mean: 

bapi as web service - required by schema description

Former Member
0 Kudos

Hello,

I exposed a BAPI as a web service. Lets take for example the bapi to update / change a business partner. When trying to update for example the first name I have to create a complex type: centralPersonData and I have to create ALL simple types that are subtypes of centralPersonData even when I only want to change one of this attributes otherwise I will get a:

com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [...] of class [...] must exist and can not be null. This is required by schema description.

I know that I get this error because the XML element tags are not created when I do not initialize the values. In the moment I initialize all values "by hand" and have to write sometimes about 50 lines of code only to update one value. Is there a better way to solve this?

Thanks for your answers!

Felix

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Felix,

I think you need to write the code,currently webDynpro is not generating the required initialization code !!!

Regards,Anilkumar

Former Member
0 Kudos

Thanks for your fast response.

Answers (1)

Answers (1)

Former Member
0 Kudos