Main Content

Aufrufen von Web-Services aus MATLAB mittels HTTP

Kommunikation mit Webservices über HTTP (Hypertext Transfer Protocol)

Die MATLAB® RESTful Webservice-Funktionen webread, websave und webwrite sowie die Support-Funktion weboptions ermöglichen den Zugriff auf zahlreiche Webservices über HTTP-GET- und POST-Methoden ohne Programmierkenntnisse. Informationen zu diesen neuen Funktionen finden Sie unter Web-Services.

Einige Interaktionen mit einem Webservice sind jedoch komplexer und erfordern Funktionen, die von den RESTful Web Services nicht unterstützt werden. Die HTTP-Schnittstelle von MATLAB stellt Klassen für das Verfassen von Webzugriffsanwendungen bereit. Die Schnittstelle enthält Klassen für Nachrichten, Nachrichtenheader und -felder sowie andere in den Standards der Internet Engineering Task Force (IETF®) definierte Einheiten. Die Schnittstelle enthält Funktionen, die die Semantik von HTTP-Nachrichten und -Dienstprogrammen für die Verarbeitung von gesendeten und empfangenen Daten implementieren. Sie enthält auch Supportklassen, die für die Verarbeitung, die Übertragung und den Empfang von Nachrichten erforderlich sind.

Klassen

alle erweitern

matlab.net.http.RequestMessageHTTP request message
matlab.net.http.ResponseMessageHTTP response message
matlab.net.http.MessageHTTP request or response message
matlab.net.http.MessageTypeHTTP message type
matlab.net.http.MessageBodyBody of HTTP message
matlab.net.http.ProtocolVersionHTTP protocol version
matlab.net.http.RequestLineFirst line of HTTP request message
matlab.net.http.RequestMethodHTTP request method
matlab.net.http.StartLineFirst line of HTTP message
matlab.net.http.StatusClassStatus class of HTTP response
matlab.net.http.StatusCodeStatus code in HTTP response
matlab.net.http.StatusLineFirst line of HTTP response message
matlab.net.http.HeaderFieldHeader field of HTTP message
matlab.net.http.field.AcceptFieldHTTP Accept header field
matlab.net.http.field.AuthenticateFieldHTTP WWW-Authenticate or Proxy-Authenticate header field
matlab.net.http.field.AuthenticationInfoFieldHTTP Authentication-Info header field in response message
matlab.net.http.field.AuthorizationFieldHTTP Authorization or Proxy-Authorization header field
matlab.net.http.field.ContentDispositionFieldHTTP Content-Disposition header field
matlab.net.http.field.ContentLengthFieldHTTP Content-Length field
matlab.net.http.field.ContentLocationFieldHTTP Content-Location header field
matlab.net.http.field.ContentTypeFieldHTTP Content-Type header field
matlab.net.http.field.CookieFieldHTTP Cookie header field
matlab.net.http.field.DateFieldHTTP Date header field
matlab.net.http.field.GenericFieldHTTP header field with any name and value
matlab.net.http.field.GenericParameterizedFieldGenericField to support parameterized syntax
matlab.net.http.field.HTTPDateFieldHTTP header field containing date
matlab.net.http.field.IntegerFieldBase class for HTTP header fields containing nonnegative integers
matlab.net.http.field.LocationFieldHTTP Location header field
matlab.net.http.field.MediaRangeFieldBase class for HTTP Content-Type and Accept header fields
matlab.net.http.field.SetCookieFieldHTTP Set-Cookie header field
matlab.net.http.field.URIReferenceFieldBase class for HTTP header fields containing URI components
matlab.net.http.io.ContentConsumerConsumer for HTTP message payloads
matlab.net.http.io.FileConsumerConsumer for files in HTTP messages
matlab.net.http.io.StringConsumerString consumer for HTTP payloads
matlab.net.http.io.JSONConsumerContent consumer that converts JSON input into MATLAB data
matlab.net.http.io.ImageConsumerConsumer for image data in HTTP payloads
matlab.net.http.io.MultipartConsumerHelper for multipart content types in HTTP messages
matlab.net.http.io.BinaryConsumerConsumer for binary data in HTTP messages
matlab.net.http.io.GenericConsumerConsumer for multiple content types in HTTP messages
matlab.net.http.io.ContentProviderContentProvider for HTTP message payloads
matlab.net.http.io.FileProviderContentProvider to send files
matlab.net.http.io.FormProviderContentProvider that sends form data
matlab.net.http.io.MultipartFormProviderContentProvider to send multipart/form-data messages
matlab.net.http.io.StringProviderContentProvider to send MATLAB strings
matlab.net.http.io.JSONProviderContentProvider to send MATLAB data as JSON string
matlab.net.http.io.ImageProviderContentProvider to send MATLAB image data
matlab.net.http.io.MultipartProviderContentProvider to send multipart/mixed HTTP messages
matlab.net.http.io.GenericProviderGeneric ContentProvider for HTTP payloads
matlab.net.http.AuthenticationSchemeHTTP Authentication scheme
matlab.net.http.AuthInfoAuthentication or authorization information in HTTP messages
matlab.net.http.CookieHTTP cookie received from server
matlab.net.http.CookieInfoHTTP cookie information
matlab.net.http.CredentialsCredentials for authenticating HTTP requests
matlab.net.http.DispositionResults in HTTP log record
matlab.net.http.HTTPExceptionException thrown by HTTP services
matlab.net.http.HTTPOptionsOptions controlling HTTP message exchange
matlab.net.http.LogRecordHTTP history log record
matlab.net.http.MediaTypeInternet media type used in HTTP headers
matlab.net.http.ProgressMonitorProgress monitor for HTTP message exchange
matlab.net.URIUniform resource identifier (URI)
matlab.net.ArrayFormatConvert arrays in HTTP queries
matlab.net.QueryParameterParameter in query portion of uniform resource identifier (URI)

Funktionen

matlab.net.base64decodeBase 64 decoding of string
matlab.net.base64encodeBase 64 encoding of byte string or vector

Namespaces

matlab.net.httpÜbersicht der Pakete und Klassen in der HTTP-Schnittstelle von MATLAB
matlab.net.http.fieldSummary of header field classes in MATLAB HTTP interface
matlab.net.http.ioStreaming content consumers and providers for HTTP messages

Themen