Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Nathan Meyanga
Calling WebServices [ reply ]  
2010-10-21 16:21
Hi, I´m getting an error message when trying to call the following Webservice with a Ruby client. I think there is something I´m doing wrong, but I can´t identify it

==>Hier is the java Web service:

public Timetable getForPlanningUnitAndPlanningGroup(long planningUnitId, long planningGroupId,
boolean regularScheduleOnly, Date monday);

==> Hier ist the Ruby Code
date = { 'year' => 2010, 'month' => 9,'date' => 18 }

myclient.call_timetable_service(1,255,true,Hessian::TypeWrapper.new('Date', date))


==>and this the error message

C:/Ruby192/lib/ruby/gems/1.9.1/gems/hessian-1.0.1/lib/hessian.rb:124:in `parse_response': Invalid response, expected 'r', received '' (RuntimeError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/hessian-1.0.1/lib/hessian.rb:51:in `block in invoke'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:627:in `start'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/hessian-1.0.1/lib/hessian.rb:49:in `invoke'

Can you help

Nathan