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:

List requests supported by the "PubChem" service:

Open a connection to an external service:

Create a request:

Get properties:

Extract properties from the request:

Get request data as "PropertyAssociation":

Execute the request:

Submit the request and set result:

Build a request with an association:

Execute the request:

Wolfram Research (2019), ServiceRequest, Wolfram Language function, https://reference.wolfram.com/language/ref/ServiceRequest.html.

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_2022_servicerequest, author="Wolfram Research", title="{ServiceRequest}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/ServiceRequest.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2022_servicerequest, organization={Wolfram Research}, title={ServiceRequest}, year={2019}, url={https://reference.wolfram.com/language/ref/ServiceRequest.html}, note=[Accessed: 21-November-2024 ]}