search for: add_method

Displaying 8 results from an estimated 8 matches for "add_method".

2006 Feb 20
3
Trouble connecting to a Rails SOAP web service with a simple Ruby client
...http://localhost:3000/ProductBackend/invoke I''m trying to write a plain ruby command line client to access the webservice. require ''soap/rpc/driver'' proxy = SOAP::RPC::Driver.new("http://localhost:3000/product_backend", "urn:ActionWebService") proxy.add_method(''find_product_by_id'', ''id'') puts "Product: #{proxy.find_product_by_id(2).name}" I also tried http://localhost:3000/ProductBackend I see the following $ ruby client.rb /usr/local/lib/ruby/1.8/soap/streamHandler.rb:270:in `send_post'': 404: Not...
2020 Feb 10
3
[nbdkit PATCH] eval: Allow user override of 'missing'
...with code 2. If a method is missing we call this script - * instead. It could even be overridden by the user. + * instead. It can even be overridden by the user. */ missing = create_script ("missing", "exit 2\n"); if (!missing) @@ -255,11 +261,15 @@ static int add_method (const char *key, const char *value) { char *script; + char *tmp = missing; /* Needed to allow user override of missing */ - if (get_script (key) != missing) { + missing = NULL; + if (get_script (key) != NULL) { + missing = tmp; nbdkit_error ("method %s defined more than once...
2006 Feb 09
0
Problem with web services
...OAP OBJECT that uses ruby, in a hash or array, for simple access to the values that the web service return. hope i explain correctly :S My code now is this: @proxy = SOAP::RPC::Driver.new("http://172.16.11.12:8888/server.php",nil<http://172.16.242.43:7109/server.php%22,nil>) @proxy.add_method("GetbyDocument", "id","contract","action") @result = @proxy.GetbyDocument(@documento,@contrato,"") - "GetByDocument" is the name of the web service and id, contract and action are the params of the method. In the next line i invoke the...
2008 Jul 08
0
soap4r cannot access server application after soap server is started
...ently my server side for starting soap server , code looks like this.. require ''soap/rpc/standaloneServer'' class SymptomCheckerServer < SOAP::RPC::StandaloneServer def on_init @log.level = Logger::Severity::DEBUG suggest_diagnoses= SuggestDiagnosesController.new add_method(suggest_diagnoses, ''main_diagnoses'', ''params'') end end server = SymptomCheckerServer.new(''hws'', ''urn:hws'', ''192.168.1.201'', 6565) trap(:INT) do server.shutdown end server.start till now i was starting se...
2006 Jan 31
0
webservice problem (cant make client)
...sdl = "http://twodecode.pilot.localhost.be:3000/backend/wsdl" wsdl2 = "http://twodecode.pilot.localhost.be:3000/backend/api/RPC2" ns = "urn:ActionWebService" #xml parser error #~ proxy = SOAP::RPC::Driver.new(wsdl, ''urn:ActionWebService'') #~ proxy.add_method(''Authenticate'', ''twa'', ''login'', ''pass'') #~ result = proxy.Authenticate(''xxx'', ''test'',''test'') #xml parser error #~ @drv = SOAP::RPC::Driver.new(wsdl, ''urn:ActionW...
2020 Feb 10
0
Re: [nbdkit PATCH] eval: Allow user override of 'missing'
...ng we call this script > - * instead. It could even be overridden by the user. > + * instead. It can even be overridden by the user. > */ > missing = create_script ("missing", "exit 2\n"); > if (!missing) > @@ -255,11 +261,15 @@ static int > add_method (const char *key, const char *value) > { > char *script; > + char *tmp = missing; /* Needed to allow user override of missing */ > > - if (get_script (key) != missing) { > + missing = NULL; > + if (get_script (key) != NULL) { > + missing = tmp; > nbdkit_e...
2006 Jul 19
5
SOAP on rails? Confused...
Hi, Ive been struggling with the SOAP client things to do with rails as I''m not sure how to do what I need to do. So far I have: class SOAPclient < SOAP::RPC::StandaloneServer def on_init setup = gui_controller.new add_method(setup, "submit") end end server = SOAPclient.new("http://127.0.0.1:3000", "http://192.168.0.5", 8080) trap(''INT'') { server.shutdown } server.start But I''ve no idea how to call that or if its anywhere near right? :S Doesn''t seem...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
..._mac_addr", Qmf::TYPE_SSTR, :desc => "MAC address of virtual NIC, will be assigned if left empty.")) + method.add_argument(Qmf::SchemaArgument.new("vm", Qmf::TYPE_REF, :desc => "Newly created domain object id.", :dir => Qmf::DIR_OUT)) + @ovirt_class.add_method(method) + + @agent.register_class(@ovirt_class) + end + + def start + @ovirt = Qmf::QmfObject.new(@ovirt_class) + @ovirt.set_attr("version", "0.0.0.1") + + obj_id = @agent.alloc_object_id(1, Ovirt::TABLE_ID) + @ovirt.set_object_id(obj_id) + end + + def impleme...