updateNamedResource

Description

The request to update an existing named resource in the repository. This operation will replace the existing resource in the repository with the resource defined in the request. The resource type of the resource defined in the request, must match the resource type of the existing resource in the repository.

Note: This operation requires write permission to the repository.

Messages

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

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

Message Description
UpdateNamedResourceRequest The request message for the updateNamedResource operation.
UpdateNamedResourceResponse The response message for the updateNamedResource operation.

Example XML SOAP Request

Updates the existing TestNamedResource with the new inline named table definition.

<S:Envelope
    xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:v1="http://www.mapinfo.com/midev/service/namedresource/v1">
    <S:Header/>
    <S:Body>
        <v1:UpdateNamedResourceRequest id="update1" 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>C:/work/MIDev/MapInfoManager/TestData/Service/Feature/PerformanceData/worldcap.TAB</FileName>
                        </TABFileDataSourceDefinition>
                    </DataSourceDefinitionSet>
                    <DataSourceRef ref="worldcap"/>
                </NamedDataSourceDefinition>
            </v1:Resource>
            <v1:Path>/TestPath/TestNamedResource</v1:Path>
        </v1:UpdateNamedResourceRequest>
    </S:Body>
</S:Envelope>