My WSDL file is located in http://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl and target where i should call methods is http://192.168.0.33:8080/onvif/services
, how to configure SUDS
client to use this two addresses?
Asked
Active
Viewed 880 times
2 Answers
1
This post answers your question: Changing web service url in SUDS library
from suds.client import Client
client = Client('http://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl')
client.wsdl.services[0].setlocation('http://192.168.0.33:8080/onvif/services')

Community
- 1
- 1

Antti Mäki
- 108
- 1
- 8
0
I've been looking to solve the same issue. I've came up with another solution that I find a bit more elegant than the one provided by Antti:
from suds.client import Client
client = Client(
'http://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl',
location='http://192.168.0.33:8080/onvif/services',
)

Almog Cohen
- 1,283
- 1
- 13
- 12