Автор |
Сообщение |
|
Всем доброго...
Подскажите, где может быть ошибка.
Использую Ветис.API 2.0, EndPoint https://api2.vetrf.ru:8002/platform/services/2.0/EnterpriseService. Делаю для теста getBusinessEntityByGuidRequest
Делаю простой запрос, в файле Request2.xml:
<soapenv:Envelope xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
xmlns:ws="http://api.vetrf.ru/schema/cdm/registry/ws-definitions/v2"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ws:getBusinessEntityByGuidRequest>
<bs:guid>98c3613e-8bde-4b6c-a748-984b8c19800c</bs:guid>
</ws:getBusinessEntityByGuidRequest>
</soapenv:Body>
</soapenv:Envelope>
Для теста делаю через Curl:
curl --data-binary Request2.xml -H "Content-Type: text/xml" -u мой_логин:мой_пароль https://api2.vetrf.ru:8002/platform/services/2.0/EnterpriseService -k > Answer.xml -v
Получаю ошибку:
<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Body>
- <soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>BEA-382030: Failure while unmarshalling message: Failed to parse XML text</faultstring>
- <detail>
- <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382030</con:errorCode>
<con:reason>Failure while unmarshalling message: Failed to parse XML text</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>
|
|
|
|
|