3.1.4.89 ImportPackage
This operation is used to create the following objects in the metadata store:
MetadataObjects contained by the specified MetadataModel along with their properties, localized names and ACEs, if the "Model" value is specified for the packageContents element. The MetadataModel MUST be specified as XML that conforms to [MS-BDCMFFS] section 2.1.3.34. If the MetadataModel contains an LobSystem that has the same name and type as an LobSystem in the metadata store, the LobSystem in the MetadataModel MUST be ignored by the protocol server along with all LobSystemInstances contained by that LobSystem along with properties, localized names and ACEs of the ignored MetadataObjects. If the MetadataModel contains an Entity that has the same name, namespace, and version as an Entity in the metadata store, and if the names of the LobSystems that contain these Entities are identical, the Entity in the MetadataModel MUST be ignored by the protocol server along with all MetadataObjects contained by the Entity or other ignored MetadataObjects along with the properties, localized names, and ACEs of the ignored MetadataObjects.
Localized names, Properties, and ACEs corresponding to MetadataObjects contained by the specified MetadataModel, if "Model" value is not specified for the packageContents element. The MetadataModel MUST be specified as an XML that conforms to [MS-BDCMFFS] section 2.2.3.28.
The following is the WSDL port type specification of the ImportPackage WSDL operation.
-
<wsdl:operation name="ImportPackage" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:input wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackage" message="tns:BusinessDataCatalogSharedService_ImportPackage_InputMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:output wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackageResponse" message="tns:BusinessDataCatalogSharedService_ImportPackage_OutputMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:fault wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackageArgumentExceptionFault" name="ArgumentExceptionFault" message="tns:BusinessDataCatalogSharedService_ImportPackage_ArgumentExceptionFault_FaultMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:fault wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackageArgumentNullExceptionFault" name="ArgumentNullExceptionFault" message="tns:BusinessDataCatalogSharedService_ImportPackage_ArgumentNullExceptionFault_FaultMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:fault wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackageArgumentOutOfRangeExceptionFault" name="ArgumentOutOfRangeExceptionFault" message="tns:BusinessDataCatalogSharedService_ImportPackage_ArgumentOutOfRangeExceptionFault_FaultMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:fault wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackageBdcExceptionStateFault" name="BdcExceptionStateFault" message="tns:BusinessDataCatalogSharedService_ImportPackage_BdcExceptionStateFault_FaultMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:fault wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackageInvalidOperationExceptionFault" name="InvalidOperationExceptionFault" message="tns:BusinessDataCatalogSharedService_ImportPackage_InvalidOperationExceptionFault_FaultMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:fault wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackageMetadataExceptionStateFault" name="MetadataExceptionStateFault" message="tns:BusinessDataCatalogSharedService_ImportPackage_MetadataExceptionStateFault_FaultMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> <wsdl:fault wsaw:Action="http://www.microsoft.com/Office/2009/BusinessDataCatalog/BusinessDataCatalogSharedService/ImportPackagePackageFormatExceptionStateFault" name="PackageFormatExceptionStateFault" message="tns:BusinessDataCatalogSharedService_ImportPackage_PackageFormatExceptionStateFault_FaultMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"/> </wsdl:operation>
The protocol client sends a BusinessDataCatalogSharedService_ImportPackage_InputMessage request message, and the protocol server MUST respond with a BusinessDataCatalogSharedService_ImportPackage_OutputMessage response message, unless any one of the conditions in the following table is met.
If any one of the conditions in the following table is met, the protocol server MUST instead respond with a SOAP fault containing the corresponding error complex type, serialized as specified in section 2.2.4. If more than one error condition is encountered, the protocol server MUST respond with exactly one error complex type, determined in an implementation-specific manner.
Error complex type |
Condition |
---|---|
AccessDeniedExceptionState (section 2.2.4.3) |
The security principal (2) in whose context the protocol client is operating is not authorized to create or modify the specified Model. |
PackageFormatExceptionState (section 2.2.4.48) |
One of the following conditions applies:
|