Get the fault response code and content using proxied HTTPService

Hi
I'm totally new to BlazeDS and I apologize by advance if the question has already been asked, but I've been searching for days now.
The BlazeDS documentation says that using the proxy service it is possible to get the response body of a service, even if the response code is not 200, but I can't figure out how to make this work...
I have a service provided by my PHP server and when an error occur with the service, the server sends me a HTTP 500 code, with the error described in XML in the body of the response. I configured my Flex application and BlazeDS to access this service with the proxy, but my fault event is almost empty ! It only says "HTTP1.1/ 500...". When I inspect the fault object, I see that the status code is empty and that the content is null.
Is there something to configure in BlazeDS to get the body of the response ?
Thanks for your help
Regards
Jerome

The following page describes the .NET WebRequest Class:
http://msdn2.microsoft.com/en-us/library/system.net.webrequest(vs.80).aspx
From this page, I agree it looks like we should have access to the status description, however, you will notice if you run your code with something like 'http://www.ni.com/document.html' the LabVIEW error cluster will give you the status error code (I see "404, not found" for this example).  From the msdn page it looks like they are using the HttpWebRequest class, but I don't think this will matter.  I think the quick but nasty solution is to run through the error cluster for System.Net.WebException, or obtain the System.Net.WebException status (though LabVIEW does this for you indirectly through the error cluster).
Cheers!
-Bob

