# Wsdl not generated when using "expects"

**URL:** <https://www.ruby-forum.com/t/wsdl-not-generated-when-using-expects/143954>\
**Category:** Rails\
**Created:** [July 24, 2008, 4:16am UTC](https://www.ruby-forum.com/t/wsdl-not-generated-when-using-expects/143954 "2008-07-24T04:16:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rain\_tmc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e47774/32.png) [@rain\_tmc](https://www.ruby-forum.com/u/rain_tmc)\
**Post date:** [July 24, 2008, 4:16am UTC](https://www.ruby-forum.com/t/wsdl-not-generated-when-using-expects/143954/1 "2008-07-24T04:16:39Z")

</div>

I have a class that extends ActionWebService and is able to generate a  
wsdl ([http://localhost/mycontroller/service.wsdl](http://localhost/mycontroller/service.wsdl)) when api\_method  
doesn’t have any parameters. As soon as I add/define a parameter I  
get:

Template is missing  
Missing template ./script/…/config/…/app/views/mycontroller/  
wsdl.rhtml

Here is the controller followed by the api class:

class MyyController \< ApplicationController

web\_service\_scaffold :invoke  
wsdl\_service\_name ‘myservice’

def foobar(someparam)  
return “test”  
end  
end

class MyserviceApi \< ActionWebService::API::Base  
api\_method :foobar , :expects =\> [{:someparam=\>:string}], :returns  
=\> [:string]  
end

I am running rails 1.2.3, any idea what might be causing this?
