You need to sign in to do that
Don't have an account?

How to Call External Web Service in Visual Force ?
Hi Everyone,
I want to ask about visualforce. Is it possible to call external web service in visualforce? any suggestions would be great.
Just for information, let's say I want to call S3 web service into visualforce.
thanx
I want to ask about visualforce. Is it possible to call external web service in visualforce? any suggestions would be great.
Just for information, let's say I want to call S3 web service into visualforce.
thanx
The information is on page 143 of the Apex Language Reference PDF.
Basically, you need to download the WSDL, go to Setup>Develop>Apex Classes>Generate From WSDL
This needs to be done on a sandbox of development account, the option does not exist in a production account.
This creates a class based on your WSDL, you can then call the web service methods from the class, see the Reference PDF.
Once you have the web service class, you can create a VF page with a custom controller, from the controller you can invoke the web service methods by calling the web service class.
Hope this helps,
Chris
Message Edited by StormConsulting on 08-06-2008 06:49 AM
the source code is here:
http://code.google.com/p/visualforce-components/source/browse/#svn/trunk/awss3/src/unpackaged/classes
enjoy
Where I tried to call the class from visualforce -> <apex:page controller="AWSResponse">, it gives the error result :
Still not figure it out. Maybe I miss something.. need more helps on this. anyway thanx to Ron and Chris because u help me out..
thanx
edwin
you must write your own controller
Did you get the correct solution. I have also same kind of requirement.
I need to call a external web service from visual force page. How can i populate the webservice resopnse data in a visual force data table. How can i return the data from the custom controller.