Is it possible to query the endpoint of soap through odata?

I have a SOAP endpoint:

<organization URL>/XRMServices/2011/Organization.svc 

I would like to create an odata wrapper around this service, for example, when navigating at http://myodataservice/api/Entities$?filter=AccountNumber eq '123123'

It will retrieve data from the SOAP service (wsdl), but this will allow the client to issue odata requests.

Is it possible to request a SOAP service using ODATA?

+6
source share
1 answer

You can create an OData wrapper around the SOAP endpoint, but I don't think it's worth it.

The OData service allows you to filter, organize, and select all properties (among other things), and the SOAP service may not allow all of this, so you may have to go to the OData service and get all the data, and then it will lose OData's main advantage, since You can do all filtering and sorting on the server side. You can also just get the client part of the data and filter it there.

If your SOAP service somehow has all this support, then yes, you can write an OData wrapper for it and get these benefits, but there will still be a lot of work in converting all of the various possible requests into something that the SOAP service can work.

I don’t know your reasons that require OData wrappers, but it looks like it can be a lot of work for minimal benefits, but it all depends on your use case.

+4
source

All Articles