addNamedResource

Description

The request to import a new named resource into the repository.

Note: This operation requires write permission to the repository.

Messages

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

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

Message Description
AddNamedResourceRequest The request message for the addNamedResource operation.
AddNamedResourceResponse The response message for the addNamedResource operation.

Example XML SOAP Request

Adds the worldcap tab file as a named table to the repository in the /TestPath repository node, and names the new named table resource 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:AddNamedResourceRequest id="add1" locale="en-US">
            <v1:Resource>
                <NamedDataSourceDefinition
                    version="MXP_WorkSpace_1_5"
                    xmlns="http://www.mapinfo.com/mxp">
                    <ConnectionSet/>
                    <DataSourceDefinitionSet>
                        <TABFileDataSourceDefinition
                            id="worldcap"
                            readOnly="false">
                            <DataSourceName>worldcap</DataSourceName>
                            <FileName>@TEMP_DATA@/Service/Feature/PerformanceData/worldcap.TAB</FileName>
                        </TABFileDataSourceDefinition>
                    </DataSourceDefinitionSet>
                    <DataSourceRef ref="worldcap"/>
                </NamedDataSourceDefinition>
            </v1:Resource>
            <v1:Path>/TestPath/TestNamedResource</v1:Path>
        </v1:AddNamedResourceRequest>
    </soapenv:Body>
</soapenv:Envelope>