Zoeh wrote:
Отправляем запрос на сервис
https://api2.vetrf.ru:8002/platform/services/ApplicationManagementService
ModifyEnterpriseOperation
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://api.vetrf.ru/schema/cdm/application/ws-definitions"
xmlns:app="http://api.vetrf.ru/schema/cdm/application"
xmlns:merc="http://api.vetrf.ru/schema/cdm/mercury/applications"
xmlns:base="http://api.vetrf.ru/schema/cdm/base"
xmlns:com="http://api.vetrf.ru/schema/cdm/argus/common"
xmlns:ent="http://api.vetrf.ru/schema/cdm/cerberus/enterprise"
xmlns:ikar="http://api.vetrf.ru/schema/cdm/ikar">
<soapenv:Header/>
<soapenv:Body>
<ws:submitApplicationRequest>
<ws:apiKey>ххх</ws:apiKey>
<app:application>
<app:serviceId>mercury-g2b.service</app:serviceId>
<app:issuerId>ххх</app:issuerId>
<app:issueDate>2017-10-17T15:48:00</app:issueDate>
<app:data>
<merc:modifyEnterpriseRequest>
<merc:localTransactionId>a10003</merc:localTransactionId>
<merc:initiator>
<com:login>ххх</com:login>
</merc:initiator>
<merc:modificationOperation>
<ent:type>CREATE</ent:type>
<ent:resultingList count="1" total="1" offset="0">
<ent:enterprise>
<ent:name>ООО "хх "хх"</ent:name>
<ent:type>1</ent:type>
<ent:address>
<ikar:country>
<base:guid>74a3cbb1-56fa-94f3-ab3f-хх</base:guid>
</ikar:country>
<ikar:region>
<base:guid>27eb7c10-a234-44da-a59c-хх</base:guid>
</ikar:region>
<ikar:locality>
<base:guid>110c731e-d72b-4c37-91cb-хх</base:guid>
</ikar:locality>
<ikar:addressView>456238, Российская Федерация, хх ж/д ст., д. 1</ikar:addressView>
</ent:address>
<ent:activityList count="1" total="1" offset="0">
<ent:activity>
<ent:name>Оптовая торговля</ent:name>
</ent:activity>
</ent:activityList>
<ent:owner>
<base:guid>14227e7c-eba2-44cf-b46f-6bcf8a884e07</base:guid>
</ent:owner>
</ent:enterprise>
</ent:resultingList>
<ent:reason>Тестовое добавление площадки</ent:reason>
</merc:modificationOperation>
</merc:modifyEnterpriseRequest>
</app:data>
</app:application>
</ws:submitApplicationRequest>
</soapenv:Body>
</soapenv:Envelope>
Получаем в ответ:
<?xml version="1.0" encoding="UTF-8"?>
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
-<soapenv:Body>
-<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>BEA-382513: OSB Replace action failed updating variable "body": Error parsing XML: {err}FORG0005: expected exactly one item, got 0 items</faultstring>
-<detail>
-<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382513</con:errorCode>
<con:reason>OSB Replace action failed updating variable "body": Error parsing XML: {err}FORG0005: expected exactly one item, got 0 items</con:reason>
-<con:location>
<con:path>request-pipeline</con:path>
<con:error-handler>true</con:error-handler>
</con:location>
</con:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Подскажите, пожалуйста, в чем ошибка может быть?