response

Send XML String as Response

Hello All, I am getting my Request from a third party application(different domain) to my ASP application. I am handling the request and doing the business part in my application and as a acknowledgement I need to send XML string as Response to the same Page which POSTED the request to my Application. I was successful in retrieving the...

Google Checkout response and "Processing orders automatically"

I have selected "Processing orders automatically" on Google Checkout and it credited the amount automatically. But it takes few minutes (sometimes upto 15 minutes) to get response on the Call Back URL (notification url) from Google regarding the success state. So the user need to wait upto this time to get autorization and is very bad....

add extra data to response object to render in template

İ ned to write a code sniplet that enables to disable connection to some parts of a site. Admin and the mainpage will be displayable, but user section (which uses ajax) will be displayed, but can not be used (vith a transparent div set over the page). Also there is a few pages which will be disabled. my logic is that, i write a middlewa...

How to add complex data type from Groovy script to the response in SoapUI

My question is about putting data elements (from groovy script) in the response in SoapUI. I've an array of data that I would like to put in my response (in different tags/elements) I'm aware of putting a simple element like this: The element "MyName" in the Xml response: <ns:MyName>${MyName}</ns:MyName> Is mapped from the Groov...

ASP.NET Website no Response while Processing Long Process

Dear Programmers, When my Application face a long-time process, i.e fetch a query (SELECT a, b, c FROM d) This query needs 10 seconds to be completed in the MSSQL Management Studio, but when the ASP.NET application try to fetch it, it refuse to return any response to any other requests made on that Server. I am hosting my Application o...

What is the best way of testing XML responses?

I'm using selenium IDE to test my webpages but unfortunately I cannot use it to test those pages that return an xml response. Some people use Selenium Remote Control, others use Pearl modules like WWW::Mechanize and Test::XML or Test::XPath (but these are no option for me since I use Java). What is the best way to test the XML responses...

php: how to return an HTTP 500 code on any error, no matter what

Hi guys. I'm writing an authentication script in PHP, to be called as an API, that needs to return 200 only in the case that it approves the request, and 403 (Forbidden) or 500 otherwise. The problem I'm running into is that php returns 200 in the case of error conditions, outputting the error as html instead. How can I make absolutel...

VBScript: Disable caching of response from server to HTTP GET URL request

I want to turn off the cache used when a URL call to a server is made from VBScript running within an application on a Windows machine. What function/method/object do I use to do this? When the call is made for the first time, my Linux based Apache server returns a response back from the CGI Perl script that it is running. However, subs...

Object reference not set to an instance of an object. ASP.NET (VB)

Hey, I have this problem when trying to read a session in another asp.net page. Object reference not set to an instance of an object. If Session("cne").Equals("") Then Response.Redirect("Default.aspx") End If I'm setting the session in the Default page with this code : Session("cne") = cne.Text Thanks. ...

how to detect response content-type in asp.net mvc

hi, I've wrote very simple minification/compression handler that minify css and js by indicating request type (Request.RawUrl.EndsWith("css" || "js")), but i don't know an approach to indicate which response type is html and then minify that as HTML-content because in mvc isn't extension to checking. thanks in advance ;) ...

Django "The view didn't return an HttpResponse object."

Hi there, i have a simple view in wich i'm saving a form. the code seems 'clean',but i can't get rid of the error : "The view didn't return an HttpResponse object." Though i've searched on the web, i did not find a relevant indication. def classroom_privacy(request,classname): theclass = Classroom.objects.get(classname=class...

Biztalk AS2 MDN AS2EdiReceive "No Disassemble stage components can recognize the data"

Okay, I've looked through all the walkthroughs on the MSDN.. and I don't know what's happening. I've got an asynchronous MDN that's being received by my One-Way port which has the pipeline as "AS2EdiReceive". All EDI files come in fine. It's the MDN files that generate the "No Disassemble stage components can recognize the data". He...

Response time for a UIButton for an iPad application

hi guys, i have a simple UIButton that, once clicked, plays a 1 second sound. i want to be able to click that button really fast and produce that sound as many times as i humanly can. i currently have this up and running by including the and maybe that is where the culprit is... also, i am digging into apple's references and cannot fi...

How can I tell if Response data has been sent to the client yet in ASP.NET?

I'm writing a helper method in C#/ASP.NET that streams a file to the browser, and I would like to be able to detect if any content has been written to the browser prior to clearing the response headers/content and sending file bytes. If a page that makes a call to my helper method is not set up correctly, it seems like it would be possib...

Request and response types in WCF

I see a huge number of request and response types in a project to cater for all the endpoints exposed as WCF services. This seems like an awful lot of repetitive, simple code to maintain. Can these types be auto-generated or avoided altogether using something like attributes? ...

How to limit speed of outgoing response from php script?

How to limit speed of outgoing response from php script? So I have a script generating data in keep-alive connection. It just opens file and reads it. How to limit outgoing speed (By now i have such code) if(isset($_GET[FILE])) { $fileName = $_GET[FILE]; $file = $fileName; if (!file_exists($file)) { print('<b>ERROR:</b> p...

Response Length in PostRequestHandlerExecute

I want to find out exactly how long the Response sent to the user was, after the fact, for logging purposes. Is there any way to do this from an HttpModule in asp.net (in the PostRequestHandlerExecute event). ...

PHP SOAP server is sending back a partial response.

I've written a SOAP service so my Silverlight application can add entires into my database. The server is written in PHP, and in order to test everything, I've written a PHP client. My client seems to be sending its request correctly. This is what is generated when I call _getLastRequest(): <?xml version="1.0" encoding="UTF-8"?> <SOAP-...

maximum response time on keypress

Hi, I work for a company that develops psychological tests. One of these tests measures the reaction time of a candidate. Anyone has an idea of the maximum delay between a key press and the time that this key event is available? What are the dependencies? Is there a guaranteed maximum response time? I readed something about 5 - 25 ms. ...

Django can you receive signals in middleware or alter the response object globally?

I'd like to call a function in my view or any module for that matter and have it update the response body. My initial thinking is to implement a process_response middleware to update the response body, and set up a callback that receives signals sent in my function calls, but when I try, the receiver never fires (I've tested the singal/...