2017-02-16 3 views
-1

Ich habe eine SOAPUI-Anfrage. Ich muss mehrere Produkt-IDs aus einer Anfrage ausführen. Wir müssen es von SOAPUI aktualisieren. Dies ist die Anfrage:So führen Sie mehrere Datensätze aus einer SOAPUI-Anfrage

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
     <SOAP-ENV:Body> 
      <DataService> 
      <Identity> 
       <DirectoryPath> 
        <Directory type="Enterprise">AP</Directory> 
        <Directory type="User">admin</Directory> 
       </DirectoryPath> 
       <Authentication type="password">admin</Authentication> 
      </Identity> 
      <Transaction> 
       <Command type="Modify"> 
        <!--The Supported CommandTypes for Save are Add and Modify--> 
        <MasterCatalogRecord etype="Entity" commandqualifier="NoValidate/NoProcess"> 
         <!--The Suppored commandqualifier for Save are Validate/Process, Validate/NoProcess, NoValidate/Process, NoValidate/NoProcess default is Validate/Process--> 
         <ExternalKeys> 
         <Key name="MASTERCATALOGNAME" type="string">SYSTEM</Key> 
         <Key name="PRODUCTID" type="string">SYS1</Key> 
         </ExternalKeys> 
         <EntityData> 
        <Attribute name="RECORD_STATE" type="string">Confirmed</Attribute> 
         </EntityData>   
        </MasterCatalogRecord> 
       </Command> 
      </Transaction> 
      </DataService> 
     </SOAP-ENV:Body> 
    </SOAP-ENV:Envelope> 
+0

Möchten Sie mehrere Datensätze im gleichen 'MasterCatalog' hinzufügen/bearbeiten? was genau versuchst du zu tun? – Rao

+0

Möchten Sie verknüpfte Datensätze oder mehrere einzelne Datensätze ändern? –

Antwort

1

Unten ist die Probe Anfrage mehrere Datensätze (nicht verwandt) mit unterschiedlichen Produkt ID durch einzelne Anfrage hinzufügen:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.tibco.com/cim/services/mastercatalogrecord/wsdl/2.0"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <DataService version="2.0" xmlns="http://www.tibco.com/cim/services/mastercatalogrecord/wsdl/2.0"> 
     <Identity> 
      <DirectoryPath> 
       <Directory type="Enterprise">AP</Directory> 
       <Directory type="User">admin</Directory> 
      </DirectoryPath> 
      <Authentication>admin</Authentication> 
     </Identity> 
     <Transaction atomic="on"> 
      <Command type="Modify"> 
       <!--The Supported CommandTypes for Save are Add and Modify--> 
       <MasterCatalogRecord etype="Entity" commandqualifier="NoValidate/NoProcess"> 
        <!--The Suppored commandqualifier for Save are Validate/Process, Validate/NoProcess, NoValidate/Process, NoValidate/NoProcess default is Validate/Process--> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">SYSTEM</Key> 
        <Key name="PRODUCTID" type="string">SYS1</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="RECORD_STATE" type="string">Confirmed</Attribute> 
        </EntityData> 
       </MasterCatalogRecord> 
      </Command> 
      <Command type="Modify"> 
       <!--The Supported CommandTypes for Save are Add and Modify--> 
       <MasterCatalogRecord etype="Entity" commandqualifier="NoValidate/NoProcess"> 
        <!--The Suppored commandqualifier for Save are Validate/Process, Validate/NoProcess, NoValidate/Process, NoValidate/NoProcess default is Validate/Process--> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">SYSTEM</Key> 
        <Key name="PRODUCTID" type="string">SYS2</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="RECORD_STATE" type="string">Confirmed</Attribute> 
        </EntityData> 
       </MasterCatalogRecord> 
      </Command> 
      <Command type="Modify"> 
       <!--The Supported CommandTypes for Save are Add and Modify--> 
       <MasterCatalogRecord etype="Entity" commandqualifier="NoValidate/NoProcess"> 
        <!--The Suppored commandqualifier for Save are Validate/Process, Validate/NoProcess, NoValidate/Process, NoValidate/NoProcess default is Validate/Process--> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">SYSTEM</Key> 
        <Key name="PRODUCTID" type="string">SYS3</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="RECORD_STATE" type="string">Confirmed</Attribute> 
        </EntityData> 
       </MasterCatalogRecord> 
      </Command> 
     </Transaction> 
     </DataService> 
    </soapenv:Body> 
</soapenv:Envelope> 