Similar Messages

  • Reset the HTTP response code in OSB for proxy service

    Hi,
    I created a HTTP proxy service in ALSB with any XML message option. There are some business scnearios for which i need to send a custom error message in the HTTP body. I am replacing the $body variable with the error message and sending reply with success.As i am using reply with success it sends a HTTP response status code as 200 Ok.
    However based on different error conditions i want to send appropraite http response code. How can this be achieved?

    I would like to share the solution so that it would be useful to all the users of the forum.
    There is a http:http-response-code element in the $inbound variable which is optional element. You need to insert this element to the $inbound using the insert action. Here is the extract of the code:
    Insert [<http:http-response-code>401</http:http-response-code>] [ as last child of ] [./con:transport/con:response] in [inbound]
    Please note namespace con belongs to "http://www.bea.com/wli/sb/context".
    Edited by: [email protected] on Aug 12, 2009 10:47 PM

  • Is there any way I can get the new IPhone 4s and not use Verizon, Sprint, or AT

    I use Straight Talk Wireless and I really want the IPhone 4s and I can't switch companies.

    Ditch Straight Talk and go to Sprint. You pay $200 for the phone and $70/month. That's $25 more than Straight Talk but you get much better service. 2 years of Straight Talk and a $650 iPhone save you only about $2-300 than you would by going with Sprint if it was possible to use Straight Talk, which I'm pretty sure it isn't. If you don't want to pay for service every month or don't want to pay for data then just buy an iPod touch. An 4S without service or data is a big waste of money.

  • I'm in Sydney, Australia with a new Apple TV. why can't I get the TV shows icon and content?

    Got it for xmas (latest small black version), just set it up and I had a full 3 bars of content to choose from including an icon for TV shows. However after about 5 mins or more that icon disappeared. I restored the Apple TV. Same thing happened.

    Welcome to the Apple Community.
    There are reports of TV Shows missing from users screens, initially it looked like this might be an issue in the UK only, but it may well be more widespread. It appears to be an issue that can't be fixed by the user, you will need to wait until this is resolved by Apple.

  • How to get the NT user id and passwd

    Hi,
    How to get the NT user id and passwd using form 6i

    You cannot get the password. Password are stored in an encrypted format. Almost never decrypted (as a security meassure). Authentication is performed by encrypting the supplied password and matching that against the stored encrypted password.
    Think about it.. just how dangerous it will be to have a function that can dump NT users and their passwords for you. How can you ever expect to "simply decrypt a password"?
    As for getting the user name. See the Win32 kernel API call GetCurrentUser(). Also note that there is a big difference as to the owner/user of a server process/thread versus the end-user of client application (possibly running on another PC) that is making the call to the server.
    Of course, none of this is related to SQL or PL/SQL - which is what I believe the subject matter of this forum is... Kindly suggest that in future you pay attention to posting the correct subject material to the correct forum.

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • HT4972 I replaced the computer I originally used to synch my iPhone. I get the message stating that my content will be erased, even though this is the computer I now synch with. Is there a way to make the update recognize the new computer?

    I replaced the computer I originally used to synch my iPhone. When trying to update to iOS5.0, I get the message stating that my content will be erased, even though this is the computer I now synch my phone with. Is there a way to make the update recognize the new computer so that my content will be kept?

    The best option is to copy your entire iTunes folder from your old computer to your new one using one of the methods described here: http://support.apple.com/kb/HT4527.  This will allow iTunes on your new computer to recognize and sync with your phone without deleting content.  You will also need to copy over any other synced data not in your iTunes library such as photos synced to your phone, calendars and contacts.
    If you can't do this, these articles will help you start syncing with your new computer with minimal or no data loss:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    Recovering your iTunes library from your iPod or iOS device

  • I updated to Mavericks and now I can'burn any DVD's any more. I get the following error message and the disk is ejected: The disc can't be burned because an unexpected error occurred (error code 0x80020000)

    I updated to Mavericks and now I can'burn any DVD's any more. I get the following error message and the disk is ejected: The disc can’t be burned because an unexpected error occurred (error code 0x80020000)
    I did burn the same way in MAC OS X 10.6.8. with no troubles!
    Can anyone please help me out?
    I use for years DVD-R of TDK 4.7GB 16X.

    Hey topo27,
    I would try out the following and see if it helps:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    Welcome to Apple Support Communities!
    Cheers,
    Delgadoh

  • I have recently restored everything on my iMac after getting a new hard drive. When i try to use Elements, i get the following error code   ERROR  150:30. Any ideas?

    I have recently restored everything on my iMac after getting a new hard drive. When i try to use Elements, i get the following error code   ERROR  150:30. Any ideas?

    Did you use migration assistant to copy over programs, documents, and settings? You can't do that with PSE. Elements is not a tidy package in accordance with the apple developer guidelines. The installer strews stuff all of your hard drive in place the migration assistant isn't programmed to look and you can never hope to find all h the bits. You must always install PSE from scratch on a new machine. By attempting to copy it you have made a lot of trouble for yourself.
    You will need to download and run this:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    and then you can go around and manually remove what you can reach. Look in applications, your hard drive>library>application support>adobe, your username>library>preferences. In the user library also delete any saved application states for PSE.
    Then you can reinstall from scratch.

  • How do I get the Questions to show in the 'View Responses' TAB, and then show up in the Summary Report?

    How do I get the Questions to show in the 'View Responses' TAB, and then show up in the Summary Report?

    There are more than one Applications folders. At the root level of your system is an Applications folder for all users, where most installations go. Every user, including you, also has a separat Applications folder.
    Check all of them.

  • I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change

    I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change.

    http://tinyurl.com/3hs3g2u

  • HT1338 ical error pop up, "The server responded with an error". Cannot get it to go away and cant use my ical because of it

    ical error pop up, "The server responded with an error". Cannot get it to go away and cant use my ical because of it

    How are you syncing your contacts?
    Contacts Troubleshooting
    Contacts - Troubleshooting iCloud Contacts

  • I won Lightroom 1.0 a few years ago at an Adobe clinic in Fremont. I have since misplaced the original disk and cannot get the program to open. It wants a serial number and I don't have one. How can I get the serial number so I can use the software?

    I won Lightroom 1.0 as a door prize a few years ago at an Adobe clinic in Fremont. I have since misplaced the original disk and cannot get the program to open. It wants a serial number and I don't have one. How can I get the serial number so I can use the software?

    Thanks for replying, Jim. I wasn't planning to use it for raw images. I shoot film, black and white, and have many negatives I want to print. I am unfamiliar with the upgrades in Lightroom. I wasn't unhappy with the version I have. It was useful for my purposes.
    Because it was a few years ago, I don't remember if I registered the product. I was able to login to my account. But could not find a path to communicate with Adobe. I will keep trying.
    Ken

  • I can not get any updates and therefor not use Java as it only run updates for Mac 10.7. and later? How do i get the updates to install and use Java?

    I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?

    In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
    java -version
    (don't get creative and type anything else)
    The latest version is 1.6.0_65.

  • I have been trying to get the full version of lightroom after using a trial version but it says something about "GB" ? And i need to log into different account or set up a new one? Please help?

    I have been trying to get the full version of lightroom after using a trial version but it says something about "GB" ? And i need to log into different account or set up a new one? Please help?

    I would love to give you more information but i cannot access that page again? i can add Lightroom to my cart but when i go into my cart it says there is nothing in there? I have a red bubble above "my cart" with a number 4 in it to show there is something there but there is not? It just wont let me buy anything?

Maybe you are looking for

  • I can no longer import photos into lightroom from card reader or camera.

    Just recently my Lightroom 5.3, now 5.6, has stopped allowing me to import photos from my card reader or directly from my camera. When I click the Import button, it lists the card but will not show the previews and the Import button does not become a

  • Base data block on a web service

    Hy, I need to integrate an oracle forms application with data provided from other applications (via web services), like countries, cities, users ecc. there is a way to base a data block (in forms web 6/10 with Java Importer) on a data returned from a

  • I have the same problem as all sorts of people with "HDCP" issue for playback.

    What is APPLE saying about this massive issue, I'm ready to completely switch to another product and super frustrated. I've tried the "quick" solutions with no help.

  • Attaching file in a Customer Master

    Hi I want to attach a pdf file in a customer master. But when I  go to "Servives for object", the attachment icon is disabled. Any ideas here? Thx Prashanth

  • EMAIL COPY to the DISTRIBUTOR?

    I've created a website which is to be linked in our DISTRIBUTORS websites. Customers could place an order through the distributors website. Currently it sends data to a PHP script on the server and gets the details to my mail. My problem: When a cust