Jim Menard
2006-Aug-10 21:08 UTC
[Rails] Web service SOAP URLs started failing with 1.1.4 or using 1.1.2 security patch
Railers, I''m trying to figure out why invocations to my Web service URLs work with Rails 1.1.2 but fail both with Rails 1.1.4 (and 1.1.5) and when I apply the new 1.1.2 security patch to Rails 1.1.2. It looks like they are failing with SOAP clients but succeeding with XML-RPC clients. The URL that used to work is of the form http://localhost:3000/my_controller/ServiceName/api. When I use that same URL after applying the 1.1.2 security patch (or in 1.1.4/1.1.5), my application sees a 404 error. The WSDL url http://localhost:3000/my_controller/ServiceName/service.wsdl also fails. When I try to go to that URL in my browser, I see Recognition failed for "/post_office/PostOffice/service.wsdl" I have not changed config/routes.rb at all. Any hints or help would be greatly appreciated. Jim -- Jim Menard, jimm@io.com, jim.menard@gmail.com http://www.io.com/~jimm
Kent Sibilev
2006-Aug-13 17:52 UTC
[Rails] Web service SOAP URLs started failing with 1.1.4 or using 1.1.2 security patch
Jim, What web_service_dispatching_mode are you using? Looking at your URL examples, I assume you are using :delegated mode. In this case, you obtain the WSDL using http://<your-server>/post_office/wsdl URL, which would tell that your service port address should be http://<your-server>/post_office/ServiceName (no /api at the end). On 8/10/06, Jim Menard <jimm@io.com> wrote:> Railers, > > I''m trying to figure out why invocations to my Web service URLs work > with Rails 1.1.2 but fail both with Rails 1.1.4 (and 1.1.5) and when I > apply the new 1.1.2 security patch to Rails 1.1.2. > > It looks like they are failing with SOAP clients but succeeding with > XML-RPC clients. > > The URL that used to work is of the form > http://localhost:3000/my_controller/ServiceName/api. When I use that > same URL after applying the 1.1.2 security patch (or in 1.1.4/1.1.5), > my application sees a 404 error. > > The WSDL url http://localhost:3000/my_controller/ServiceName/service.wsdl > also fails. When I try to go to that URL in my browser, I see > > Recognition failed for "/post_office/PostOffice/service.wsdl" > > I have not changed config/routes.rb at all. > > Any hints or help would be greatly appreciated. > > Jim >-- Kent --- http://www.datanoise.com