You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromzeepimportClientasZeepClient# Initialize the Zeep client zeep_client=ZeepClient(wsdl="http://cdmo.baruch.sc.edu/webservices2/requests.cfc?wsdl")
print(zeep_client.service) # Lists available operations and their bindings # Assuming `station_code` and `param_name` are defined response=zeep_client.service.exportSingleParamXML(
station_code, # Station_Code 25, # recs param_name# param
)
yields a bunch of these:
/home/tylarmurray/.local/lib/python3.10/site-packages/zeep/wsdl/definitions.py:146: UserWarning: The wsdl:operation 'exportAllParamsXML' was not found in the wsdl:portType '{http://webservices2}Requests'
warnings.warn(str(exc))
and
<zeep.proxy.ServiceProxy object at 0x7fcd6d537f70>
Traceback (most recent call last):
File "/home/tylarmurray/.local/lib/python3.10/site-packages/zeep/proxy.py", line 97, in __getitem__
return self._operations[key]
KeyError: 'exportSingleParamXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tylarmurray/nerrs-data/nerrs_data/nerrs_data.py", line 57, in <module>
getData("acespwq", "Sal")
File "/home/tylarmurray/nerrs-data/nerrs_data/nerrs_data.py", line 19, in getData
response = zeep_client.service.exportSingleParamXML(
File "/home/tylarmurray/.local/lib/python3.10/site-packages/zeep/proxy.py", line 88, in __getattr__
return self[key]
File "/home/tylarmurray/.local/lib/python3.10/site-packages/zeep/proxy.py", line 99, in __getitem__
raise AttributeError("Service has no operation %r" % key)
AttributeError: Service has no operation 'exportSingleParamXML'
I worked around this by manually parsing the raw xml, which is certainly not ideal. I think this might be a bug in the provided wsdl which could be reported to the CDMO.
The text was updated successfully, but these errors were encountered:
The soap wsdl at https://cdmo.baruch.sc.edu//webservices2/requests.cfc?wsdl might have issues. I am having trouble making it work and tried two different SOAP drivers:
yields a bunch of these:
and
I worked around this by manually parsing the raw xml, which is certainly not ideal. I think this might be a bug in the provided wsdl which could be reported to the CDMO.
The text was updated successfully, but these errors were encountered: