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

SOAP callout from visual force page

I need to make an external call to Fedex SOAP webservice to get shipping options based on the shipping address entered by user on the VF page.
I have created custom controller and calling a function when a button 'Show Shipping Options' is clicked on VF page.
I have the WSDL for fedex service , I used WSDL2APEX to generate the classes corresponding to WSDL but after that I am confused on how to use these classes to generate the r equest object and make a request to webservie . I looked for tutorials on this but could not find any, can someone help me on this?
Thanks in advance
Daniel BallingerDaniel Ballinger
WSDL2Apex would have generated an inner class that represents the actual web service. 
The inner class will include an endpoint_c member and will expose methods the correspond to the web service.

Create an instance of this class and then call one of the methods as required.