Problems using Services and SOAP Server Modules

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by dporto99@gmail.com on March 21, 2011 at 5:58pm

Hello, everyone:
I am developing, or at least trying to, a SOAP Server in Drupal, so that I can consume the data that Drupal provides. So far I am only using the Services Module and the SOAP Server Module, that's all. Both of them are working properly, and I am able to use the node.get, node.view, node.save and node.delete methods. But my problem is when I want to go for more. For example, when I am trying to use node_resource.retrieve from my external application, I am getting NULL, or if I try to use user.get, then I received "Access denied" message. I am not using any Authentication method yet because I want to go from less to more. Can anyone give me some clues for these issues or maybe some examples? My client application, I mean the one that is accesing Drupal WebService, is a PHP code, so it will be great if you can share some code with me. Thanks a lot.

Categories: , , ,

Comments

Since you have some services

Posted by waldmanm on March 21, 2011 at 6:21pm

Since you have some services working OK, I'd suggest checking that you have the right permissions for the additional methods you're trying to use. For example, for user.get you need 'get any user data' or 'get own user data' under 'user_service module' permissions.

If/when you use API keys, keep in mind that you need to enable specific services methods per key as well.

Waldmanm: Thanks for your

Posted by dporto99@gmail.com on March 21, 2011 at 6:51pm

Waldmanm:
Thanks for your quick response. The problem with user.get is solve thanks to your advice. But the issue with the node_resource module(retrieve/create/delete/update/index) is still there. Even when I try any of these methods directly from Drupal, I receive an "Authentication failed: 1" message at the top of the page, although I get the following result at the bottom of the page:
Result

stdClass Object
(
[nid] => 1
[type] => page
[language] =>
[uid] => 1
[status] => 1
[created] => 1300720478
[changed] => 1300720478
[comment] => 0
[promote] => 0
[moderate] => 0
[sticky] => 0
[tnid] => 0
[translate] => 0
[vid] => 1
[revision_uid] => 1
[title] => Title of Test Page
[body] => Body of Test Page
[teaser] => Body of Test Page
[log] =>
[revision_timestamp] => 1300720478
[format] => 1
[name] => drupal6
[picture] =>
[data] => a:0:{}
[last_comment_timestamp] => 1300720478
[last_comment_name] =>
[comment_count] => 0
[taxonomy] => Array
(
)

[uri] => 

)
I am sure that my problem is related to some configuration on users permissions but I have spent a whole week trying to figure it out and I can't get the solution.
Thanks for your help and your time.

Authentication error

Posted by shad_khan on August 3, 2011 at 6:57am

I am also getting authentication error , I have extend services hook and define operation and endpoint , but while connecting to service it return Access denied for user 0 Authentication error</fault code>
I have give access soap_server and services permissions to anonymous user also.

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /