Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

matlab.production_server.client.MWHttpClient

Package: matlab.production_server

Python object encapsulating a connection to a MATLAB Production Server instance

Description

The matlab.production_server.client.MWHttpClient class creates a connection object that encapsulates the connection between the client and a MATLAB® Production Server™ instance. Once the connection is created, you can dynamically call all MATLAB functions hosted on the server instance.

Construction

my_client = MWHttpClient(url,[timeout_ms=timeout_ms])

Input Arguments

expand all

URL of the server instance to which the client connects, specified as a string. This server instance hosts the MATLAB functions which the client can evaluate.

Number of milliseconds the client waits for a response from the server instance, specified as an integer.

Methods

<archive>.<func>Call a MATLAB function from a Python client
closeClose the connection to MATLAB Production Server instance, and release the resources used by the connection

Exceptions

HTTPException

Raised if there is a problem communicating with the server instance.

MATLABException

Raised if a function call fails to execute.

TypeError

Raised if the specified timeout value is not a positive int or long.

ValueError

Raised if the specified timeout value is less than zero.

Was this topic helpful?