search for: create_rpc_driv

Displaying 17 results from an estimated 17 matches for "create_rpc_driv".

Did you mean: create_rpc_driver
2006 Jun 27
0
Calling SOAP based Web Services over SSL
...thing else) 2.2) use the WDSLDriverFactory instead of an actionwebservice The working ruby code looks like this: ******************************************************************* wsdl_url = "https://rsvcstage.e2ma.net/emmaTestCalls.wsdl" soap = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver result = soap.sayHello puts "The result from sayHello is:" + result result = soap.testStringParam("Hello from darden") puts "The result from testStringParam(string my_string) is:" + result ******************************************************************* 3) T...
2006 Aug 07
5
Store SOAP::RPC::Driver in user session throws TypeError
Hi All I have a requirement to consume a 3rd party web service from my Rails application. I am doing this in my action require ''soap/wsdlDriver'' factory = SOAP::WSDLDriverFactory.new(TRANSIDIOM_WSDL_URL) soap = factory.create_rpc_driver soap.wiredump_file_base="#{RAILS_ROOT}/log/transidiom.log" param = %(<Request name="com.wm.ccv.rpgrouter.seagull.CustomerProfileResCom"> <Input> <CompanyCode>110</CompanyCode> <CustomerNumber>2442</CustomerNumber> <UserName>ccvdev2&lt...
2007 Jul 31
0
wsdlDriver won't run under Rails (SSL)
...======================= ||Standalone: (works) || ======================= require ''soap/wsdlDriver'' require ''http-access2'' user = ''fwkaufm'' wsdl = ''ProxyUser.wsdl'' soap = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver soap.options[''protocol.http.ssl_config.client_cert''] = ''/etc/certs/ssl.crt/server_cert.crt'' soap.options[''protocol.http.ssl_config.client_key'']=''/etc/certs/ssl.crt/server_key_nopass.pem'' soap.options[''pro...
2006 Jan 31
0
webservice problem (cant make client)
...thenticate #wsdl = "http://localhost/Twodecode.Webservices/Webservices.asmx?WSDL" #~ factory = SOAP::WSDLDriverFactory.new(wsdl) #~ @driver = factory.createDriver #~ result = @driver.Authenticate(''xxx'',''test'',''test'') #undefined mehtod create_rpc_driver #~ drv = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver #~ drv.wiredump_dev = STDOUT #~ dwml = drv.Authenticate(''xxx'',''test'',''test'') #uninitialized constant ActionWebService #~ soap_client = ActionWebService::Client::Soap.new('...
2008 May 22
3
SOAP client in Ruby/Rails
Hi all. I have a need to build a SOAP client using Ruby and Rails. I''m accessing a document/literal style SOAP service. I''ve been poring over documentation (well, there really doesn''t seem to be any, so that''s a little misleading), blog posts, and outdated tutorials all day, and I still don''t really have anywhere to begin. Every tutorial seems to have a
2008 Dec 10
3
How to stop SOAP4R/OpenSSL requiring cert?
Hi I want to consume some web services that are only available over HTTPS. My method looks like this: def lookup_id myid=params[:id] driver = SOAP::WSDLDriverFactory.new("https://server.com/xxx.wsdl").create_rpc_driver @p=driver.verifyId(AUTH_TOKEN, PIN, myid) end Although this works fine on my local box (with a warning), when deployed to the staging server I get: OpenSSL::SSL::SSLError (certificate verify failed): Can anyone assist me in telling SOAP4R and/or OpenSSL to simply treat this is a warning...
2008 Oct 23
4
Soap4R
The following two line code creates the issue: factory = SOAP::WSDLDriverFactory.new("http://aspire388:8080/ClubConcierge306/axis/LWFlowerService?wsdl") soap = factory.create_rpc_driver The error message is: part: requestParams cannot be resolved RAILS_ROOT: E:/Pavo/csat Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:144:in `rpcdefinedtype'' c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:49:in `collect_rpcparam...
2006 Jan 26
3
Calling a SOAP service from within a Rails controller
...alse, :sky => false, :snow => false, :wspd => false, :wdir => false, :wx => false, :waveh => false, :icons => false, :rh => false, :appt => true} wsdl = "http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl" drv = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver drv.wiredump_dev = STDOUT if $DEBUG dwml = drv.NDFDgen(lat, lon, ''time-series'', starter, ender, params) puts dwml require ''xsd/mapping'' data = XSD::Mapping.xml2obj(dwml).data **************************************************************************************...
2006 Aug 12
0
doc/lit ws consumption
...va web service, FooService, has one method, search(String). I am sending the data from a form to this method in my controller: def search searchTerm = params[:searchTerm] factory = SOAP::WSDLDriverFactory.new("http://localhost:8080/services/FooService?wsdl") soap = factory.create_rpc_driver soap.search(searchTerm) soap.reset_stream render_text "I searched for this: " + searchTerm end It does render the text correctly. Yet in my java ws I am printing the input text to the console. Every invocation does execute my service, but they produce a blank print out. M...
2006 Jul 19
0
Web Service (server) and file_column issues
...y_updated, :returns => [[Member]] And here''s how I call the service from my client app: def display_recent_updates XSD::Charset.encoding = ''UTF8'' wsdlfile = "http://localhost:3000/community/wsdl" driver = SOAP::WSDLDriverFactory.new(wsdlfile).create_rpc_driver @result = driver.FindMembersRecentlyUpdated end I have about 30 columns in my members table, but I''d prefer to return only a few columns (nickname, email_address, the URL of their thumbnail image, updated_at). I don''t want to expose all the columns through the web servi...
2005 Dec 27
0
Newbie: Getting Book Data from Amazon
...using soap4r. That library comes with some sample code for Amazon''s E-Commerce Web Services. If I understand correctly, the way it works is to use WSDL to build an RPC driver with methods defined on the fly by the WSDL, something like this: drv = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver This seems to work great -- I get a fully populated drv object with all the methods and stuff from the WSDL descriptor, according to drv.methods. The problem, however, is that I''m having a hard time figuring out what parameters to feed to the ItemSearch method, which is what I r...
2006 Aug 02
0
Need help with SOAP and .NET
...controller: def update_client_address @clients = Client.find(:all, :include => "matters", :conditions => ["matters.imported_at = ?", $now]) factory = SOAP::WSDLDriverFactory.new("http://ws.melissadata.com/dqws/address.asmx?WSDL") soap = factory.create_rpc_driver soap.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace for client in @clients soapResponse = soap.doSingleRecord(:CustomerID => mycustid, :Action => "Request",...
2006 Jan 13
1
Send XML Document with SOAP
...uby client. I can make the request and with a wiredump I see the SOAP request and responce XML files, the files are correct but I am not sure why I can not access the results. ++++++++++++++++++++++++++++++++++++++++ require "rexml/document" service = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver result = service.GetAnswer(:question=>''tuition'',:id=>''64'') doc = REXML::Document.new result render_text doc.to_s ++++++++++++++++++++++++++++++++++++++++ this is what I get ++++++++++++++++++++++++++++++++++++++++ "SOAP::Mapping::Object is not a va...
2005 Dec 21
1
ActionWebService and WSDL
The suggested approach for developing a web service using ActionWebService appears to be start by defining the API you want and then you can generate WSDL. I want to start from WSDL. I''ve tried wsdl2ruby but the Ruby code it generates does not appear to play well with Rails. Is there a way I can get what I want? I''m new at this so if the answer is a forehead slapper,
2006 Jul 19
1
Session management with SOAP and AWS
I''m working on a rails app where I''d like to have a session-based SOAP API. That is, I''d like to connect via SSL and have a ''login'' method followed by one or more other methods. I''m using the ActionWebService::Client::Soap class to connect to my app, but each method invocation results in a new session on the server (WEBrick, at the
2006 May 02
1
SOAP client not seeing all of my AWS service methods
...ed. However, when I try to connect with a SOAP client it seems the client is only picking up one of the services, called Hardware. require ''soap/wsdlDriver'' wsdl_url = ''http://localhost:3000/webservice/service.wsdl'' soap = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver p soap.methods(false) ["findHardwareByVendor", "FindHardwareByVendor", "getAllHardware", "GetAllHardware", "findHardwareBy Model", "findHardwareById", "FindHardwareByModel", "FindHardwareById"] These methods are va...
2007 Dec 13
3
Realise a web service with ruby on rails.
...er::Flash::FlashHash {} Response Can you help me? I realise a client in ruby (without ruby on rails) like this : #!/usr/bin/env ruby require ''soap/wsdlDriver'' wsdl = "http://localhost:3000/customer/service.wsdl" customer_server = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver customer_server.listall.map do |id| customer = customer_server.listid(id) puts "Client: #{customer.nom}, rtc : #{customer.rtc}, commercial : #{customer.commercial}" end It''s give me the good info but slowly, not snapshot. Thanks for your help. Fabien. --~--~---------~--~--...