Hi all Is verification of XML responses in the ro...
# pactflow-ama
n
Hi all Is verification of XML responses in the roadmap? If not is there a way for us to build that feature ?
y
Hey Nuno, Is this for consumer-driven or bi-directional?
n
Bi directional
(sorry I should have given more context)
y
The underlying project we use to compare Pacts -> OpenAPI is here https://github.com/pactflow/swagger-mock-validator Might give you a cookie trail. What would you be looking to compare from on the provider side? OpenAPI doc with xml responses or say a WSDL if using Soap
n
Correct. Our responses are XML.
So we would need to verify our pacts agains an OAS with XML responses
y
That could be one way. Do you already have an OAS with response payloads set as application/xml? Have you attempted a comparison with a pact that contains an xml resp. It might just work?
n
Actually I am not entirely sure our use case is the OAS with the XML response. I just got a response from a colleague mentioning that it is a SOAP API.
y
If its SOAP, you will have a WSDL as your description file of the providing API
n
In that case could we just upload a WSDL file ? (btw I am a bit out of my depth with SOAP)
y
we have some SOAP examples but for regular consumer driven contract testing
negative
n
Is it supported on BDCT ?
As in could I verify a XML contract against a WSDL file ?
y
negative, WSDL is not supported for a provider contract Only OpenAPI https://docs.pactflow.io/docs/bi-directional-contract-testing/contracts/oas
n
Thanks @Yousaf Nabi (pactflow.io)
Do you know if there is a plan to include that capability in BDCT ?
m
It's on a feature list but it's not prioritised so there are no timelines at this point, I can add you to it (could you please DM me your Pactflow URL / org name so I can put your vote on it).