hi, while trying to use wsclient with current dev versions of drupal, rules and entity i ran into the following issues:

  • create a basic restful web service description using wsclient with a twitter search operation, having a return value of type text
  • create a reaction rule, add an execute action and call the twitter search operation
  • the search return value variable can't be used by further actions. it is available within the provided variables section, though

now i tried a workarround using a rule component. call the webservice operation within the rule component. the return value won't be available as provided variable until i clear caches. now i can select the search return value to be provided, but immediately after saving, the variable is gone again

Comments

dasjo’s picture

also, i receive

User warning: Missing database columns for the exportable entity wsclient_service as defined by entity_exportable_schema_fields(). Update the according module and run update.php! in _entity_defaults_rebuild() (line 485 of myinstall/sites/services.austrofeedr/modules/entity/entity.module).

i use git checkouts which are all up-to-date. maybe wsclient needs is affected by recent entity updates?

klausi’s picture

Yep, I haven't updated the code to the recent entity API changes yet. Will do soon.

Regarding the service: could you provide the export of your service? have you tested the operation manually in your browser (without wsclient)?

klausi’s picture

Status: Active » Fixed

Code is now updated. I have also created a wsclient_examples submodule to demonstrate the usage of some web services, e.g Google Translate, Geocoder.us und Twitter search.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

thriftyngreen’s picture

Status: Active » Closed (fixed)

I am still getting this error from the latest releases. Hi this was posted minutes prior to the update I was not getting the errors but still no clue how to access feed data or initiate GET requests with it.

dasjo’s picture

Status: Closed (fixed) » Active

@thiftyngreen: i didn't have those problems recently, please provide more info how to reproduce your bug

thriftyngreen’s picture

Status: Closed (fixed) » Active

Trying to create a new rule to engage an import -- selected upon new webservice update and named the rule import. Got back this .

* Notice: Undefined index: wsclient in wsclient_rules_event_set_alter() (line 197 of /home/content/01/7110201/html/staging/sites/all/modules/wsclient/wsclient.module).
* Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in EntityAPIController->load() (line 203 of /home/content/01/7110201/html/staging/sites/all/modules/entity/includes/entity.controller.inc).
* Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in EntityAPIController->cacheGet() (line 297 of /home/content/01/7110201/html/staging/sites/all/modules/entity/includes/entity.controller.inc).

klausi’s picture

Status: Active » Fixed

Fixed the notice from above. However, I think you do not use the module correctly. The web service description update event is for updating the internal web service settings only, it has nothing to do with web service calls. You want to use the actions provided by this module (add an action to a rule, select from the group "Web services").

thriftyngreen’s picture

Hi Klausi, well I will give it a shot. A simple example in the Read Me would be amazing. Thanks for getting back to me.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.