Hi,
You're really trying to mix apples and oranges.
SOAP, is it says is "simple object access protocol" which is mainly
meant to do RPC calls.
Now RESTful is just an architecture.
You just need to map several RPC calls to REST calls and you're done.
Calling SOAP from Python isn't easy task since depending on end SOAP
point some libs do work better than other.
And in worst case I've seen so poorly generated SOAP that none of the
Python SOAP libs couldn't talk to that.
So you have to think SOAP being something that you just call like
functions in Python to return you some data. Which you then transform in
proper format with DRF.
On 11.02.2015 14:43, Tharshan wrote:
Hi,
I was hoping this group could give me some advice on what the best way
to approach wrapping a SOAP API through DRF and expose the resources
found in the SOAP Schemas as REST endpoints. One of the issues is the
creation of the classes and fields required for a each resource. Is
there a way to generate classes by parsing the XML Schema of the SOAP
API? Would you write a serialiser that translated back and forth
between XML? To send the response in XML but also to receive a
response in XML but send it back to the client as JSON.
Any ideas or suggestions are welcome.
Thanks
--
You received this message because you are subscribed to the Google
Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
Jani Tiainen
--
You received this message because you are subscribed to the Google Groups "Django
REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.