Python Forum

Full Version: Soap json program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Any one has python program to trigger soap and json call based on parameter. SSL n non SSL CALLS. pls share. Thanks
They're just http calls, so you can use any http library you like. requests is quite nice.
hi Nilamo, thanks for the information, i was actually looking for a code which has request passed as parameter and response generated in file, i couldnt find after googling it. if you have any pls share. Pray

example.... or something similar... Big Grin small change i can do to fit my requirement.
soap_prog.py <endpoint> <soapaction> /tmp/envlope_file
json_prog.py <endpoint> /tmp/headerinfo.txt
I'm not sure you can do something that generic, as every soap/json service will have a different api.
Hi Nilamo, i will use regex to parse requied API. Currently i have a java code that does this. I have URL, URI, OPERATION, PAYLOAD etc in DB..I run java prog in iteration and execute each test. I hope u got it.
If you already have it working in java, why do you need it in python?
Also, we're not going to do it for you. What we WILL do, is help you if you have any issues along the way.