Skip to Content
0
May 17, 2018 at 06:57 AM

Real-time Service: validate requests against detailed WSDL specification

335 Views

We have enhanced a .xsd file with descriptions for the expected data type, the expected length and so on.

WSDL looks fine, example:

  <xs:simpleType name="CAMPAIGN_ID">
    <xs:restriction base="xs:string">
      <xs:maxLength value="12" /> 
      <xs:minLength value="10" /> 
      <xs:pattern value="[C-]+[0-9]{8,}" /> 
  </xs:restriction>
  </xs:simpleType>

...but it has no effect. How can I activate validation at the web service endpoint?

I guess this should be done in some tomcat configuration. I could not find a hint in the SAP documentation.

Best regards, Martin