WOLFRAM APPLICATION SERVER System` "Wolfram Application Server"
Connect to a Wolfram Application Server with the Wolfram Language to call deployed applications.
Connecting & Authenticating
ServiceConnect [ "WolframApplicationServer", server ] creates a connection to the specified Wolfram Application Server.
ServiceExecute [ ServiceObject [ "WolframApplicationServer", ...] , "request ", params ] sends a request to the Wolfram Application Server API, using parameters
params . The following give possible requests.
"Services" — a list of services available on the provided Wolfram Application Server, returned as
URL s
"ServiceDeployments" — a list of services available on the provided Wolfram Application Server, returned as
ServiceDeployment "ServiceInformation" — information concerning the provided service
"Service" ( required ) the name or URL for the service
"EndpointInformation" — information concerning the provided endpoint path
"Endpoint" ( required ) the relative path or URL for an endpoint
"Resources" — a list of resources available on the provided Wolfram Application Server, returned as
URL s
"ResourceContents" — the expression evaluated when calling the provided resource
"ResourceInformation" — information concerning the provided resource path
"Resource" ( required ) the relative path or URL for a resource
"NodeFiles" — a list of files available on the provided Wolfram Application Server, returned as
URL s
"NodeFileContents" — the contents of the provided files
"NodeFile" ( required ) the relative path or URL for a node file
"DeployNodeFile" — upload a new file to the Wolfram Application Server, returns a
URL to the file
"NodeFile" ( required ) the relative path or URL for the file
"Contents" ( required ) the content of the file, can be an expression or file specified by a file path or File
"DeployResource" — create or update a resource on the Wolfram Application Server, returns a
URL to the resource
"Resource" ( required ) the relative path or URL for the resource
"Contents" ( required ) the content of the resource, can be an expression or package file specified by a file path or File
"ResourceType" Automatic determines the server behavior when accessing the resource
"MIMEType" Automatic type of file used for the resource
"PoolName" Automatic name of the kernel pool used to evaluate the resource
"Timeout" None the kernel evaluation time limit used when evaluating the resource, can be expressed as a Quantity or number of seconds
"DeployEndpoint" — create or update an endpoint on the Wolfram Application Server, returns a
URL to the endpoint
"Endpoint" ( required ) the relative path or URL for the endpoint
"Resource" ( required ) the relative path or URL for the resource used when calling the endpoint
"DeleteResource" — removes the specified resource from the Wolfram Application Server
"Resource" ( required ) the relative path or URL for the resource
"DeleteEndpoint" — removes the specified endpoint from the Wolfram Application Server
"Endpoint" ( required ) the relative path or URL for the endpoint
"DeleteNodeFile" — removes the specified file from the Wolfram Application Server
"NodeFile" ( required ) the relative path or URL for the file
Information
List the available resources:
Get more information on a specific resource:
Get the contents of a specific resource:
Deletion
Delete a specific resource:
Information
Get more information on a specific endpoint:
Deletion
Delete a specific endpoint; this will leave the resource untouched:
Creation
Create a new file that is stored on each node of the WAS instance:
Information
List the available packages:
Get the contents of a specific package:
See the contents of a specific package:
Deletion
Delete a specific package:
Examples
Basic Examples (1)
Create a new connection:
List the available services:
Get more information on a specific service:
Clicking the link provided will open it in a new browser tab: