Here's what I'm getting today...
from suds.client import Client engr = Client('http://www.engr.utexas.edu/feeds/newsXML.cfc?wsdl') engr.service.newsfeed(newstype='news', dept='ECE', maxReturn=3)
2008-08-01 10:22:58,150 [ERROR] send() @client.py:310 <SOAP-ENV:Envelope xmlns:intf="http://feeds" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/%22%3E SOAP-ENV:Header/ SOAP-ENV:Body intf:newsfeed/ </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/suds/client.py", line 166, in __call__ raise e suds.WebFault: Server raised fault: 'coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UndefinedVariableException : Variable NEWSTYPE is undefined.]'
Yesterday, I was getting a similar error but a different variable...
engr.service.newsfeed(newstype='news', dept='ECE', maxReturn=3)
... suds.WebFault: Server raised fault: 'coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UndefinedVariableException : Variable MAXRETURN is undefined.]
Is there something about this WSDL that suds isn't liking? I'm told by the maintainer of the service that the following is working in PHP:
<?php require_once('nusoap.php'); $wsdl="http://www.engr.utexas.edu/feeds/newsXML.cfc?wsdl"; $client=new soapClient($wsdl, 'wsdl'); $param=array('newstype'=>'press', 'dept'=>'', 'maxReturn'=>'5'); echo $client->call('newsfeed', $param); ?>
Thanks, Gary
Gary:
This is not the resolution to your question, just another query. When you get a web fault do you get to see the description and the fault code from the Python Client?
Thanks
On 8/1/08, Gary Wilson Jr. gary.wilson@gmail.com wrote:
Here's what I'm getting today...
from suds.client import Client engr =
Client('http://www.engr.utexas.edu/feeds/newsXML.cfc?wsdl')
engr.service.newsfeed(newstype='news', dept='ECE',
maxReturn=3) 2008-08-01 10:22:58,150 [ERROR] send() @client.py:310 <SOAP-ENV:Envelope xmlns:intf="http://feeds" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/%22%3E SOAP-ENV:Header/ SOAP-ENV:Body intf:newsfeed/ </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/suds/client.py", line 166, in __call__ raise e suds.WebFault: Server raised fault: 'coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UndefinedVariableException : Variable NEWSTYPE is undefined.]'
Yesterday, I was getting a similar error but a different variable...
engr.service.newsfeed(newstype='news', dept='ECE',
maxReturn=3) ... suds.WebFault: Server raised fault: 'coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UndefinedVariableException : Variable MAXRETURN is undefined.]
Is there something about this WSDL that suds isn't liking? I'm told by the maintainer of the service that the following is working in PHP:
<?php require_once('nusoap.php'); $wsdl="http://www.engr.utexas.edu/feeds/newsXML.cfc?wsdl"; $client=new soapClient($wsdl, 'wsdl'); $param=array('newstype'=>'press', 'dept'=>'', 'maxReturn'=>'5'); echo $client->call('newsfeed', $param); ?>
Thanks, Gary
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list
Hi Gary,
Can you try doing it without sending the name of the variables allow with the request. For instance,
c.service.newsfeed('news', 'ECE', 3)
That should work
-Nathan
On Fri, Aug 1, 2008 at 10:33 AM, Gary Wilson Jr. gary.wilson@gmail.comwrote:
Here's what I'm getting today...
from suds.client import Client engr = Client('http://www.engr.utexas.edu/feeds/newsXML.cfc?wsdl') engr.service.newsfeed(newstype='news', dept='ECE', maxReturn=3)
2008-08-01 10:22:58,150 [ERROR] send() @client.py:310 <SOAP-ENV:Envelope xmlns:intf="http://feeds" xmlns:SOAP-ENC=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/%22%3E SOAP-ENV:Header/ SOAP-ENV:Body intf:newsfeed/ </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/suds/client.py", line 166, in __call__ raise e suds.WebFault: Server raised fault: 'coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UndefinedVariableException : Variable NEWSTYPE is undefined.]'
Yesterday, I was getting a similar error but a different variable...
engr.service.newsfeed(newstype='news', dept='ECE', maxReturn=3)
... suds.WebFault: Server raised fault: 'coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UndefinedVariableException : Variable MAXRETURN is undefined.]
Is there something about this WSDL that suds isn't liking? I'm told by the maintainer of the service that the following is working in PHP:
<?php require_once('nusoap.php'); $wsdl="http://www.engr.utexas.edu/feeds/newsXML.cfc?wsdl"; $client=new soapClient($wsdl, 'wsdl'); $param=array('newstype'=>'press', 'dept'=>'', 'maxReturn'=>'5'); echo $client->call('newsfeed', $param); ?>
Thanks, Gary
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list
Nathan Van Gheem wrote:
Can you try doing it without sending the name of the variables allow
with the request. For instance,
c.service.newsfeed('news', 'ECE', 3)
That should work
Indeed it does!
Naturally, I wanted to use keyword arguments here because the str(client) had them in the method description. It would be nice if keyword arguments could be popped off and used as position arguments before calling the service method.
I'm not complaining though :) Thanks for the quick responses.
Gary