Und unten wird die Anfrage an Anzeige mehrere verknüpfte Datensätze durch Einzelanfrage:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
    <SOAP-ENV:Body> 
     <DataService version="2.0" xmlns="http://www.tibco.com/cim/services/mastercatalogrecord/wsdl/2.0"> 
     <Identity> 
      <DirectoryPath> 
       <Directory type="Enterprise">AP</Directory> 
       <Directory type="User">admin</Directory> 
      </DirectoryPath> 
      <Authentication type="password">admin</Authentication> 
     </Identity> 
     <Transaction atomic="on"> 
      <Command type="Modify"> 
       <!--The Supported CommandTypes for Save are Add and Modify--> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <!--The Suppored commandqualifier for Save are Validate/Process, Validate/NoProcess, NoValidate/Process, NoValidate/NoProcess--> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">SYSTEM</Key> 
        <Key name="PRODUCTID" type="string">SYS1</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="RECORD_STATE" type="string">Confirmed</Attribute> 
        </EntityData> 
        <RelationshipData> 
        <Relationship> 
         <RelationType>SystemToClient</RelationType> 
         <RelatedEntities> 
          <MasterCatalogRecord etype="Entity"> 
           <ExternalKeys> 
           <Key name="MASTERCATALOGNAME" type="string">CLIENT</Key> 
           <Key name="PRODUCTID" type="string">CLI1</Key> 
           </ExternalKeys> 
          </MasterCatalogRecord> 
         </RelatedEntities> 
        </Relationship> 
        </RelationshipData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT</Key> 
        <Key name="PRODUCTID" type="string">CLI1</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_B</Attribute> 
        </EntityData> 
        <RelationshipData> 
        <Relationship> 
         <RelationType>C1toC2</RelationType> 
         <RelatedEntities> 
          <MasterCatalogRecord etype="Entity"> 
           <ExternalKeys> 
           <Key name="MASTERCATALOGNAME" type="string">CLIENT2</Key> 
           <Key name="PRODUCTID" type="string">c25</Key> 
           </ExternalKeys> 
          </MasterCatalogRecord> 
         </RelatedEntities> 
        </Relationship> 
        </RelationshipData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT2</Key> 
        <Key name="PRODUCTID" type="string">c25</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_C</Attribute> 
        </EntityData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT2</Key> 
        <Key name="PRODUCTID" type="string">c25</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_B</Attribute> 
        </EntityData> 
        <RelationshipData> 
        <Relationship> 
         <RelationType>C2toC3</RelationType> 
         <RelatedEntities> 
          <MasterCatalogRecord etype="Entity"> 
           <ExternalKeys> 
           <Key name="MASTERCATALOGNAME" type="string">CLIENT3</Key> 
           <Key name="PRODUCTID" type="string">c25</Key> 
           </ExternalKeys> 
          </MasterCatalogRecord> 
         </RelatedEntities> 
        </Relationship> 
        </RelationshipData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT3</Key> 
        <Key name="PRODUCTID" type="string">c25</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_C</Attribute> 
        </EntityData> 
       </MasterCatalogRecord> 
      </Command> 
      <Command type="Modify"> 
       <!--The Supported CommandTypes for Save are Add and Modify--> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <!--The Suppored commandqualifier for Save are Validate/Process, Validate/NoProcess, NoValidate/Process, NoValidate/NoProcess--> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">SYSTEM</Key> 
        <Key name="PRODUCTID" type="string">SYS2</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="RECORD_STATE" type="string">Confirmed</Attribute> 
        </EntityData> 
        <RelationshipData> 
        <Relationship> 
         <RelationType>SystemToClient</RelationType> 
         <RelatedEntities> 
          <MasterCatalogRecord etype="Entity"> 
           <ExternalKeys> 
           <Key name="MASTERCATALOGNAME" type="string">CLIENT</Key> 
           <Key name="PRODUCTID" type="string">CLI2</Key> 
           </ExternalKeys> 
          </MasterCatalogRecord> 
         </RelatedEntities> 
        </Relationship> 
        </RelationshipData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT</Key> 
        <Key name="PRODUCTID" type="string">CLI2</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_B</Attribute> 
        </EntityData> 
        <RelationshipData> 
        <Relationship> 
         <RelationType>C1toC2</RelationType> 
         <RelatedEntities> 
          <MasterCatalogRecord etype="Entity"> 
           <ExternalKeys> 
           <Key name="MASTERCATALOGNAME" type="string">CLIENT2</Key> 
           <Key name="PRODUCTID" type="string">c251</Key> 
           </ExternalKeys> 
          </MasterCatalogRecord> 
         </RelatedEntities> 
        </Relationship> 
        </RelationshipData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT2</Key> 
        <Key name="PRODUCTID" type="string">c251</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_C</Attribute> 
        </EntityData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT2</Key> 
        <Key name="PRODUCTID" type="string">c251</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_B</Attribute> 
        </EntityData> 
        <RelationshipData> 
        <Relationship> 
         <RelationType>C2toC3</RelationType> 
         <RelatedEntities> 
          <MasterCatalogRecord etype="Entity"> 
           <ExternalKeys> 
           <Key name="MASTERCATALOGNAME" type="string">CLIENT3</Key> 
           <Key name="PRODUCTID" type="string">c251</Key> 
           </ExternalKeys> 
          </MasterCatalogRecord> 
         </RelatedEntities> 
        </Relationship> 
        </RelationshipData> 
       </MasterCatalogRecord> 
       <MasterCatalogRecord etype="Entity" commandqualifier="Validate/Process"> 
        <ExternalKeys> 
        <Key name="MASTERCATALOGNAME" type="string">CLIENT3</Key> 
        <Key name="PRODUCTID" type="string">c251</Key> 
        </ExternalKeys> 
        <EntityData> 
        <Attribute name="attr1_string" type="string">Test_C</Attribute> 
        </EntityData> 
       </MasterCatalogRecord> 
      </Command> 
     </Transaction> 
     </DataService> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 
Verwandte Themen