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
SrinikaSrinika 

Marking wsdl fields as Mandatory

Hi,

I have created a WSDL from an existing APEX class. How can I designate certain fields in the WSDL as mandatory ("minoccurs = 1")?

SrinikaSrinika

Hi,

Thanks for reply.

I did refer to the link but I did not follow what is meant by "object schema definition".

If you're talking about "cls-meta.xml" file, then this is what that file has...

 

<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>27.0</apiVersion>
<status>Active</status>
</ApexClass>