function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
svidyansvidyan 

Add 'Not Null' checks in Generated WSDL

Hi,

 

I am new to creating webservices using Apex

svidyansvidyan

Sorry, this is a continuation of the earlier message.

 

I am new to creating webservices in apex. How do I add the 'Not Null' constraints in the generated wsdl?

Do I have to edit the wsdl manually for this or I can add this through apex code?

 

Similarly how to add other  contraints like 'Valid Values'?

 

thanks

Svidyan

NaishadhNaishadh

Hi,

 

WSDL is a virtual handshake between your application and outside world. you can't add any validation in wsdl. that part you need to take care in your application only.