You need to sign in to do that
Don't have an account?
Nuevo9763
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
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
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.