Skip to Content
0
Former Member
Oct 19, 2012 at 06:40 PM

XSD restriction in SAP Webservice

215 Views

Hi,

We are creating webservice on SAP ECC which will be consumed by other system (messages are sending to SAP ECC). We need to implement below requirement:

<xsd:element name="Currency">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:enumeration value="USD"/>

<xsd:enumeration value="EUR"/>

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

1. We would like to process only those messages (webservices) where Currency = USD or Currency = EUR. for all other values, messages should be rejected by SOAP layer.

2. In WSDL provided by webservice on SAP ECC we would like to have to such information (only USD or EUR - as it is in code above)

Please note that we are not using SAP PI - we have direct connection with SAP ECC by Webservice.

Thanks,

Kari