ServiceRequest[service,"req"]
represents a service request built from service, which might be a connected ServiceObject or a valid service name, and request "req".
ServiceRequest[service,"req",param]
represents a service request, built from the service service, request "req" and parameters param.
ServiceRequest[assoc]
represents a service request, built from association assoc.
ServiceRequest
Listing of Supported External Services »ServiceRequest[service,"req"]
represents a service request built from service, which might be a connected ServiceObject or a valid service name, and request "req".
ServiceRequest[service,"req",param]
represents a service request, built from the service service, request "req" and parameters param.
ServiceRequest[assoc]
represents a service request, built from association assoc.
Details
- ServiceRequest gives a symbolic representation of a service request; it does not execute the request.
- The following entries must be given in the association:
-
"Request" request to be made "Parameters" parameters for the request "Service" name of the service or service object - ServiceRequest[…]["prop"] extracts the value for the property "prop" of the service request.
- Possible properties include all components and additional elements, as well as:
-
"Service" external service "Request" request name "Parameters" request parameters "Properties" list of all possible properties "PropertyAssociation" association giving values of all properties
Examples
Basic Examples (3)
Create a request for "PubChem" service:
req = ServiceRequest["PubChem", "Requests"]List requests supported by the "PubChem" service:
ServiceExecute[req]Open a connection to an external service:
pubchem = ServiceConnect["PubChem"]req = ServiceRequest[pubchem, "CompoundDescription", {"InChI" -> "InChI=1S/ClO2/c2-1-3"}]req["Properties"]Extract properties from the request:
req[{"Service", "Request", "Parameters"}]Get request data as "PropertyAssociation":
req["PropertyAssociation"]ServiceExecute[req]Submit the request and set result:
ServiceSubmit[req, HandlerFunctions -> <|"ResultReceived" -> ((res = #EvaluationResult)&)|>]resBuild a request with an association:
req = ServiceRequest[<|"Service" -> "PubChem", "Request" -> "Requests"|>]ServiceExecute[req]Related Guides
History
Text
Wolfram Research (2019), ServiceRequest, Wolfram Language function, https://reference.wolfram.com/language/ref/ServiceRequest.html.
CMS
Wolfram Language. 2019. "ServiceRequest." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ServiceRequest.html.
APA
Wolfram Language. (2019). ServiceRequest. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ServiceRequest.html
BibTeX
@misc{reference.wolfram_2026_servicerequest, author="Wolfram Research", title="{ServiceRequest}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/ServiceRequest.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_servicerequest, organization={Wolfram Research}, title={ServiceRequest}, year={2019}, url={https://reference.wolfram.com/language/ref/ServiceRequest.html}, note=[Accessed: 12-June-2026]}