Axis adapter : Bad Request error

Hi,
I have a File to SOAP scenario (PI 7.0) where I am using AXIS adapter in the receiver SOAP adapter for NTLM authorisation. In the xml that I am trying to post, i have characters like & because of which I am getting a Bad Request error. Is there a way to resolve this? thanks!
Regards
Pushpinder

In file sender channel, i am using binary mode, so no encoding specified.
I see the error in the receiver SOAP adapter -
Error Axis: error in invocation: (400)Bad Request
Error Exception caught by adapter framework: (400)Bad Request
Error MP: Exception caught with cause (400)Bad Request
Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: (400)Bad Request: (400)Bad Request.
Error The message status set to NDLV.

Similar Messages

  • Content-Type is net being set in HTTP header. Server returns 400 Bad Request error.

    Hi,
    I am trying to access an XML WebService. This service requires the content type of the request to be set to "text/xml". As you can see in the source code, I am setting the req.ContentType property to "text/xml".
    However, this content type seems not to be added to the HTTP headers. The server returns a 400 Bad Request error as can be seen in the log.
    I've attached a System.Net.trace log and it states:
    [Public Key]
    Algorithm: RSA
    Length: 2048
    Key Blob: 30 82 01 0a 02 82 01 01 00 bc 09 30 8a 1e 03 4d 7a ea 16 d3 a8 5e d8 5b 00 c4 8a c5 9f 26 bd 7d d6 cb 8b d0 db bd 93 2d 2b 3b 84 f6 20 79 83 34 67 51 37 21 ea 56 5e 18 d8 a3 db 72 43 0e 14 77 e2 64 cb 07 b6 2a 81 c7 f5 16 dd 19 c7 d9 68 0b 3a 81 5c f0 05 c9 ed 2b 37 00 31 41 37 8b 3a 73 4a 4d ab d7 d8 87 79 35 82 01 97 e3 3c be bb 84 e5 94 bb 87 52 e3 9f b5 fb 3e 33 38 c3 eb 73 42 ee ba 1e c5 4a 33 18 a1 0d 8a d2 10 a8 c5 3....
    System.Net Information: 0 : [26780] SecureChannel#31884011 - Remote certificate was verified as valid by the user.
    System.Net Information: 0 : [26780] ConnectStream#26966483 - Sending headers
    API-VERSION: 1
    Host: test.myhost.com
    Content-Length: 329
    Expect: 100-continue
    Connection: Keep-Alive
    System.Net Information: 0 : [26780] Connection#3888474 - Received status line: Version=1.1, StatusCode=100, StatusDescription=Continue.
    System.Net Information: 0 : [26780] Connection#3888474 - Received headers
    System.Net Information: 0 : [26780] Connection#3888474 - Received status line: Version=1.1, StatusCode=400, StatusDescription=Bad Request.
    System.Net Information: 0 : [26780] Connection#3888474 - Received headers
    0: Content-type
    1: text/xml
    X-Debug-Token: a810dc
    X-Debug-Token-Link: /service/_profiler/a810dc
    Connection: keep-alive
    Content-Length: 3440
    Cache-Control: no-cache
    Content-Type: text/html; charset=UTF-8
    Date: Tue, 14 Apr 2015 11:07:11 GMT
    Server: Apache
    ...and here's the implementation of the web request:
    private void ButtonSend_Click(object sender, EventArgs e)
    WebHeaderCollection whCol = new WebHeaderCollection();
    whCol.Add("API-VERSION", "1");
    //whCol.Add("Content-Type", "text/xml; charset=UTF-8"); <-- That doesn't work in .NET. Content-Type has to be set on the ContentType-Property
    string msg = _textBoxReq.Text;
    HttpWebRequest req = (HttpWebRequest)WebRequest.Create(_textBoxURL.Text);
    byte[] data = Encoding.UTF8.GetBytes(msg);
    req.Method = "POST";
    req.ContentType = "text/xml; charset=UTF-8";
    req.ContentLength = data.Length;
    req.Headers = whCol;
    req.GetRequestStream().Write(data, 0, data.Length);
    string xml = "";
    try
    using (HttpWebResponse resp = (HttpWebResponse)req.GetResponse())
    using (System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream()))
    xml = sr.ReadToEnd().Trim();
    catch (WebException we)
    using (System.IO.StreamReader sr = new System.IO.StreamReader(we.Response.GetResponseStream()))
    xml = sr.ReadToEnd().Trim();
    _textBoxRes.Text = xml;
    Can anyone help?
    Thanks,
    MiRi

    Hi _MiRichter,
    Well Done!
    Thank you very much for sharing the solution to us.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HTTP 400 Bad Request Error

    Application Express 3.1.1.00.09
    We have some users who are experiencing what appears to be a browser problem in one of our APEX applications.
    When clicking on any button that does an insert or update to the database some users get an HTTP-400 Bad Request error message. The database does not get updated and anything they click on after that shows that message. In most cases we have been able to restore the user’s browser to the default settings and the issue is resolved. However, we were not able to isolate which browser setting is causing the issue. We have seen the issue in IE 6, IE 7 and IE 8.
    Here’s the error we see in the Apache server error log (minus the date time stamp and IP addresses):
    mod_plsql: /pls/ax_tastest/wwv_flow.accept HTTP-400 Invalid name
    Does anyone else have a solution for this? Know what's causing it?

    HTTP 400 Bad Request Error from APEX 3.1.1.00.09.
    We were able to determine that only PCs which had the Google toolbar installed were getting the HTTP 400 Bad Request Error from a particular page in one of our applications. Further testing revealed that turning off the ‘auto-fill’ feature of the Google toolbar would prevent the error from occurring and the application would behave normally. We were able to identify a specific item on the page that was the root cause. The item was using the type “Text area with HTML Editor” which has been deprecated. We changed the page item type to “HTML editor standard” and this has resolved the issue with or without the Google Toolbar and auto-fill feature enabled.
    Summary:
    •     Browser setting: Google toolbar enabled with auto-fill enabled.
    Apex page item of type: ‘Text area with HTML Editor’.
    When a user clicks on a button in the page, that executes a page process, it results in HTTP 400 error.
    •     Browser setting: Google toolbar enabled with auto-fill disabled.
    Apex page item of type: ‘Text area with HTML Editor’.
    When a user clicks on a button in the page, everything goes through correctly and there is no error.
    •     Browser setting: Google toolbar enabled with auto-fill disabled or enabled.
    Apex page item of type: ‘HTML Editor Standard’.
    When a user clicks on a button in the page, everything goes through correctly and there is no error.

  • Repeated "Bad Request" errors after clearing cache, cookies, and cookies.sqlite

    I get repeated "Bad Request" errors when submitting forms, logging in/out of sites, etc. I get this on a wide variety of sites. I have tried repeatedly clearing all cache and cookies. And I just tried disabling all my add-ons (only have 4) and then deleting the cookies.sqlite file and this still made no difference.
    I am using Mac OS 10.5.8 and Firefox 5.0.1 but I have been experiencing this problem in past versions as well, maybe as far back as the latest firefox 3. My main motivation for upgrading Firefox multiple times was hoping this problem was corrected. It never used to happen, it just started happening all of a sudden. It has never occurred on Safari and I am still able to get any site that doesn't work properly to work on Safari without any problem.
    I experience this on many sites. One reliable cause of it is logging out of Facebook.

    You did delete all cookies.* files ?
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Cookies#Removing_cookies
    Create a new profile as a test to check if your current profile is causing the problems.
    See Basic Troubleshooting: Make a new profile:
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • HTTP Error Code 400 Bad Request error when connecting to SQL db

    I realized I should move this to a new post since it was a new question...
    I am trying to connect to a distributed SQL database from CS4.
    Let me show you how the connection is built... and then maybe someone can tell me what I am doing wrong...
    First I go to the database panel:
    I click on the '+' sign to add an MS SQL Server Connection:
    That brings up the SQL Server Connection window where I am supposed to replace the placeholders with my server values:
    After I enter the correct values and click test, I get the error (HTTP Error Code 400 Bad Request)... These values work from SQL Server Management Studio on the same PC.
    Just as a side note... I tried one other thing that makes me think SOMETHING is wrong here:
    If I choose as OLE DB Connection instead... and click the 'Build...' button and then enter the values in the Data Link Properties Window (OLE DB Provider for SQL Server, and then the connection info on the Connection tab) and then click Test Connection on the Data Link Properties window, it says my test succeeded. Then I click 'ok' which takes me back to the OLE DB Connection windows with the connection string pre-filled, and click test on THAT window and I get the same HTTP Error Code 400 Bad Request error...
    Hopefully that is enough detail that someone can can tell me what I have broken?
    Thanks,
    Mike

    You will get a better response if you ask this question on the DW Application Dev forum. This forum mainly covers client-side issues.

  • Why can't I access my Blogger account and publish a blog? I get 'Bad Request Error 400" when I try.

    When I tried this morning to publish my latest blog post the message 'Bad Request Error 400' came up on the screen. It seems other bloggers have been having the same problem today. I have subsequently tried to access my google blogger account through firefox but each time I do so the same message appears 'Bad Request Error 400'. What if anything do I need to do about it? Is the problem your end or is it a google problem?

    I was re-decorating my blogger .. then I got the 'Bad Request Error 400' ..  I re-formatted my computer, reloaded all .. I can now access my Blogger sites .. Don't know what the problem is/was, but I solved it by reloading my computer to Out-of-Box condition, and all is perfect now  .. I have an alert set up for this Error 400 .. Masses of people are having problems daily ..
    http://littlemisscinderellasquotes.blogspot.com/

  • Since Firefox updated yesterday I cannot post on my blog - getting 'bad request error 400' message.

    When I opened my blog today (more than once) the page came up but after I signed in I got a page up which says 'Bad request error 400' and I am unable to create a message or anything else. When I go back to the blog page there are no options on the top right for new post etc. This was all after Firefox automatically updated.

    You're welcome

  • I cannot update 2 changes to portfolio, get error bad request error 400

    I hit edit portfolio and I made a change to the number of share and to cost price per share. I hit enter and get message Bad Request Error 400

    Can you make the changes while you are in Private Browsing mode?
    In Private Browsing mode any cookies that you have from regular are not accessible.
    *https://support.mozilla.org/kb/Private+Browsing
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Grizzly bad request error

    Can anyone tell me what the Grizzly Bad Request error means?  It's on all pages so it could be from the css file but could it be something else, like the switch to a new server?
    Thanks.

    harvey waxman wrote:
    I've since discovered it appears only in Safari on my Mac in the last day or so .  A real puzzler.  Thanks
    In that case your first port of call should be validation.  Try this link for css errors:
    <http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fdinghydogs.com%2F&profile=no ne&usermedium=all&warning=1&vextwarning=&lang=en>
    and this link for HTML errors:
    <http://validator.w3.org/check?uri=http%3A%2F%2Fdinghydogs.com%2F&charset=%28detect+automat ically%29&doctype=Inline&group=0&ss=1&st=1&outline=1&No200=1&verbose=1>
    Good luck and post back.

  • "Bad request" errors in Firefox with second user account

    Yesterday, I set up a second user account for my husband to use. Everything seems to work fine with one annoying exception. When Firefox 3 is used as the browser under the new user account, I get frequent "Bad Request" errors with various web mail programs (MobileMe, GMail, Earthlink's web mail).
    This does not happen when the same Firefox 3 is used under my original user account. It also does not happen when performing the same functions with Safari under the new user account. It also doesn't seem to matter whether Fast User Switching is enabled or disabled.
    I have tried clearing caches, deleting cookies, deleting preferences etc. in the second user's Firefox, all to no avail. Anyone have any other ideas?
    I guess one thing I'm a little unclear about... is the second user actually using the same Firefox app as the first user? If so, would there be a way to install a 2nd Firefox app that would only be for the second user? I'm just thinking maybe there is some kind of conflict going on?
    Any thoughts or help out there much appreciated!

    I think I figured it out. I found an article online that said if you have Parental Controls enabled on an account (which I did on the second user account), it will not allow Firefox to write cookies, thus causing the "bad request" errors.
    This is not exactly true, as Firefox under the new user DID seem to be writing cookies just fine. However, when I disabled Parental Controls on the account, suddenly the errors went away. So, it doesn't have to do with cookies, but there is something about having Parental Controls turned on that can cause these errors.

  • HTTP 400 Bad Request error in master/detail report

    Using APEX 3.2
    I have master/detail report and thought all was working fine because the detail lines were less than 100. I increased the number of lines to 300 and then when the Save or Delete buttons are pressed, we get the HTTP 400 Bad Request error. I decreased the lines to 100 (about 32K) and everything works again.
    Is there a size limitation on the detail? FYI - the header regeion is on the same page as the detail. If there is a size limitation, is there a way to increase this?
    If you experts don't think the error is a result of the size, could there be another cause?
    THANKS FOR YOUR HELP!
    Sandie

    Hi All,
    Issue resolved:) ...that due to When calling a URL in the REST Receiver Channel, all GET variables are ignored
    so we had to upgrade SP10 patch level 5 and all services are working as we expected.
    Also pls check Note :2114322
    Thanks,
    Maheswarareddy

  • Getting a Bad Request Error upn logging into website - Safari goes right in

    Trying to access South Carolina Library information for students at an educational institution. When we get to the login page for the place we need to go, Firefox comes back with a 400 Bad Request Error. If the students use Safari, it goes right through. I prefer them to use one browser and would prefer Firefox. Any thoughts? Narrowing it down, it has something to do with networking and Firefox. I can log on as a local admin on the MAC and Firefox will go right through, but if the students log into to the MAC using Open Directory, I get the Bad Request message.

    Trying to access South Carolina Library information for students at an educational institution. When we get to the login page for the place we need to go, Firefox comes back with a 400 Bad Request Error. If the students use Safari, it goes right through. I prefer them to use one browser and would prefer Firefox. Any thoughts? Narrowing it down, it has something to do with networking and Firefox. I can log on as a local admin on the MAC and Firefox will go right through, but if the students log into to the MAC using Open Directory, I get the Bad Request message.

  • I get "bad request error 400" when I try to log on to my gmail account. Safari allows me to access the account. What's the problem?

    I cannot open my gmail account on Firefox as of yesterday. I get, instead, Bad request Error 400. This is a recent devlopment and rather annoying. Safari works fine.

    You're welcome

  • Having constant 400 Bad request errors on Yahoo with Firefox 5.0 "optimized for Yahoo"

    Every time I attempt to enter a news article on Yahoo's main page I get a "400 Bad Request" error. I have downloaded Firefox 5.0 "optimized for Yahoo" and that still did not solve the problem.
    This ONLY occurs on Firefox. I also use Google Chrome and it has no such error problems. Neither does Internet Explorer which I RARELY use.
    Please Identify the problem and solution.
    I also have problems with Realplayer p[lug ins and Adobe Reader X

    This problem is directly related to the way that Safari requires full header information and the way that the individual server concerned is set up to serve and deal with cookie setting; the longer the date set in the future for the cookie concerned, the more likely it is to provoke this error.
    For instance http://www.digitaluk.co.uk/ has a Last visit cookie date set to 2999, but loads AOK in Safari 4.0.3, whereas virginmedia.com sets dates on some cookies well in excess of 2100 and unless one deletes those cookies that are beyond this centuries date for that site then their _sageamp and _camp cookies will provoke the kind of error being reported.
    For what it's worth, I do not see the point of setting cookie dates for 2109, 2500 +, or much beyond a couple of years from now.
    It would seem some regular organisations do see the point of doing that.
    If you list the cookies in the Security/Show Cookies section of Safari preferences, you can see the likely offenders for the site provoking the error, once deleted they will be reset if needed in that session, often as not with newer , closer dates to today's date.

  • Getting Bad request error while trying to get a specific document details from c#.

    Hi,
    While trying to retrieve a specific document details using RESTful WS API from C#, it is throwing "The remote server returned an error: (400) Bad Request" exception.
    the request URL i am using for this is like;  "http://<Server>:6405/biprws/raylight/v1/documents/1111"
    But it is working fine, if i change my request URL to get the dataproviders of the same document like; "http://<Server>:6405/biprws/raylight/v1/documents/1111/dataproviders"
    Please let me know if i am missing any thing in first case, getting the details of a specific document, while sending a request to RESTful SDK.
    Thanks,
    Kalyan

    I think you are using “Content-Type” header or an “Accept” header.
    You should be using “Accept: application/xml” for that request
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center
    Canada
    Follow us on Twitter

Maybe you are looking for

  • How can I carry information from one page to another page???

    Hi, I have two different pages, and two different tables on them. Like city and house pages and tables. I wantto add new record in house tables which depends on city tables and they must on be different pages, I mean I cant use master detail tables o

  • Using my home Mac as a server

    I would like to put my pictures on the web so that certain clients can view their photos with password. I photograph weddings and would prefer to make html slide shows of their wedding pictures so that they can view them anywhere with any computer. I

  • Re: Portege R500: Contros button doesn't work after installing update

    After installing the most recent version of Toshiba's Value Added Package, the two buttons (toshiba assist and backlight on/off) do not work properly: they open instead a firefox browser window. I assume there is something to configure in the "optimi

  • Can't install my Iphone 4

    Hey! I just bought my iphone 4 and has problems with the installation. When I plug it into my computer then it would not start itunes automatically. Itunes can not find it manual either! Anyone know what the problem might be?

  • MacBook Retina users please post screenshots

    My trusty 2009 MBP 17" just fried, I'll regret it except that it had become unbearably noisy... The old white macbook I borrowed is so much quieter, and it makes such a difference to my stress level at the end of the day, that for the replacement of