Get (Metadata Exchange) HTTP Request and Message
Un messaggio Get è un messaggio WS-Transfer usato per richiedere i metadati. Per altre informazioni su Recupera messaggi, vedere la sezione 3.1 della specifica WS-Transfer. Poiché lo scambio di metadati viene eseguito tramite HTTP, un messaggio Get è il payload di una richiesta HTTP.
I client DPWS inviano i messaggi Get. Client di individuazione delle funzioni, client WSDAPI che chiamano WSDCreateDeviceProxy e client WSDAPI che chiamano WSDCreateDeviceProxyAdvanced inviano questo messaggio.
Nota
Questo argomento illustra un messaggio DPWS di esempio generato da client e host WSDAPI. WSDAPI analizzerà e accetterà altri messaggi conformi a DPWS che non sono conformi a questo esempio. Non usare questo esempio per verificare l'interoperabilità di DPWS; usare invece WSDAPI Basic Interoperability Tool (WSDBIT).
Nell'esempio seguente viene illustrata una richiesta HTTP get di esempio.
POST /37f86d35-e6ac-4241-964f-1d9ae46fb366
HTTP/1.1
Content-Type: application/soap+xml
User-Agent: WSDAPI
Host: 192.168.0.2:5357
Content-Length: 658
Connection: Keep-Alive
Cache-Control: no-cache
Pragma: no-cache
Una richiesta GET HTTP ha i punti di interesse seguenti.
Punto di interesse | Riga intestazione | Descrizione |
---|---|---|
percorso URL |
|
Percorso URL in cui è stata inviata la richiesta HTTP Get. |
Host e porta |
|
Host e porta in cui è stata indirizzata la richiesta HTTP Get. |
Il messaggio SOAP seguente mostra un messaggio Get di esempio.
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope
xmlns:soap="https://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="https://schemas.xmlsoap.org/ws/2004/08/addressing">
<soap:Header>
<wsa:To>
urn:uuid:37f86d35-e6ac-4241-964f-1d9ae46fb366
</wsa:To>
<wsa:Action>
https://schemas.xmlsoap.org/ws/2004/09/transfer/Get
</wsa:Action>
<wsa:MessageID>
urn:uuid:027bec45-c37c-466c-936c-68f648abe2bb
</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>
https://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
</wsa:Address>
</wsa:ReplyTo>
<wsa:From>
<wsa:Address>
urn:uuid:49e131df-351a-4ece-9a6f-6a862d31cffa
</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
</soap:Body>
Un messaggio Get include i punti di interesse seguenti.
Punto di interesse | XML | Descrizione |
---|---|---|
A |
|
Identificatore del dispositivo richiesto per i metadati. |
Recupero |
|
L'azione Get SOAP identifica il messaggio come messaggio Get. |
MessageID |
|
Contiene l'identificatore del messaggio a cui viene fatto riferimento in un messaggio GetResponse . |
Argomenti correlati