Questions tagged [application-xml]
7 questions
5
votes
2 answers
Server cannot consume application/xml request sent from Electron application
I have a Javascript application generating an XML and sending it to a REST API. The API is expecting content type: application/xml. I have tried to attach the XML to the requests in different formats:
import {create} from 'xmlbuilder2';
…

Levente Rozsenich
- 389
- 1
- 11
3
votes
0 answers
Get raw POST data from Firebase Function/Express/Node.js
Using a Firebase Function to server POST requests. I need it to deal with application/xml data. But all I get back from req.body is an empty object {} as Firebase Functions appears to only support certain data…

at.
- 50,922
- 104
- 292
- 461
1
vote
1 answer
convert IList object to List
[System.Web.Http.HttpGet]
[System.Web.Http.Route("acDetails")]
[ResponseType(typeof(List))]
public IHttpActionResult acDetails(string Text)
{
var db = new ModelName();
…

mr_gemini
- 53
- 4
0
votes
0 answers
MediaType.APPLICATION_XML_VALUE issue
I have a method that is configured to return either JSON or XML output using Spring boot 2.6.2. while it works fine for JSON, while trying to return XML output, it gives an exception -…

Hemant Satam
- 55
- 7
0
votes
0 answers
Enum not coverting expando object to XML in .net Core Web API GET response
I have a get method on a .net Core 3.1 Web API controller that returns an expando object which is generated from a model class.
The model contains an enum value:
public class MyModel
{
public int Id { get; set; }
public string Name { get;…

Sun
- 4,458
- 14
- 66
- 108
0
votes
2 answers
PHP: How to extract “content type=”application/xml" nodes from a XML file?
I have a valid XML file (generated from SharePoint) which looks like this (in browser):
Sample XML File

夏期劇場
- 17,821
- 44
- 135
- 217
-1
votes
1 answer
XML Namespace url generating X001 instead of 2001
Anyone knows why XML name space is populating as http://www.w3.org/X001/XMLSchema-instance in mapped request instead of http://www.w3.org/2001/XMLSchema-instance
The mapped request has XML defined objects and all have schema namespace…

Edwardo Afundoh
- 626
- 2
- 7
- 19