readNamedResource

Description

The request to read a named resource from the repository. This operation returns the entire definition of the named resource

Messages

The following table lists the request and response messages for the readNamedResource operation.

Click on a message name to get more information about the message.

Message Description
ReadNamedResourceRequest The request message for the readNamedResource operation.
ReadNamedResourceResponse The response message for the readNamedResource operation.

Example XML SOAP Request

Returns the entire resource definition and type of resource for the TestNamedResource.


<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:v1="http://www.mapinfo.com/midev/service/namedresource/v1">
    <soapenv:Header/>
    <soapenv:Body>
        <v1:ReadNamedResourceRequest id="read1" locale="en-US">
            <v1:Path>/TestPath/TestNamedResource</v1:Path>
        </v1:ReadNamedResourceRequest>
    </soapenv:Body>
</soapenv:Envelope>

	

Example XML SOAP Response

Includes a Named Resource Metadata Record in the return.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
   <soap:Body> 
	<ReadNamedResourceResponse xmlns="http://www.mapinfo.com/midev/service/namedresource/v1" xmlns:ns2="http://www.mapinfo.com/midev/service/common/v1" id="read1">
	   <Resource> 
		<NamedResourceMetadata:NamedResourceMetadata xmlns:NamedResourceMetadata="http://www.mapinfo.com/mxp" xmlns="http://www.mapinfo.com/mxp" version="MXP_NamedResource_1_5">
		<mxp:ResourceMetadata xmlns:mxp="http://www.mapinfo.com/mxp" resourceID="/Samples/NamedTables/USA"> 
		<mxp:MetadataRecord> 
			<mxp:Description>some description</mxp:Description> 
			<mxp:KeywordSet> 
				<mxp:Keyword>keyword1</mxp:Keyword> 
				<mxp:Keyword>keyword2</mxp:Keyword> 
			</mxp:KeywordSet> 
			</mxp:MetadataRecord> 
		</mxp:ResourceMetadata> 
		</NamedResourceMetadata:NamedResourceMetadata> 
	   </Resource> 
	   <ResourceType>NamedResourceMetadata</ResourceType> 
	</ReadNamedResourceResponse> 
   </soap:Body>
</soap:Envelope>