AnsweredAssumed Answered

Creating virtualService

Question asked by grzesiu on Aug 18, 2016

Hi. I'm trying to create model and deploy mar file, but I'm getting:

<Id>1009</Id><Message>Unsupported Media Type</Message>


I'm using node.js and request module. I tried to add content type in various ways but that not worked. I tried both - json and xml way.


Here is my request:


var body = `<?xml version="1.0" encoding="UTF-8" ?>
  <VirtualService type="application/" xsi:schemaLocation=" VirtualService.xsd" xmlns:xsi="" name="MyService" xmlns="">

var options = {

   url: 'url/api/Dcm/VSEs/MyService/Test',
   headers: [


   name: 'Content-Type',
   value: 'application/'

   multipart: [


   'content-type': 'application/',
   'body': body


   method: 'put'

request.put(options, function (err, resp, body) {

   if (err) {

   } else {


Can you help me?