Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
17
Добавлен:
09.02.2015
Размер:
324.1 Кб
Скачать

Visible timer objects whose property names and property values match

those passed as param-value pairs, P1, V1, P2, V2,... The param-value

pairs can be specified as a cell array.

OUT = TIMERFIND(S) returns an array, OUT, of visible timer objects

whose property values match those defined in structure S whose field

names are timer object property names and the field values are the

requested property values.

OUT = TIMERFIND(OBJ, 'P1', V1, 'P2', V2,...) restricts the search for

matching param-value pairs to the timer objects listed in OBJ.

OBJ can be an array of timer objects.

Note that it is permissible to use param-value string pairs, structures,

and param-value cell array pairs in the same call to TIMERFIND.

When a property value is specified, it must use the same format as

GET returns. For example, if GET returns the Name as 'MyObject',

TIMERFIND will not find an object with a Name property value of

'myobject'. However, properties which have an enumerated list data type

will not be case sensitive when searching for property values. For

example, TIMERFIND will find an object with a ExecutionMode property value

of 'singleShot' or 'singleshot'.

Example:

t1 = timer('Tag', 'broadcastProgress', 'Period', 5);

t2 = timer('Tag', 'displayProgress');

out1 = timerfind('Tag', 'displayProgress')

out2 = timerfind({'Period', 'Tag'}, {5, 'broadcastProgress'})

See also timer/get, timerfindall.

Overloaded methods:

timer/timerfind

Reference page in Help browser

doc timerfind

Command window I/o

<clc> - Clear command window.

CLC Clear command window.

CLC clears the command window and homes the cursor.

See also home.

Reference page in Help browser

doc clc

<home> - Send the cursor home.

HOME Send the cursor home.

HOME moves the cursor to the upper left corner of the window. When

using the MATLAB desktop, it also scrolls the visible text in the

window up out of view; you can use the scroll bar to see what was

previously on the screen.

See also clc.

Reference page in Help browser

doc home

SOAP support

<createClassFromWsdl> - Create a MATLAB object based on a WSDL-file.

createClassFromWsdl Create a MATLAB object based on a WSDL-file.

createClassFromWsdl('source') creates MATLAB classes based on a WSDL

application programming interface (API). The source argument specifies a URL

or file path to a WSDL API, which defines web service methods, arguments,

and transactions. It returns the name of the new class.

Based on the WSDL API, the createClassFromWSDL function creates a new folder

In the current directory. The folder contains an m-file for each web service

method. In addition, two default M-files are created, the object's

display method (display.m) and its construtor (servicename.m).

Example

cd(tempdir)

% Create a class for the web service provided by xmethods.net.

url = 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl';

createClassFromWsdl(url);

% Instantiate the object.

service = StockQuoteService;

% getQuote returns the price of a stock.

getQuote(service,'GOOG')

See also createSoapMessage, callSoapService, parseSoapResponse.

Reference page in Help browser

doc createClassFromWsdl

<callSoapService> - Send a SOAP message off to an endpoint.

callSoapService Send a SOAP message off to an endpoint.

callSoapService(ENDPOINT,SOAPACTION,MESSAGE) sends the MESSAGE, a Java DOM,

to the SOAPACTION service at the ENDPOINT.

Example:

message = createSoapMessage( ...

'urn:xmethods-delayed-quotes', ...

'getQuote', ...

{'GOOG'}, ...

{'symbol'}, ...

{'{http://www.w3.org/2001/XMLSchema}string'}, ...

'rpc');

response = callSoapService( ...

'http://64.124.140.30:9090/soap', ...

'urn:xmethods-delayed-quotes#getQuote', ...

message);

price = parseSoapResponse(response)

See also createClassFromWsdl, createSoapMessage, parseSoapResponse.

Reference page in Help browser

doc callSoapService

<createSoapMessage> - Create the SOAP message, ready to send to the server.

createSoapMessage Create a SOAP message, ready to send to the server.

createSoapMessage(NAMESPACE,METHOD,VALUES,NAMES,TYPES,STYLE) creates a SOAP

message. VALUES, NAMES, and TYPES are cell arrays. NAMES will

default to dummy names and TYPES will default to unspecified. STYLE

specifies 'document' or 'rpc' messages ('rpc' is the default).

Example:

message = createSoapMessage( ...

'urn:xmethods-delayed-quotes', ...

'getQuote', ...

{'GOOG'}, ...

{'symbol'}, ...

{'{http://www.w3.org/2001/XMLSchema}string'}, ...

'rpc');

response = callSoapService( ...

'http://64.124.140.30:9090/soap', ...

'urn:xmethods-delayed-quotes#getQuote', ...

message);

price = parseSoapResponse(response)

See also createClassFromWsdl, callSoapService, parseSoapResponse.

Reference page in Help browser

doc createSoapMessage

<parseSoapResponse> - Convert the response from a SOAP server into MATLAB types.

parseSoapResponse Convert the response from a SOAP server into MATLAB types.

parseSoapResponse(RESPONSE) converts RESPONSE, a string returned by a SOAP

server, into a cell array of appropriate MATLAB datatypes.

Example:

message = createSoapMessage( ...

'urn:xmethods-delayed-quotes', ...

'getQuote', ...

{'GOOG'}, ...

{'symbol'}, ...

{'{http://www.w3.org/2001/XMLSchema}string'}, ...

'rpc');

response = callSoapService( ...

'http://64.124.140.30:9090/soap', ...

'urn:xmethods-delayed-quotes#getQuote', ...

message);

price = parseSoapResponse(response)

See also createClassFromWsdl, createSoapMessage, callSoapService.

Reference page in Help browser

doc parseSoapResponse

Соседние файлы в папке Библиотеки Matlab