Anyone have success with generating WSDL from action web service? I''m using layered dispatching which may be the culprit. -- Will Schenk http://www.sublimeguile.com http://www.myelinate.com
On Apr 6, 2005 10:38 AM, Will Schenk <wschenk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone have success with generating WSDL from action web service? I''m > using layered dispatching which may be the culprit.Hi Will, Layered presents somewhat of a problem for SOAP, since layered dispatching uses a prefix in the method name to determine which service object is going handle a particular method (an XML-RPC oddity), and the prefix it uses is illegal in a SOAP method name. Thats the only reason its not implemented. Currently, WSDL generation for layered just gives you an empty WSDL document. If you have enough of a need for this, I''ll look into adding it. Leon
Can''t the name just be camel cased? For example mt: getCategories becomes MtGetCategories in soap. Just a thought, i don''t know what this would technically mean for the guts of AWS On Apr 5, 2005 10:22 PM, leon breedt <bitserf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 6, 2005 10:38 AM, Will Schenk <wschenk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Anyone have success with generating WSDL from action web service? I''m > > using layered dispatching which may be the culprit. > Hi Will, > > Layered presents somewhat of a problem for SOAP, since layered > dispatching uses a prefix in the method name to determine which > service object is going handle a particular method (an XML-RPC > oddity), and the prefix it uses is illegal in a SOAP method name. > > Thats the only reason its not implemented. Currently, WSDL generation > for layered just gives you an empty WSDL document. > > If you have enough of a need for this, I''ll look into adding it. > > Leon > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog
I was able to get WSDL working after I did a couple things: 1) Put the following line in your subclass of ActionWebService::API::Base: inflect_names false 2) camelCase your methods names After that, you should be able to access the WSDL from: http://yourapp.com/apicontroller/wdsl A great way to test WDSL is in IRB: require ''soap/wsdlDriver'' driver = SOAP::WSDLDriverFactory.new(''http://yourapp.com/apicontroller/ wdsl'').createDriver driver.yourFunctionName(some, args) -Lucas http://www.rufy.com/ On Apr 5, 2005, at 7:35 PM, Tobias Luetke wrote:> Can''t the name just be camel cased? > > For example mt: getCategories becomes MtGetCategories in soap. > > Just a thought, i don''t know what this would technically mean for the > guts of AWS > > On Apr 5, 2005 10:22 PM, leon breedt <bitserf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Apr 6, 2005 10:38 AM, Will Schenk <wschenk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> Anyone have success with generating WSDL from action web service? >>> I''m >>> using layered dispatching which may be the culprit. >> Hi Will, >> >> Layered presents somewhat of a problem for SOAP, since layered >> dispatching uses a prefix in the method name to determine which >> service object is going handle a particular method (an XML-RPC >> oddity), and the prefix it uses is illegal in a SOAP method name. >> >> Thats the only reason its not implemented. Currently, WSDL generation >> for layered just gives you an empty WSDL document. >> >> If you have enough of a need for this, I''ll look into adding it. >> >> Leon >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don''t suck > http://www.hieraki.org - Open source book authoring > http://blog.leetsoft.com - Technical weblog > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On Apr 6, 2005 10:38 AM, Will Schenk <wschenk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone have success with generating WSDL from action web service? I''m > using layered dispatching which may be the culprit.I''ve added preliminary support for this in trunk, so SOAP should be supported by all dispatching modes now. Please report any bugs you may come across. Leon
On Apr 6, 2005 2:51 PM, Lucas Carlson <rails-1eRuzFDw/cg@public.gmane.org> wrote:> A great way to test WDSL is in IRB: > > require ''soap/wsdlDriver'' > driver > SOAP::WSDLDriverFactory.new(''http://yourapp.com/apicontroller/ > wdsl'').createDriver > > driver.yourFunctionName(some, args)Coming in next version (partially in trunk): class ApiController < ApplicationController web_service_scaffold :invoke end Generates the "invoke" action, which, in web browser, lets you select method, provide params, and view request/response objects and XML. Leon
Hey I just got Axis to generate the Java objects and SOAP stubs for a ActionWebService controller! Java is talking to rails. Sweeeet! -w On Apr 5, 2005 11:41 PM, leon breedt <bitserf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 6, 2005 10:38 AM, Will Schenk <wschenk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Anyone have success with generating WSDL from action web service? I''m > > using layered dispatching which may be the culprit. > I''ve added preliminary support for this in trunk, so SOAP should be > supported by all dispatching modes now. > > Please report any bugs you may come across. > > Leon >-- Will Schenk http://www.sublimeguile.com http://www.myelinate.com