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.

Similar Messages

  • HTTP/1.1 400 Bad Request error in receiver REST channel

    Hi Experts
    I am currently working on an interface in which we have created a REST communication channel on the receiver side.
    The below error comes up in the PI when we try to perform the GET operation on the URLs given below:
    Error Message: HTTP error occurred: HTTP/1.1 400 Bad Request
    URLs -
    i) https://<myHost>:<myPort>/businesses/search?Keyword=Viridor&ResultsPerPage=10
    ii) https://<myHost>:<myPort>/businesses/ec92a1e9-cef0-48aa-8800-a2e500ce8b1c/sites?Keyword=Viridor&ResultsPerPage=10
    When we use SOAP UI to perform the above test, it works perfectly fine and fetches the required response from the target REST server.
    Also, when we use the URL - https://<myHost>:<myPort>/businesses in the receiver communication channel in PI, it works fine and retrieves the
    values of all the businesses present on the target server, however on making URL more specific - like the two URLs above, it does not work
    and gives the bad request message.
    Please can you let me know what could be the issue.
    Thanks,
    Maheswarareddy

    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

  • 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.

  • 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

  • SRT: Unsupported xstream found: ("HTTP Code 400  : Bad Request")

    hi,
    I get the error message
    SRT: Unsupported xstream found: ("HTTP Code 400  : Bad Request")
    what can cause that. I have created a RFC Connection have tested it, it workd well.
    But when I call  CALL METHOD r_user->MAP_R3USER i get this message.
    Regards
    sas

    Thanks.
    Kindly take note that the "Comment" field is not mandatory, so there is no need to bounce all 200 threads to the top again.
    You can leave threads unanswered when you still hope or suspect that an answer might be searched be someone, but if it is a "dead duck" (like many cross-posted threads are - which often cause this problem) then please close them.
    People who neglect following up on their threads, often neglect thanking those who put in an effort to help with helpfull answers. But many people notice this and stop answering. That does not apply in your case in posts since about July this year, so if you clean up then I am sure that you will further benefit from it.
    Please take this in a positive way. Personally I enjoy reading some of your questions and learn from them as well.
    Cheers,
    Julius

  • 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 "HTTP 400 Bad Request" error when submitting form

    I am using APEX 3.1.2. I have a form based on a table. The form contains check boxes, a multiple select item, some text items and some text boxes with HTML editors. It had been working properly but now is giving me the dreaded "The web page can not be found..." error page as soon as I click create when in create mode or the update or the delete button when editing a row of data. The URL in the address area of the browser is: "http://ndhoast.tsh.mis.mckesson.com:7778/pls/apex/wwv_flow.accept" and the tab says "HTTP 400 Bad Request".
    Any help would be greatly appreciated!

    Do you have any extra Javascript components added in? We've been doing work with ExtJS and Oracle Apex, and I've noticed that on one particular page there is a bad request thrown when a doSubmit() is called. When the Javascript is commented out, the page works fine.

  • "The request failed with HTTP Status 400: Bad Request." when running reports

    Hi,
    I installed reporting services and the install went fine.  The Reporting Services are located on a different server.  I can see all the reports in SCCM but when I try to run them I get the "400" error with the following details:
    System.Net.WebException
    The request failed with HTTP status 400: Bad Request.
    Stack Trace:
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.ReportExecutionService.LoadReport2(String Report, String HistoryID)
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.<>c__DisplayClass2.<LoadReport>b__0()
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)
       at Microsoft.Reporting.WinForms.ServerReport.EnsureExecutionSession()
       at Microsoft.Reporting.WinForms.ServerReport.SetParameters(IEnumerable`1 parameters)
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ReportViewerWindowsForms.SetParameterValues_DoWork(Object sender, DoWorkEventArgs e)
    I can open the URL from the SCCM server but when I select a report I am unable to select any report options if available.  If no options are availble the report just doesn't run,  I don't get and error if I select "View Report" mutiple
    times.
    If I connect to the Reporting Services site on the computer where it is installed all the reports run fine.
    One thing I have noticed is that when I try to change or add a role assignment for Reporting Services the edited account always reverts back to the default settings and the added Domain user is dropped.
    Thanks

    I reviewed the topic and found a couple of steps I missed the first time around.  I had to "Configure Reports to Use Report Builder 3.0 and setting the "Log on Locally" permission. 
    I then uninstalled the role and reinstalled it.  I am still getting the 400 error.
    When I inspected the SmsAdminUI.log I noticed the Error on the last line 2151811598 (it repeats in the log).  I couldn't find anything specific related to it.  By reading a few "related" Internet posts I came accross a intial setup
    blog that noted some WMI firewall execptions (Async-in, DCOM-in and WMI-in) as require so I checked and they were not allowed on the SCCM server so I allowed them and tested with the same result.  I turned them off again. 
    Here is the tail end of the SmsAdminUI.log
    [19, PID:2684][01/24/2013 16:08:29] :[ReportProxy] - User-specified default Reporting Point [INC-SQL42.deccoinc.net] could not be found, [] is now the default Reporting Point.
    [4, PID:2684][01/24/2013 16:08:30] :[ReportProxy] - User-specified default Reporting Point [INC-SQL42.deccoinc.net] could not be found, [] is now the default Reporting Point.
    [15, PID:2684][01/24/2013 16:08:30] :[ReportProxy] - User-specified default Reporting Point [INC-SQL42.deccoinc.net] could not be found, [] is now the default Reporting Point.
    [1, PID:2684][01/24/2013 19:06:02] :System.Management.ManagementException\r\nNot found \r\n   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.ManagementObject.Initialize(Boolean getObject)
       at System.Management.ManagementBaseObject.get_wbemObject()
       at System.Management.PropertyData.RefreshPropertyInfo()
       at System.Management.PropertyDataCollection.get_Item(String propertyName)
       at System.Management.ManagementBaseObject.GetPropertyValue(String propertyName)
       at System.Management.ManagementBaseObject.get_Item(String propertyName)
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.GetInstance(String objectPath)\r\nManagementException details:
    instance of SMS_ExtendedStatus
     Description = "Error retrieving object FileType=2";
     ErrorCode = 2151811598;
     File = "e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\SspInterface.h";
     Line = 1208;
     Operation = "GetObject";
     ParameterInfo = "SMS_SCI_SysResUse.FileType=2,ItemName=\"[\\\"Display=\\\\\\\\INC-SQL42.deccoinc.net\\\\\\\"]MSWNET:[\\\"SMS_SITE=INC\\\"]\\\\\\\\INC-SQL42.deccoinc.net\\\\,SMS SRS Reporting Point\",ItemType=\"System Resource Usage\",SiteCode=\"INC\"";
     ProviderName = "ExtnProv";
     StatusCode = 2147749890;
    \r\n
    [1, PID:2684][01/24/2013 23:39:14] :System.NullReferenceException\r\nObject reference not set to an instance of an object.\r\n   at Microsoft.ConfigurationManagement.AdminConsole.SmsCustomDialog.get_LocaleIndependentIdentifier()
       at Microsoft.ConfigurationManagement.AdminConsole.ShowDialogTaskHandler.DoTask(NavigationModelNodeBase node, SccmTaskConfiguration sccmTask, PropertyDataUpdated dataUpdatedDelegate, Boolean readOnly)\r\n
    [1, PID:5008][01/25/2013 20:48:00] :System.Management.ManagementException\r\nNot found \r\n   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.ManagementObject.Initialize(Boolean getObject)
       at System.Management.ManagementBaseObject.get_wbemObject()
       at System.Management.PropertyData.RefreshPropertyInfo()
       at System.Management.PropertyDataCollection.get_Item(String propertyName)
       at System.Management.ManagementBaseObject.GetPropertyValue(String propertyName)
       at System.Management.ManagementBaseObject.get_Item(String propertyName)
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.GetInstance(String objectPath)\r\nManagementException details:
    instance of SMS_ExtendedStatus
     Description = "Error retrieving object FileType=2";
     ErrorCode = 2151811598;
     File = "e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\SspInterface.h";
     Line = 1208;
     Operation = "GetObject";
     ParameterInfo = "SMS_SCI_SysResUse.FileType=2,ItemName=\"[\\\"Display=\\\\\\\\INC-SQL42.deccoinc.net\\\\\\\"]MSWNET:[\\\"SMS_SITE=INC\\\"]\\\\\\\\INC-SQL42.deccoinc.net\\\\,SMS SRS Reporting Point\",ItemType=\"System Resource Usage\",SiteCode=\"INC\"";
     ProviderName = "ExtnProv";
     StatusCode = 2147749890;
    \r\n

  • 400 bad request error after Firefox 4.0.1 update

    After the latest Firefox update, the browser no longer works. When I try to go to a web site, Firefox sends the URL incorrectly by repeating the url. For example: if I type the url http://my.yahoo.com/, I get the following error:
    400 Bad Request
    Your browser sent a request that this server could not understand:
    my.yahoo.comhttp://my.yahoo.com/ (port 80)

    Thank you again for your help. After clearing the cache and cookies, and still having the problem, I uninstalled/reinstalled firefox. I had tried this before, but allowed it to keep my bookmarks, etc.. This time I had it remove everything (this is a check-box when doing the uninstall).
    After reinstalling Firefox this time, the problem went away. Thank you for your help. Your comment about the cache and cookies, made me think that removing all information during the uninstall would help, and it did.
    I don't know if your second suggestion would have helped, because it is now fixed.
    But I believe it was a possibility.

  • "Page Cannot be Found" - "HTTP 400 - Bad Request" error on clicking iview

    Hi,
    We are in EP6 SP19 cluster environment.We have a customized personalisation iview in our portal.This iview gives above mentioned error in one of our DI's when trying to perform any action on this iview.The data is being taken from DB of CI, so there is no issue with the concern par file as application in other DI's is working fine. Do i need to check any configaration in the portal.Please get back to me on this.

    hi

  • Text Area 400 Bad Request Error in apex

    Hi All,
    I am having a problem with putting a large amount of text into text areas.
    I did the following. Create a new page. Create an HTML region within that page. Create a text area within that region. Set the Maximum Width to 5000. Create a button within the region that submits the page and goes to the same page.
    In fact, I have found that I can put up to 32512 bytes in the text area
    But when i am trying to put less than 5000 it is throwing error, can any one help me out on this. Howe can restrict this scenrio.
    Thanks,
    Anoo..

    Anoo wrote:
    I am having a problem with putting a large amount of text into text areas.
    I did the following. Create a new page. Create an HTML region within that page. Create a text area within that region. Set the Maximum Width to 5000. Create a button within the region that submits the page and goes to the same page.
    In fact, I have found that I can put up to 32512 bytes in the text area
    But when i am trying to put less than 5000 it is throwing error, can any one help me out on this. Howe can restrict this scenrio.What error?
    Where does Debug show the error is occurring?
    See +{message:id=10397122}+

  • I got an error message 400 bad request Request Header Or Cookie Too Large

    How do I fix this issue, I had an window update b-4 this error occurred.

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Also Try to update your date and time of your system.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Http error 400 - bad request when calling external webservice

    I have a problem connecting OSB to webservices exposed by Lotus Domino Server.
    When I test the services with XMLSpy, it works fine. I started a project in OSB, and imported WSDL files from the server url. So far it worked. I built the corresponding Business services. When I tried to test these business services, i got error 400 from the domino server.
    Does anyone have an idea to fix this problem?
    My response document:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server.generalException</faultcode>
    <faultstring>org.xml.sax.SAXParseException: Korai fájlvége.</faultstring>
    <detail/>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>HTTP/1.1 400 Bad Request
    Server: Lotus-Domino
    Date: Sat, 09 May 2009 19:57:19 GMT
    Connection: close
    Pragma: no-cache
    Cache-Control: no-cache
    Expires: Sat, 09 May 2009 19:57:19 GMT
    Content-Type: text/html
    Content-Length: 161
    <HTML><HEAD><TITLE>Unable to Process Request</TITLE></HEAD><BODY><P>Http Status Code: 400</P><P>Reason: Unknown or unsupported protocol version</P></BODY></HTML>

    Yes, the problem should be in the request, but in the test console the request document looked fine.
    I tried the following:
    I tested the service with XMLSpy. I took the soap envelope generated, and pasted it into the business service test console. Then the payload should be the same in both cases, but it does not work.

  • Error: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request

    Hi Gurus,
    i am hardly fighting with this error in Communication Channel Monitoring:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request
    This is my scenario.
    I do a File to SOAP Scenario. in SXI_MONITOR everything is fine.
    My CommChan is a SOAP Receiver
    HTTP
    SOAP 1.1
    Central Adapter Engine
    Target URL is https --> i check url for correctness
    Configure User Authentication is checked and username and pw are given and are correct.
    Configure Certificate Authentication is checked are working
    Configure Proxy is checked and Host and port are povided.
    SOAP Action is provided
    In Tab Module
    if have this Processing Sequence
    1     localejbs/AF_Modules/MessageTransformBean     Local Enterprise Bean     transform
    2     sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean     Local Enterprise Bean     1
    and this Module configuration (and only this)
    transform     Transform.ContentType     text/xml;charset=utf-8
    (according to /people/sobhithalaxmi.kata/blog/2009/07/21/cost-free-edi-integration-using-message-transformation-bean)
    As far as i understand that my http header should have Content-Type: text/xml;charset=utf-8 now. I don't understand why Communication Channel Monitoring shows an error according to content TEXT/HTML.
    Can anyone help me with that?
    Is it possible that Transform.ContentType does not work for SOAP Receiver Adapter?
    is there any chance to view the HTTP-Header of the outgoing SOAP Request (with PI Transaction / Java Enironment) to convince myself that the HTTP Header is text/xml?
    Thank you in advance and Best Regards
    Udo

    Hi Thanks for your fast replies.
    The Provider of the Endpoint tells me that he needs text/xml as content-type. When I sent a message to the given Endpoint via SOAP UI I can see in the HTTP LOG of SOAP UI that the Endpoint is also sending text/xml back.
    Below you find the Details log out of the CommChan Monitoring.
    2011-04-29 11:37:45 Information The message status was set to TBDL.
    2011-04-29 11:37:45 Information Retrying to deliver message to the application. Retry: 3
    2011-04-29 11:37:45 Information The message was successfully retrieved from the receive queue.
    2011-04-29 11:37:45 Information The message status was set to DLNG.
    2011-04-29 11:37:45 Information Delivering to channel: getxxxxx_In  <---- name of my SOAP Receiver CommChan
    2011-04-29 11:37:45 Information Transform: using Transform.Class:  $identity
    2011-04-29 11:37:45 Information Transform: transforming the payload ...
    2011-04-29 11:37:45 Information Transform: successfully transformed
    2011-04-29 11:37:45 Information SOAP: request message entering the adapter with user J2EE_GUEST
    2011-04-29 11:37:46 Error SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request
    2011-04-29 11:37:46 Information SOAP: sending a delivery error ack ...
    2011-04-29 11:37:46 Information SOAP: sent a delivery error ack
    2011-04-29 11:37:46 Error SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request
    2011-04-29 11:37:46 Error Adapter Framework caught exception: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request
    2011-04-29 11:37:46 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 400 Bad Request.
    2011-04-29 11:37:46 Error The message status was set to NDLV.
    What i am missing is a hint on the Message Transform Bean and a on a successfull sending process.
    What i also tried already:
    i also activated the checkbox "Do not use SOAP Envelop" in CommChan Configuration. The Result you see below (the last log entry is on first line - so read from bottom to top)
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 400 Bad Request
    error in response
    call completed
    request entering
    Message processing started
    As you can see there is a "call completed" and "error in response" log entry. This is missing in in the first Log. So i guess the error is still in the sending process.
    Installing additional Software on the PI and use them to find out what the HTTP Request is is not possible as system access is very strict and limited :/

Maybe you are looking for