cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PO Datatyp Occurrence 0..1 WSDL shows just minOccurrence 0

0 Kudos

Hi,

I noticed that in our SAP PI/PO system the WSDL just shows a minOccurs=0 even if I declared in the datatype the Occurence as 0..1. Some of our java developers face some problems with this in their frameworks.

Is this normal or do we have a bug in our system?

Accepted Solutions (1)

Accepted Solutions (1)

vadimklimov
Active Contributor
0 Kudos

Hi Simon,

It is not a bug in your system, but the way how XSD generator works in ESR. Absence of the attribute 'maxOccurs' for elements with cardinality 0...1, that you observe in generated WSDL of the service interface, comes from XSD representation of corresponding underlying data type. Reason for this is, XSD generator uses the default value '1' for 'maxOccurs'. In other words, only if 'maxOccurs' is different from '1', will XSD generator produce corresponding attribute - in case it is '1', this attribute will be omitted for the respective element in the generated XSD (and correspondingly in WSDL).

Regards,

Vadim

Answers (0)