# Missing API definition!

**URL:** <https://www.ruby-forum.com/t/missing-api-definition/107089>\
**Category:** Rails\
**Created:** [June 18, 2007, 2:04am UTC](https://www.ruby-forum.com/t/missing-api-definition/107089 "2007-06-18T02:04:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 18, 2007, 2:04am UTC](https://www.ruby-forum.com/t/missing-api-definition/107089/1 "2007-06-18T02:04:34Z")

</div>

Hello, I have API for the selection of the advertisements in my BDD, I  
it test [http://localhost:3013/annonce/invoke](http://localhost:3013/annonce/invoke) Ca walks well but the  
problem that at the time of the consomation of the Web local service  
one with an application customer it my gives the probléme according  
to: API Missing definition slips by in ap

my API c :

class AnnonceApi \< ActionWebService::API::Base  
api\_method :find\_all\_annonces,  
:expects =\> [:int],  
:returns =\> [Annonce]

end

my Methode

class AnnonceController \< ApplicationController  
wsdl\_service\_name ‘Annonce’  
web\_service\_api AnnonceApi  
web\_service\_scaffold :invoke

def find\_all\_annonces(id)  
Annonce.find(id)  
end  
end

my Methode client in auther application in local

class ClientController \< ApplicationController  
web\_client\_api :annonce,  
:soap,  
“[http://localhost:3013/annonce/api](http://localhost:3013/annonce/api)”

def list(id)  
annonce.find\_all\_annonces(id)  
end  
end

Merci
