Forum Discussion

neerajdahiya's avatar
neerajdahiya
New Contributor
6 years ago

Handling XML namespace in Swagger file

I am creating swagger YAML file for my XML APIs. Existing APIs consists of multiple xml namespaces in request body (sample below). I am able to take all the API to swagger YAML except definition of namespaces as part of root element.

Any inputs on how to map multiple xml namespaces would be really helfpul.

 

...

Connection: keep-alive

Content-Length: 633

<Prov xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.example.com/provisioning/services">
<Header>    <rID/>    <ver/></Header> </Prov>