Bir CA Process Automation Kütüphanesine nesne aktarmak için bu yöntemi kullanın.
<tns:ImportObject xmlns:tns="http://www.ca.com/itpam"> <tns:importFileParam> <tns:auth> <!--xsd:Choice Type--> <tns:token>token__</tns:token> <tns:user>Joe</tns:user> <tns:password>benimparolam</tns:password> <tns:auth> <tns:importLocation>importLocation__</tns:importLocation> <tns:localSourceLocation>localSourceLocation__</tns:localSourceLocation> <tns:isSetCurrent>isSetCurrent__</tns:isSetCurrent> <tns:isMakeAvailable>isMakeAvailable__</tns:isMakeAvailable> <tns:overwriteAction>overwriteAction__</tns:overwriteAction> </tns:importFileParam> <!--This SOAP request can have MIME contents--> </tns:ImportObject>
<isSetCurrent> içe aktarılan nesnelerin geçerli sürümler olarak işaretlenip işaretlenmeyeceğini belirtir (isteğe bağlı).
<isMakeAvailable> içe aktarılan özel işleçlerin kullanılabilir olarak işaretlenip işaretlenmeyeceğini belirtir (isteğe bağlı).
Değerleri satır içi metinde sağladıktan sonra, SOAP isteğindeki <localsourcelocation> etiketinde belirtiğiniz dosya için bir MIME eki oluşturun. Bir MIME eki eklemek için, MIME ekleri altındaki Özellikler panelinde Ekle'yi tıklatın ve ardından aşağıdakiler için uygun değerleri sağlayın:
MIME ekinin taşıdığı içerik türü. Örneğin, text/xml.
Ekin benzersiz şekilde tanımlandığı kimlik. Örneğin, 11111.
Ekin yolu. Bu yol, aktarılacak .xml'in yolu olabilir. Örneğin, C:\\SOAPExportedObjects.xm.
İşlemi kaydedin ve çalıştırın.
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <tns:ImportObject xmlns:tns="http://www.ca.com/itpam"> <tns:importFileParam> <tns:auth> <tns:user>Joe</tns:user> <tns:password>benimparolam</tns:password> <tns:auth> <tns:importLocation>/</tns:importLocation> <tns:localSourceLocation>"C:\\SOAPExportedObjects.xml"</tns:localSourceLocation> <tns:isSetCurrent>true</tns:isSetCurrent> <tns:isMakeAvailable>true</tns:isMakeAvailable> <tns:overwriteAction>incrementObjectVersion</tns:overwriteAction> </tns:importFileParam> <!--This request can have MIME contents--> </tns:ImportObject> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
<importLocation>, nesneleri aktarmak istediğiniz CA Process Automation kütüphanesindeki konumu belirtir.
<isSetCurrent> içe aktarılan nesnelerin geçerli sürümler olarak işaretlenip işaretlenmeyeceğini belirtir (isteğe bağlı). Varsayılan değer false değeridir.
<isMakeAvailable> içe aktarılan özel işleçlerin kullanılabilir olarak işaretlenip işaretlenmeyeceğini belirtir (isteğe bağlı). Varsayılan değer false değeridir.
<overwriteAction>
Kütüphanede aynı adı taşıyan bir nesne zaten varsa, <overwriteAction> için aşağıdaki seçeneklerden birini seçebilirsiniz:
Örneğin:
<tns:ImportObject xmlns:tns="http://www.ca.com/itpam"> <tns:importFileParam> <tns:auth> <tns:user>Joe</tns:user> <tns:password>benimparolam</tns:password> <tns:auth> <tns:importLocation>/ABC</tns:importLocation> <tns:localSourceLocation>"C://abc.xml"</tns:localSourceLocation> <tns:isSetCurrent>true</tns:isSetCurrent> <tns:isMakeAvailable>true</tns:isMakeAvailable> <tns:overwriteAction>skipImport</tns:overwriteAction> </tns:importFileParam> <!--This SOAP request can have MIME contents--> </tns:ImportObject>
Sonuç:
<importFileResponse xmlns="http://www.ca.com/itpam"> <messages> <message>Could not import object CustomIcon. Another object with the same name as "CustomIcon" already exists.</message> <message>Could not import object P1. Another object with the same name as "P1" already exists.</message> <message>Could not import object Process. Another object with the same name as "Process" already exists.</message> <message>Could not import object Agenda. Another object with the same name as "Agenda" already exists.</message> <message>Could not import object Resources. Another object with the same name as "Resources" already exists.</message> <message>Could not import object SOAPMethods. Another object with the same name as "SOAPMethods" already exists.</message> <message>Could not import object ProcessWatch. Another object with the same name as "ProcessWatch" already exists.</message> <message>Could not import object Calendar. Another object with the same name as "Calendar" already exists.</message> <message>Could not import object SOAPModule_NegativeCases. Another object with the same name as "SOAPModule_NegativeCases" already exists.</message> <message>Could not import object IRF. Another object with the same name as "IRF" already exists.</message> <message>Could not import object SOAPOperators_DynamicParams. Another object with the same name as "SOAPOperators_DynamicParams" already exists.</message> <message>Could not import object Interaction Request Form. Another object with the same name as "Interaction Request Form" already exists.</message> <message>Could not import object SRF. Another object with the same name as "SRF" already exists.</message> <message>Could not import object SOAPTest_Trigger. Another object with the same name as "SOAPTest_Trigger" already exists.</message> <message>Could not import object CustomOperator. Another object with the same name as "CustomOperator" already exists.</message> <message>Could not import object Process_2. Another object with the same name as "Process_2" already exists.</message> <message>Could not import object Dataset. Another object with the same name as "Dataset" already exists.</message> <message>Could not import object Start Request Form. Another object with the same name as "Start Request Form" already exists.</message> <message>Could not import object GlobalVars. Another object with the same name as "GlobalVars" already exists.</message> <message>Could not import object Package. Another object with the same name as "Package" already exists.</message> </messages> </importFileResponse>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <importFileResponse xmlns="http://www.ca.com/itpam"> <successMessage>The specified object imported successfully.</successMessage> </importFileResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
<successMessage>, başarılı bir içe aktarma iletisi görüntüler.
|
Telif Hakkı © 2013 CA.
Tüm hakları saklıdır.
|
|