search for: wsdldriverfactory

Displaying 20 results from an estimated 21 matches for "wsdldriverfactory".

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 tel...
2006 Jun 27
0
Calling SOAP based Web Services over SSL
...the site_ruby directory to something 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 *******************************************...
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&g...
2006 Jan 28
0
.net WSDL SSL web service conumption
Hi, i''m trying to consume .NET webservice following one tutorial an currently have these lines of code: wsdl = "https://someserviceaddress" factory = SOAP::WSDLDriverFactory.new(wsdl) and running this code i''m getting: Unknown attr {}ref. Unknown element {http://schemas.xmlsoap.org/wsdl/http/}binding. Unknown element {http://schemas.xmlsoap.org/wsdl/http/}operation. Unknown element {http://schemas.xmlsoap.org/wsdl/http/}urlEncoded. Unknown element {http://sc...
2007 Jul 31
0
wsdlDriver won't run under Rails (SSL)
...-connect(2)...) Any ideas? ======================= ||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''...
2006 Jan 31
0
webservice problem (cant make client)
...9;, ''login'', ''pass'') #~ @result = service.Authenticate(''xxx'',''test'',''test'') #undefined method Authenticate #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.Authe...
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
2006 Jan 26
3
Calling a SOAP service from within a Rails controller
...12 => false, :qpf => false, :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
...and rails. I am having trouble consuming a java web service with the soap/wsdlDriver library. My java 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 t...
2006 Jul 18
2
connecting to a coldfusion web service
...me="myname" returntype="string" access="remote"> <cfreturn "fred" > </cffunction> </cfcomponent> using require ''soap/wsdlDriver'' wsdlfile = "http://localhost/docsearch/mainsearch.cfc?wsdl" factory = SOAP::WSDLDriverFactory.new(wsdlfile) and I am getting the error "undefined local variable or method `targetnamespace'' for #<WSDL::SOAP::Fault:0x360b8b0>" We''re using Ruby 1.8.2 and CF MX 7 ANY help would be GREATLY appreciated. Thanks, MDK -- Posted via http://www.ruby-forum.com/.
2006 Jul 19
0
Web Service (server) and file_column issues
...api_method :find_members_recently_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...
2005 Dec 27
0
Newbie: Getting Book Data from Amazon
...;m trying to get the hang of 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 m...
2005 Mar 02
0
Re: AWS Client Usage
...or XML-RPC experience, so yes, it will be somewhat less full featured compared to .NET and Java at this juncture :) Anyhow, the Ruby SOAP bindings already have good client support, have you had any success with "soap/wsdlDriver"? I.e.: require "soap/wsdlDriver" factory = SOAP::WSDLDriverFactory.new("http://url/to/wsdl") client = factory.createDriver ret = client.someMethod(arg1, arg2) The main disadvantage of this approach of course being that any custom structured types will not have the same ancestry as the real ones, but if your client is completely seperate from the server,...
2006 Aug 02
0
Need help with SOAP and .NET
...equest)... does anyone have any ideas about how to make this work? Thanks for any help... >From the 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,...
2006 Jan 13
1
Send XML Document with SOAP
...ing on .net server with a ruby 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::M...
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 Jun 14
5
Rails SOAP tutorial
Hi all.. I new in Ruby/Rails.. Where could i get some good tutorial about SOAP using Rails? I''ve been googling yet still did''nt find good tutorial. Thank you in advance.. :) -- Regards, Ananda Putra
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/methodDefCreat...
2006 May 02
1
SOAP client not seeing all of my AWS service methods
...have several web services defined. 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", "FindHardwareByI...