Forum Discussion

Shashank_R's avatar
Shashank_R
New Contributor
2 months ago

Swagger hub XML response missing namespace and prefix

We have defined an xml response schema like below

Test1Response:
      type: object
      properties:
        Body:
         $ref: "#/components/schemas/Test1BodyResponse"
      xml:
        name: Envelope
        namespace: http://schemas.xmlsoap.org/soap/Test1/
        prefix: soap
    Test1BodyResponse:
      type: object
      properties:
         Message: 
           $ref: "#/components/schemas/Test1Response"
      xml:
        name: Body
        namespace: http://schemas.xmlsoap.org/soap/Test1/
        prefix: ns6

The example response payload matched the schema.

But, when I test. I get the XML response payload without prefix and namespace.

Is there an issue with using different namespace and prefix for the child objects?

Any help is appreciated! 

No RepliesBe the first to reply