My goal is to implement an api to an external webservice resource, the response format is xml and the scheme is also known.
For example, this is the external resource api:
https://MyProduct.MyDomain.com/webservice/rest/1.0/MyMethod/
And the external resource api's xml scheme:
https://MyProduct.MyDomain.com/xsd/1.0/MyMethodDataTypes.xsd
The xsd is very long and complex, so I would like to avoid copy it by hand into a class response
So in order to de-serialize the response this is what I did:
- Using Postman I've requested a demo request.
- Copied the xml response.
- Using visual studio paste special, I've pasted the xml response as a class.
The problem is that now the class response is built upon only one specific request and does not contain all of the response properties.
So my question is:
Is it possible to create the response class based on the vendor's xsd scheme?