User offline. Last seen 3 years 33 weeks ago. Offline
Joined: 09/29/2008

Hello Everyone,

I was wondering if anyone was able to succesfully hit the opencalais with SOAPpy.

 I have REST working fine but when I try to go with SOAP I get a 403 response. I'm using the exact key and am 100% I'm not over my quota.

I'm using the wsdl supplied however it seems to be getting parsed wierdly

 

In [83]: wsdl.show_methods()
Method Name: Enlighten     

   In #0: parameters  ((u'http://clearforest.com/', u'Enlighten'))

   Out #0: parameters  ((u'http://clearforest.com/', u'EnlightenResponse'))

 

seems like I should be seeing the soap methods (Looking at the wsdl I can see there are much more methods)

 so further when

callinfo=wsdl.methods['Enlighten']

and I get 

In [91]: callinfo.inparams[0].name
Out[91]: u'parameters'

I assumed this might be an array and have tried sending an array, dictionary or params seperatly and have always recieved a 403.

 

Any ideas or thoughts would be greatly appreciated.

 

-A

 

  

 

Trackback URL for this post:

http://www.opencalais.com/trackback/7270

Login or Register to post a comment.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
User offline. Last seen 3 years 12 weeks ago. Offline
Joined: 12/31/1969

I would recommend using suds, it's what I'm currently using.

from suds.client import Client
client = Client('http://api.opencalais.com/enlighten/?wsdl')
result = client.service.Enlighten(licenseID, content, paramsXML)
User offline. Last seen 3 years 27 weeks ago. Offline
Joined: 10/13/2008

Faced the same problem with soapPy ( 403 Http error ).

Seems now to work fine with suds !!

Thanks !