No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
WebServiceCallout Class
Enables making callouts to SOAP operations on an external Web service. This class is
used in the Apex stub class that is auto-generated from a WSDL.
Namespace
WebServiceCallout Methods
The following is the static method for WebServiceCallout.
invoke(Object, Object, Map<String, Object>, List<String>)
Invokes an external SOAP Web service operation based on an Apex class that is
auto-generated from a WSDL.
Signature
public static void invoke(Object stub, Object request, Map<String, Object> response, List<String> info)
Parameters
- stub
- Type: Object
- An instance of the Apex class that is auto-generated from a WSDL (the stub class).
- request
- Type: Object
- The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
- response
- Type: Map<String, Object>
- A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier and the value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
- info
- Type: String[]
- An array of strings that contains information about the callout—Web
service endpoint, SOAP action, request, and response. The order of the elements in
the array matters.
- Element at index 0 ([0]): The endpoint URL of the external Web service. For example: 'http://YourServer/YourService'
- Element at index 1 ([1]): The SOAP action. For example: 'urn:dotnet.callouttest.soap.sforce.com/EchoString'
- Element at index 2 ([2]): The request namespace. For example: 'http://doc.sample.com/docSample'
- Element at index 3 ([3]): The request name. For example: 'EchoString'
- Element at index 4 ([4]): The response namespace. For example: 'http://doc.sample.com/docSample'
- Element at index 5 ([5]): The response name. For example: 'EchoStringResponse'
- Element at index 6 ([6]): The response type. For example: 'docSample.EchoStringResponse_element'
Return Value
Type: Void