バッチSOAP操作の実行
バッチSOAP操作を実行して、1回のSOAPコールで大量のデータを作成または更新できます。 バッチ処理を実行するには、SOAPリクエスト・ペイロードに複数のエンティティ・セットを含める必要があります。
スムーズな処理をリクエストするエンティティの数が管理できないことを確認する必要があります。 また、複数のエンティティを管理できるエラー処理および後処理データ検証が実施されていることを確認してください。 1回のSOAPコールで多数のレコードを処理する際に、タイムアウトの問題やデータの競合が発生する場合があります。
単一のSOAPコールを使用して複数の販売アカウントを作成するためのサンプル・リクエスト・ペイロードを次に示します:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/" xmlns:acc="http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/" xmlns:com="http://xmlns.oracle.com/apps/crmCommon/salesParties/commonService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/" xmlns:org="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/" xmlns:sal="http://xmlns.oracle.com/apps/crmCommon/salesParties/salesPartiesService/">
<soapenv:Header/>
<soapenv:Body>
<typ:createAccount>
<typ:account>
<acc:OrganizationName>Pinnacle Flowers</acc:OrganizationName>
<acc:Type>ZCA_CUSTOMER</acc:Type>
<acc:CreatedByModule>HZ_WS</acc:CreatedByModule>
<acc:PhoneCountryCode>1</acc:PhoneCountryCode>
<acc:PhoneAreaCode>650</acc:PhoneAreaCode>
<acc:PhoneNumber>8881111</acc:PhoneNumber>
<acc:PhoneExtension>123</acc:PhoneExtension>
<acc:PrimaryAddress>
<com:AddressLine1>Strada xpto</com:AddressLine1>
<com:City>Bucharest</com:City>
<com:Country>RO</com:Country>
</acc:PrimaryAddress>
</typ:account>
</typ:createAccount>
<typ:createAccount>
<typ:account>
<acc:OrganizationName>Vision Corp</acc:OrganizationName>
<acc:Type>ZCA_CUSTOMER</acc:Type>
<acc:CreatedByModule>HZ_WS</acc:CreatedByModule>
<acc:PhoneCountryCode>1</acc:PhoneCountryCode>
<acc:PhoneAreaCode>650</acc:PhoneAreaCode>
<acc:PhoneNumber>93934111</acc:PhoneNumber>
<acc:PhoneExtension>1434</acc:PhoneExtension>
<acc:PrimaryAddress>
<com:AddressLine1>Boulevard Drive</com:AddressLine1>
<com:City>San Francisco</com:City>
<com:Country>US</com:Country>
</acc:PrimaryAddress>
</typ:account>
</typ:createAccount>
</soapenv:Body>
</soapenv:Envelope>