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
aparna atmakuriaparna atmakuri 

how to generate apex classes from sap wsdl file?

Maharajan CMaharajan C
Login to your Salesforce org:

Setup | Develop | Apex Classes”. On right hand side , you will find button named as “Generate from WSDL” ( Placed in Center  ) 

https://howtodoitinsalesforce.blogspot.com/2016/12/7-easy-steps-to-generate-apex-class.html
https://www.jitendrazaa.com/blog/tag/wsdl/

Thanks,
Maharajan.C
Raj VakatiRaj Vakati
SOAP web service class can be generated automatically by using WSDL document. Generating WSDL document allows Salesforce developers to make callouts to the external web service in their Apex code.
Follow below steps to generate apex class from a WSDL:
  1. Go to Apex Classes form setup menu.
  2. Click “Generate from WSDL” button.
  3. Select WSDL document(XML file) you are using to generate apex class by clikcing choose file lookup button. This WSDL document is base to generate apex class.
  4. Here I selected Test-SOAP webservice WSDL file which is rounded by red color line in the above image. You can select WSDL by clicking on choose File button.
  5. 4.Click Parse WSDL button which is highleted in the above image to verify WSDL document contents. It generates default class name based on WSDL document. It report errors in case of the WSDL contains schema types or constructs that aren’t supported by Apex classes, or if the resulting classes exceed the 1-million-character limit on Apex classes. For example, the Salesforce SOAP API.
  6. You can rename the class. And click on Generate Apex button. The final page of the wizard shows which classes were successfully generated, along with any errors from other classes. The page also provides a link to view successfully generated code.
  7. Generated Apex classes include stub and type classes for calling the third-party Web service represented by the WSDL document. These classes allow you to call the external Web service from Apex.
  8. When you generate Apex classes by using WSDL, it generated 2 classes, one is with given name for synchronus callouts and other is prefixed with Async for asynchronus callouts.


https://help.salesforce.com/articleView?id=code_wsdl_to_package.htm&type=5

https://www.jitendrazaa.com/blog/salesforce/consuming-external-webservice-in-apex/
https://www.jitendrazaa.com/blog/tag/wsdl2apex/
https://www.salesforcetutorial.com/soap-web-service-creating-class-wsdl/
https://crmsalesforce.wordpress.com/2014/03/07/sap-integration-with-salesforce/