Skip to Content

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


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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on Mar 08, 2017 at 12:10 PM

    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).



    Add comment
    10|10000 characters needed characters exceeded