Displaying 20 results from an estimated 6000 matches similar to: "Rails puts and pp logs are showing up on browser"
2006 Feb 15
0
$stderr and $stdout are send as part of http response
I am stuck with this issue for some time and I need your help/thoughts.
I am using Ruby 1.8.3 and Rails 0.14.2, running on Linux (Fedora) and
lighttpd.
When ever there is an exception while parsing RSS feeds or Webservice
call,error messages and logs are shown on the browser. This happens only
when there is an exception thrown and on Linux.
lighttpd has write access to the log files. Am I
2006 Jan 26
1
Webservices and submitting object with associations
Hi - is there an easy way to submit an object with its associations as
an :expects parameter to a AWS webservice?
I know I could first create a webservice method for the object, and then
call - in a loop - another webservice for each of my association
objects.
Is there an easier more elegant way, so that I don''t have to make so
many expensive webservice calls?
I was thinking
2006 Mar 28
1
What if a webservice is not available = "execution expired" error
Hi,
I''m using a webservice in my application. How can I make it so that my
application will only try to connect to the webservice for a certain
period of time and then give up?
Right now my code is using a begin-rescue-else but sometimes I get a
"execution expired" error if the webservice is not available or takes
too long to respond.
Thanks,
Peter
begin
service =
2006 Jan 30
3
webservice consumption over SSL
Hi, as long as nobody answered to my previous question, i''ll try to
write in another way.
I have:
webservice WSDL link (https://something?WSDL, that''s .net webservice)
pem file (certificate, needed to authentificate for gettting data)
i need :
to consume that webservice without describing API''s for each method (i
mean use WSL to construct needed structures or objects).
2006 May 14
0
Invoke .Net WebService error in RoR
I have written a webservice:
----------- Service.cs ----------------
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld(string name)
2008 Apr 16
2
about getting webservice from other website
I have a webservice offered by a website to be integrated for my
website.They ask me to follow three steps to finish integrating.These
steps are:
1. Create an HTTP connection.
2. Send request parameters via POST method.
3. Parse XML-formatted response string.
The request parameters are something like following:
"Version=2.0.0.0" +
"&ShipmentID=1234" +
2007 Aug 21
1
handling of dynamic filecontent creation
Hi list!
In the light of my personal "Simon is dumping his problems on
others"-week I have a question regarding.. dunno.. generally "handling
of dynamic filecontent creation" I think is the best to describe it:
We use a lot of in-house built services (for arguments sake webservers)
which are instantiable and bring their own "framework" for setup, so I
created
2009 Jun 05
1
Slow/unpredictive response of post_form from rails lib
Hi friends,
I''m facing a very strange problem...
I consume a webservice from within my rails app. I''ve written a thin
wrapper around the webservice using Net::HTTP.post_form
However, when calling the API from within my controllers, the API calls
randomly fail, complaining about timeout.
But - when I wrote a simple iterative test (500 iterations), calling the
same webservice
2006 May 25
3
webservice timeout issue
I am having an issue where I am trying to test a weservice that I wrote by
connecting to it from ruby. When I submit my form that calls the webservice
it times out. you can see from the lighttpd log that the webservice
completes just after the timeout. any ideas? am I doing something wrong?
---- source ----
def validate
auth = ActionWebService::Client::Soap.new(AuthApi, "
2007 Mar 08
0
Using send_file and handling browser side cacheing
I''m using send_file to send rather large SWF files that I''d prefer the
end browser to cache to reduce my bandwidth usage.
I''ve used the method suggested by madrobby (http://mir.aculo.us/
2005/08/28/internet-explorer-and-ajax-image-caching-woes) to try to
catch the HTTP_IF_MODIFIED_SINCE request header, and then return HTTP
304 if necessary. However, this only seems to
2006 Jul 24
1
XMLRPC WebService and Structs
Hi
First off, I apologise if this is covered somewhere and I just don''t
get it... I''ve looked far and wide ....
As a part of my current project I need to hook up to a particular
XMLRPC webservice that won''t be available for me to use until close
to launch date... So I am trying to recreate the webservice that
mirrors the live one so I can test my application
2007 Aug 07
0
CENTOS 4 and mono
Hello,
Im trying to configure my centos machine to run webservices.
Im using the mono repo from www.*mono*-project.com, for rhel-4.
After configuring every thing, it all seemed to work fine with a simple
webservice for testing purposes.
For that, a friendo of mine created a vb webservice on a windows machine
and I copied the all resulting files(asmx, dll, etc).
When I access the webservice via
2006 Sep 06
0
soapenc:base64 and xsd:base64Binary
Hello guys,
I have a little mix in all those webservices and wsdl files and all
this things, and I have maybe a strange question.
I''m trying to consume webservice from different webservice
implementation than ror. And I there is one thing from ror regenerated
wsdl file. Method parameter defined by :base64 type is defined in wsdl
as ''soapenc:base64''. My question is, why
2005 Nov 11
0
cache_page throwing "undefined method merge" error
rails (0.14.2), OSX, webrick (right now - lighttpd in production)
I''m trying to cache pages with different file extensions and am having
a heck of a time.
This controller does nothing but display @cache.data (which can be XML or HTML)
Here''s the controller:
class DisplayController < ApplicationController
caches_page :xml, :html
session :off
def xml
@cache =
2010 Aug 29
0
Troll - A Rails plugin for making webservice mocking easier
Hi Folks,
Troll trumps your existing ActiveResource mocking libraries like
inbuilt HttpMock,Fakeweb or Webmock out of water. With Troll,
ActiveResource mocking just works, some of its features:
1. Don''t need to mock calls at Net::HTTP level (which webmock,fakeweb
do). Really, we don''t care what HTTP library ActiveResource uses,
fakeweb and webmock bring additional complexity
2006 Jan 23
1
How to call C# webservices
hey,
i have created some webservices in C# with vb.net and IIS.
i can go to them with http://localhost/Twodecode.Webservices/webservices.asmx
Like:
[Webservice]
AddCity(string zip, string city)
{
...do some stuff
return "SUCCES";
}
How must i call this from ruby??
I save an object, and then call the services.
city = City.new()
if city.save
//call webservice
else
//do
2006 Jul 30
1
slightly OT: opinions on best webservice implementation
We have been using more and more Ror for new applications. Right now
we are debating on the best way to implement some new webservices that
will interact with our payment gateway. These webservices will be
backend type functions. Updating customer/billing records, retrieving
data, etc.. The interface for actually processing transactions won''t
be changing.
Ideally, the webservice will
2006 May 08
0
Including common code among multiple web services issue?
Hi all -
I''m implementing some web services and every one has at the very least a
"find_newer_than" method.
In my models, I''ve split things up like this and it works great.
----------------------------------------------------------------------------------
class XyzService < WebService
web_service_api XyzApi
.... service specific methods go here...
end
class
2010 Feb 24
0
Manager Logged off
Hi People, I don't know if my problem should be reported in this forum, but maybe somebody knows about it.
I'm using the tool .NET WebService Studio to test the web service which is working with asterisk by AMI.
It is working fine, the dialplan is executed correctly... the problem is when the web service is consumed by my program (Genexus).
I've been checking the log and the
2020 Mar 14
0
imap-hibernate won't start
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi!
</div>
<div>
<br>
</div>
<div>
Did you follow https://doc.dovecot.org/configuration_manual/hibernation/ ? Especially you need the imap_hibernation_timeout.
</div>
<div>
<br>
</div>