Introducción
Este documento describe el error invocado cuando el servicio web se utiliza con el tipo de contenido XML.
Prerequisites
Requirements
Cisco recomienda que tenga conocimiento sobre estos temas:
- CloudCenter 4.8.1/4.8.2
- solicitudes XMLSOAP
- Biblioteca de acciones
Componentes Utilizados
La información de este documento se basa en CloudCenter 4.8.1 / 4.8.2.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Problema
Cuando se invoca un servicio web con el uso de la solicitud xmlsoap sobre el sobre con Action Library, se produce esta excepción:
VENDOR_ID::1::USER_ID::2::2018-02-21 14:30:39,237 ERROR handlers.CCMActionHandler [actionAsyncTaskExecutor-4] - Unable to Invoke Web Service with reason: 415 Unsupported Media Type
org.springframework.web.client.HttpClientErrorException: 415 Unsupported Media Type
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:641)
Solución
Cloud Center no admite el tipo de contenido XML (text/xml), por lo que falla con la excepción mencionada.
Referencia de error: CSCvi09031 ![Bug-Preview for CSCvi09031](https://techzone.cisco.com/html/assets/mag.gif)