Contents

Introduction

Prerequisites

Requirements

Components Used

Problem

Solution

Introduction

This document describes the error invoked when the web service is used with XML content type.

Prerequisites

Requirements

Cisco recommends that you have knowledge of these topics:

- CloudCenter 4.8.1 / 4.8.2

- XMLSOAP requests

- Action Library

Components Used

The information in this document is based on 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.

Problem

When a web service is invoked with the use of xmlsoap envelop request with Action Library, it throws this exception:

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)

Solution

Cloud Center does not support the content type XML (text/xml) hence, it fails with the mentioned exception.

Bug Reference: CSCvi09031