Client found response content type of 'text/plain', but expected 'text/xml'

Hi All
We have developed a J2EE- JAX-RPC web service using Weblogic's 'ServiceGenTask'.
Invoking web service via java client and SOAP UI works like charm but fails when the
service invoked via .NET client.
Below is the .NET sample code and the Stack Trace:
.NET CODE:
System.Net.ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate {      return true;  });
testwebservice.ESI est1 = new testwebservice.ESI();
esi_detail = est1.getDetails("someuserid", "password"<Details> <Id>" + txt_eino.Text +"</Id> </Details>");
Stack Trace:
System.InvalidOperationException was unhandled by user code
Message=Client found response content type of 'text/plain', but expected 'text/xml'.
The request failed with the error message:
HTTP/1.1 100 Continue
<env:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Header/><env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><m:getCertificateDetailsForWSUResponse xmlns:m="http://mynamespace"><result xsi:type="xsd:string"><CertificateStatus>valid</CertificateStatus>
</m:getCertificateDetailsForWSUResponse></env:Body></env:Envelope>
Source=System.Web.Services
StackTrace:
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 shcilestamp.EstampIndia.getCertificateDetailsForWSU(String string, String string0, String string1) in c:\Users\Revenue\AppData\Local\Temp\Temporary ASP.NET Files\sra\6fd93bb3\8d227466\App_WebReferences.iojpamot.0.cs:line 105
at default_1.btn_verify_estamp_Click(Object sender, EventArgs e) in c:\Users\Revenue\Desktop\OFFICE\sra\default.aspx.cs:line 1006
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Note: The same client code is able to access the service deployed in our DR site without any fault.
However it fails to invoke service deployed in Production site.
Is this anything to do with the Content-type settings at the web/app server layer?
Any help will be appreciated.
Thanks & Best Regards
Avinash

Make sure you're using the Reverse Proxy Plugin for Web Server, not the Application Server Connector (they are VERY similar, but not the same). The RPP knows how to handle 100 Continue, the Connector does not.
Or use Web Server 7 and its built-in reverse proxy feature.

Similar Messages

  • Client found response content type of 'text/html;charset=iso-8859-1', but expected 'text/xml'.

    Hello All,
    I am on BI 4.0 SP6.
    I am login to Advance Analysis Office using sso with Authentication : Windows AD, but when i login errors occurs:
    Client found response content type of 'text/html;charset=iso-8859-1', but expected 'text/xml'.
    The request failed with the error message:
    I have done all settings and configuration for SSO as per following notes:
    http://service.sap.com/sap/support/notes/1631734
    http://service.sap.com/sap/support/notes/1646920
    http://service.sap.com/sap/support/notes/1794675
    Earlier i was getting Login Exception Error WSE : 99999, i did some changes, after that the above error is coming
    Does anybody knows the solution?
    KR,
    MD

    refer the below note
    1785270 - How to configure AD SSO for Advance Analysis for MS Office with Business Objects BI 4.0

  • Client found response content type of '', but expected 'text/xml', While Creating Subscription in SSRS2008 R2

    I am trying to Create a Subscription from a windows service and provided all authentication as Anonymous. Added the Web Reference of reporting service 2008 as 'http://ServerName:Port(80)/ReportServer/ReportService2005.asmx' and execution service as
    'http://ServerName:Port(80)/ReportServer/ReportExecution2005.asmx'. I was getting the following error while executing the below code statement:
    rs.CreateSubscription(reportPath, extSettings, desc, eventType, matchData, parameters);  
    Client found response content type of '', but expected 'text/xml'.
    The request failed with an empty response.
    I am running Microsoft SQL Server 2008 R2.  Please help.

    Hi PrabhatY,
    According to your description, the error "Client found response content type of '', but expected 'text/xml'.The request failed with an empty response." is thrown out when you create a subscription for a report with PowerShell.
    In your scenario, please check if you could access the report server and create a subscription in report manager. Then you should make sure all parameters within CreateSubscription method are right. If issue persists, please try to use Fiddler to monitor
    local request and received response message. Please refer to this document to use this tool:
    Getting Started with Fiddler.
    Reference:
    ReportingService2005.CreateSubscription Method
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Content type is text\xml - 400 Bad Request, Content Type - Blank - success

    Hi,
    I have a send port subscribing to a message from the Message Box and sending the message to a service.
    The content type is text\xml, and it fails with a 400-Bad Request.
    If the send port picks up the message from a folder , Content Type is Blank, the service returns a response.
    How do I make the message picked up from the Message Box ( with Content Type text\xml)  work. Can I change the Content Type of the message at the Send Port (WCF-Custom, Basic HTTP Binding).
    Regards,
    Sharmishtha Sarkar

    You issue is not with Content Type text\xml  On the wire web request is passed as text\xml as content type and  issues is neither with send port folder .
    I would say you need to check your send port binding and  SOAP Action header inside your Send Handler . Best way to import the binding generated while consuming service through BizTalk WCF Service Consuming Wizard.
    I suspect you are sending wrong message to web service and thus due to data contract conflict you are getting exception from the service .
    There are various articles which can guide you how to consume web service in BizTalk .Some of them are listed below .
    How to Use the BizTalk WCF Service Consuming Wizard to Consume a WCF Service
    BizTalk and WCF: Part I, Operation Patterns
    Consuming WCF Service in BizTalk 2010 Orchestration
    Thanks
    Abhishek

  • SOAP-Exception: unsupported response content type

    Hi,
    can anybody give me a little hint?.
    I currently try to run the JDeveloper "Tutorial" web service examples. I could successfully implement and deploy the DateTime Web-Service example. But when executing "DateTimeClient.java" I get the error message listed below.
    I'm using JDeveloper 9.0.2 and the OC4J- J2EE Container (standalone) shipped with JDeveloper
    Thanks for your help
    Thomas
    D:\Programme\oracle\jdev\jdev9i902\jdk\bin\javaw.exe -ojvm -classpath D:\Programme\oracle\jdev\jdev9i902\jdev\mywork\WebService\DateTimeClient\classes;D:\Programme\oracle\jdev\jdev9i902\jdev\lib\jdev-rt.jar;D:\Programme\oracle\jdev\jdev9i902\soap\lib\soap.jar;D:\Programme\oracle\jdev\jdev9i902\lib\xmlparserv2.jar;D:\Programme\oracle\jdev\jdev9i902\jlib\javax-ssl-1_2.jar;D:\Programme\oracle\jdev\jdev9i902\jlib\jssl-1_2.jar;D:\Programme\oracle\jdev\jdev9i902\jdk\jre\lib\ext\activation.jar;D:\Programme\oracle\jdev\jdev9i902\jdk\jre\lib\ext\mail.jar;D:\Programme\oracle\jdev\jdev9i902\j2ee\home\lib\http_client.jar -Dhttp.proxyHost=http-proxy.danet.de -Dhttp.proxyPort=8080 datetimeclientpackage.DateTimeClient
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Method Not Allowed&lt;/TITLE&gt;&lt;/HEAD&gt;
    &lt;BODY&gt;&lt;H1&gt;Method Not Allowed&lt;/H1&gt;
    An error has occurred.
    &lt;/BODY&gt;&lt;/HTML&gt;
         java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
         org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
         java.lang.String datetimeclientpackage.DateTimeClientStub.getDate()
         void datetimeclientpackage.DateTimeClient.main(java.lang.String[])
    Exception in thread main
    Process exited with exit code 1.

    I have just found the same/similar problem discussed some months ago. I have adopted the solution proposed by
    Raghu Kodali (disabling usage of http-proxy-server). Now the samples runs well.
    Thanks a lot.

  • Unsupported response content type "text/html", must be: "tex

    Hi Gurus,
    I'm trying to access a WebService (http://200.68.11.21/WebServices/RecibeMsgSoapISP.wsdl), but I've been facing the following problem below. Could anybody help me?
    //****************************** MY CODE
    FileInputStream file = new FileInputStream("c:\\EXE\\deuda2.xml");
    byte[] bytes = new byte[file.available()];
    file.read(bytes);
    String xml = new String(bytes);
    System.out.println("Xml:\n" + xml);
    URL endPoint =
    new URL(
    "http://200.68.11.21/WebServices/RecibeMsgSoapISP.wsdl");
    Call call = new Call();
    SOAPTransport m_httpConnection =
    new org.apache.soap.transport.http.SOAPHTTPConnection();
    call.setSOAPTransport(m_httpConnection);
    call.setTargetObjectURI("urn:RecibeMsgSoapIsp");
    call.setMethodName("RecibeM2TGR");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    //SOAPTransport st = new SOAPHTTPConnection();
    //call.setSOAPTransport(st);
    Vector params = new Vector();
    params.addElement(new Parameter("StrXml", String.class, xml, null));
    call.setParams(params);
    //call.setHeader();
    Response response = call.invoke(endPoint, "");
    Parameter result = response.getReturnValue();
    System.out.println("result:" + result);
    //****************************** MY EXCEPTION
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <html dir=ltr>
    <head>
    <style> a:link               {font:8pt/11pt verdana; color:FF0000} a:visited          {font:8pt/11pt verdana; color:#4e4e4e}
    </style>
    <META NAME="ROBOTS" CONTENT="NOINDEX">
    <title>No se puede mostrar la p&aacute;gina</title>
    <META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
    </head>
    <script>
    function Homepage(){
    <!--
    // in real bits, urls get returned to our script like this:
    // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
         //For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
         DocURL=document.URL;
         //this is where the http or https will be, as found by searching for :// but skipping the res://
         protocolIndex=DocURL.indexOf("://",4);
         //this finds the ending slash for the domain server
         serverIndex=DocURL.indexOf("/",protocolIndex + 3);
         //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
         //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
         //urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
         BeginURL=DocURL.indexOf("#",1) + 1;
         urlresult=DocURL.substring(BeginURL,serverIndex);
         //for display, we need to skip after http://, and go to the next slash
         displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
         InsertElementAnchor(urlresult, displayresult);
    function HtmlEncode(text)
    return text.replace(/&/g, &apos;&amp&apos;).replace(/&apos;/g, &apos;&quot;&apos;).replace(/</g, &apos;&lt;&apos;).replace(/>/g, &apos;&gt;&apos;);
    function TagAttrib(name, value)
    return &apos; &apos;+name+&apos;="&apos;+HtmlEncode(value)+&apos;"&apos;;
    function PrintTag(tagName, needCloseTag, attrib, inner){
    document.write( &apos;<&apos; + tagName + attrib + &apos;>&apos; + HtmlEncode(inner) );
    if (needCloseTag) document.write( &apos;</&apos; + tagName +&apos;>&apos; );
    function URI(href)
    IEVer = window.navigator.appVersion;
    IEVer = IEVer.substr( IEVer.indexOf(&apos;MSIE&apos;) + 5, 3 );
    return (IEVer.charAt(1)==&apos;.&apos; && IEVer >= &apos;5.5&apos;) ?
    encodeURI(href) :
    escape(href).replace(/%3A/g, &apos;:&apos;).replace(/%3B/g, &apos;;&apos;);
    function InsertElementAnchor(href, text)
    PrintTag(&apos;A&apos;, true, TagAttrib(&apos;HREF&apos;, URI(href)), text);
    //-->
    </script>
    <body bgcolor="FFFFFF">
    <table width="410" cellpadding="3" cellspacing="5">
    <tr>
    <td align="left" valign="middle" width="360">
         <h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->No se puede mostrar la p&aacute;gina</h1>
    </td>
    </tr>
    <tr>
    <td width="400" colspan="2"> <font style="COLOR:000000; FONT: 8pt/11pt verdana">No se puede mostrar la p&aacute;gina que est&aacute; buscando porque la direcci&oacute;n de la p&aacute;gina es incorrecta.</font> </td>
    </tr>
    <tr>
    <td width="400" colspan="2"> <font style="COLOR:000000; FONT: 8pt/11pt verdana">
         <hr color="#C0C0C0" noshade>
    <p>Pruebe lo siguiente:</p>
         <ul>
    <li>Si escribi&oacute; la direcci&oacute;n de la p&aacute;gina en la barra de direcciones, compruebe que la ha escrito correctamente.<br>
    </li>
    <li>Abra la p&aacute;gina principal
    <script>
         <!--
         if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.navigator.appVersion.charAt(0) == "2")))
              Homepage();
         //-->
         </script>
         y busque v&iacute;nculos a la informaci&oacute;n que desee.</li>
    </ul>
    <h2 style="COLOR:000000; FONT: 8pt/11pt verdana">HTTP 405 &ndash; Resource not allowed<br> Servicios de Internet Information Server</h2>
         <hr color="#C0C0C0" noshade>
         <p>Informaci&oacute;n t&eacute;cnica (para personal de soporte)</p>
    <ul>
    <li>M&aacute;s informaci&oacute;n:<br> Soporte t&eacute;cnico de Microsoft
    </li>
    </ul>
    </font></td>
    </tr>
    </table>
    </body>
    </html>
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
         at org.apache.soap.rpc.Call.invoke(Call.java:255)
         at test.Test.main(Test.java:42)
    Best regards,
    George

    Is this statement that causes the exception? "Response response = call.invoke(endPoint, "");"
    If so you might be able to catch the SOAPException and interogate the response variable - surround the call with a try, catch block and within the catch you can get the MimeHeaders and check "Content-Type" If it's "text/html" then you know it not a SOAP message so don't use the SOAP api calls.
    It sounds like the web service is offline and the web server is trying to send you an HTML error page which of course is not a SOAP message and so a SOAPException is thrown.

  • Msg=Unsupported response content type "text/html; 400 Bad Request

    Hi All
    this is the excpetion that I get when I am tring to run the
    service MAnagerClient.
    whether it is a list or deploy command :
    can anybody help me?
    Exception in thread "main" [SOAPException: faultCode=SOAP-
    ENV:Protocol; msg=Unsupported response content type "text/html;
    charset=iso-8859-1", must be: "text/xml". Response was:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>400 Bad Request</TITLE>
    </HEAD><BODY>
    <H1>Bad Request</H1>
    Your browser sent a request that this server could not
    understand.<P>
    <HR>
    <ADDRESS>Oracle HTTP Server Powered by Apache/1.3.19 Server at
    ranaldb Port 1324</ADDRESS>
    </BODY></HTML>
    at org.apache.soap.rpc.Call.getEnvelopeString
    (Call.java:175)
    at org.apache.soap.rpc.Call.invoke(Call.java:212)
    at
    org.apache.soap.server.ServiceManagerClient.invokeMethod
    (ServiceManagerClient.java:129)
    at org.apache.soap.server.ServiceManagerClient.list
    (ServiceManagerClient.java:151)
    at org.apache.soap.server.ServiceManagerClient.main
    (ServiceManagerClient.java:237)

    Hello,
    Your message contains a an HTTP 404 error so the URL that you are trying to access is not valid.
    Can you check from a browser what is the response when you call the endpoint?
    http://server:port/wedanyservices-WedanyServicesPro-context-root/MyWebService2
    I believe that you do not have a service deployed at this URL this is why you have such response, and you cannot send another response.
    Regards
    Tugdual Grall

  • Weblogic Portal - Disc API bug in response content type

    Hi
    While using WLP Disc APIs in the portal for AJAX calls, the response content type returned by the weblogic portal server is:
    text/x-netuix-json-comment-filtered; charset=ISO-8859-1
    This is not getting changed to 'application/json' inspite of setting this as the content type for a JSF JSP.
    Probably, looks like a bug.
    We have a JSF portlet in which we need to make an AJAX call.
    Please refer to the weblogic whitepaper for the AJAX examples (weblogic-portal-jsf-whitepaper.pdf).
    The example works fine in the dev/build environment. When the portal server is accepting calls through Sun One webserver,
    the logs from the webserver show the response content type from the portal server as "text/x-netuix-json-comment-filtered; charset=ISO-8859-1"
    - I tried changing the content type to "application/json" in the JSF JSP (as per the example from the pdf file). Still the content type does not change.
    - The response from the portal server is suffixed with "\n\r\t". Because of the trailing space/carriage return chars in the portal server response, the sun one webserver is unable to parse (or) eliminate the "\r\n\d" chars to the browser. When the browser receives a response (with the trailing chars), the module.js (weblogic wrapper API for DISC calls) fails.
    - The module.js tries to check whether the response from portal server ends with "**/" but unfortunately, the weblogic protal server returns
    "/** %json response%**/\n\r\d"
    I found a workaround to this issue by having a filter for the JSF JSP which sets the content type as "application/json" and does a flush() before it makes a call to the JSF JSP which responsds to an ajax call. This works as the content type is set and flushed first so any attempt by the portal server to set as "text/x-netuix-json-comment-filtered" does not get reflected in the http response.
    Any support/fix from oracle regarding this will be helpful as most of the webserver integration with the portal server happens during the middle of the project build and might lead to a technical risk.
    Server details: WLPS 10.3, Sun One 7.0
    Thanks
    Ananth Krishnan

    Make sure you're using the Reverse Proxy Plugin for Web Server, not the Application Server Connector (they are VERY similar, but not the same). The RPP knows how to handle 100 Continue, the Connector does not.
    Or use Web Server 7 and its built-in reverse proxy feature.

  • Response Content type for WLP Disc API calls

    Hi
    While using WLP Disc APIs in the portal for AJAX calls, the response content type returned by the weblogic portal server is:
    text/x-netuix-json-comment-filtered; charset=ISO-8859-1
    This is not getting changed to 'application/json' inspite of setting this as the content type for a JSF JSP.
    Probably, looks like a bug.
    We have a JSF portlet in which we need to make an AJAX call.
    Please refer to the weblogic whitepaper for the AJAX examples (weblogic-portal-jsf-whitepaper.pdf).
    The example works fine in the dev/build environment. When the portal server is accepting calls through Sun One webserver,
    the logs from the webserver show the response content type from the portal server as "text/x-netuix-json-comment-filtered; charset=ISO-8859-1"
    - I tried changing the content type to "application/json" in the JSF JSP (as per the example from the pdf file). Still the content type does not change.
    - The response from the portal server is suffixed with "\n\r\t". Because of the trailing space/carriage return chars in the portal server response, the sun one webserver is unable to parse (or) eliminate the "\r\n\d" chars to the browser. When the browser receives a response (with the trailing chars), the module.js (weblogic wrapper API for DISC calls) fails.
    - The module.js tries to check whether the response from portal server ends with "**/" but unfortunately, the weblogic protal server returns
    "/** %json response%**/\n\r\d"
    I found a workaround to this issue by having a filter for the JSF JSP which sets the content type as "application/json" and does a flush() before it makes a call to the JSF JSF which responsds to an ajax call. This works as the content type is set and flushed first so any attempt by the portal server to set as "text/x-netuix-json-comment-filtered" does not get reflected in the http response.
    Any support/fix from oracle regarding this will be helpful as most of the webserver integration with the portal server happens during the middle of the project build and might lead to a technical risk.
    Server details: WLPS 10.3, Sun One 7.0
    Thanks
    Ananth Krishnan

    The problem as you can see is only related to the URL because the webservice is not expecting the URL. Have you changed the wsdl also for the new scenario? The URL can be rechecked to the one present in the wsdl at bottom of it.
    Regards,
    Prateek

  • Unsupported response content type soap error

    I have created a java method that returns an array of a class type (my class is an EJB). Then created a web service using Apache soap as deployment platform (see my previous posting for details). Created client stub and client application to access the method and display the result on the screen. When running the client application I get the 'unsupported response content type' error.
    Can anyone help please, I am desparate!!!
    Thanks
    Alina

    I have created the following EJB class and another class that has got the web method:
    package orbatlistarraypackage;
    import java.util.Date;
    import java.io.Serializable;
    public class OrbatType implements java.io.Serializable
    public String orbatName;
    public int orbatID;
    public OrbatType()
    public void setOrbatName(String pName)
    orbatName = pName;
    public String getOrbatName()
    return orbatName;
    public void setOrbatID(int pID)
    orbatID = pID;
    public int getOrbatID()
    return orbatID;
    I have another class that is an array of the OrbatType class and has a webmethod that returns the array.
    package orbatlistarraypackage;
    import java.sql.*;
    public class OrbatListArray
    OrbatType [] orbatList;
    public OrbatListArray()
    private void setOrbatArray() throws Exception
    Connection cn = GetOrbatConnection.getConnection();
    Statement st = cn.createStatement();
    ResultSet rs = st.executeQuery("SELECT DESCRIPTION as ORBATNAME, ID AS ORBATID FROM ORBATS");
    //to get number of records to determine array size
    int noOfRecords;
    noOfRecords = 0;
    while(rs.next())
    noOfRecords = noOfRecords + 1;
    //new recordset as rs is once only forward reading recordset.
    ResultSet rsOrbat = st.executeQuery("SELECT DESCRIPTION as ORBATNAME, ID AS ORBATID FROM ORBATS");
    orbatList = new OrbatType[noOfRecords];
    int i;
    i = 0;
    while(rsOrbat.next())
    orbatList[i] = new OrbatType();
    orbatList.SetOrbatName(rsOrbat.getString("ORBATNAME"));
    orbatList[i].SetOrbatID(rsOrbat.getInt("ORBATID"));
    i = i + 1;
    rs.close();
    rsOrbat.close();
    @webmethod
    public OrbatType [] getOrbatListArray() throws Exception
    SetOrbatArray();
    for(int i=0;i<orbatList.length;i++)
    System.out.println(orbatList[i].GetOrbatName());
    System.out.println(orbatList[i].GetOrbatID());
    return orbatList;
    //dummy to just generate the web service
    //public int foo() {return 0;}
    /*this works
    public static void main(String arg[]) throws Exception
    OrbatListArray myArray = new OrbatListArray();
    myArray.GetOrbatListArray();
    Does this answer your question? If so can you help please?
    Thanks
    Alina

  • Response content type does get set.

    Hi All,
    I'm in the middle of converting an ISO-8859-1 web application to a UTF-8 encoded application. The application uses struts/tiles and runs on Sun One App server 7.0 and J2EE 1.3.
    I have made the following changes to the existing application.
    1. added acceptCharset="UTF-8" to struts forms.
    2. added <controller contentType="text/html; charset=UTF-8" /> to struts-config.xml
    3.have set the request.setCharacterEncoding("UTF-8"); on an abstract level of the all the actions.
    4.Created a new ServletFilter and included, response.setContentType("text/html;charset=UTF-8");
    5.Configured the database to work with Unicode characters.
    Now I can successfully save Unicode characters do the database. (I have tested this) However the problem is when retrieving information back to the web tier, html page shows me garbage instead of the Unicode characters. The browser default encode type is still selected to ISO-8859-1, and when I manually change this to UTF-8 garbage properly turns into Unicode. My suspicion is response content type is not getting set properly. This explains browser selecting ISO-8859-1 by default.
    Anyone have a clue? Point in the right direction would be highly appreciated.
    Thanks,
    Shaminda.

    I am seeing similar results.
    Amanda, did you find resolution?
    Herschel

  • Setting webservice response content type / charset header

    I have a webservice .war file.
    I need to set the content-type/charset http header and add another http header. I wrote a filter to do that and had partial success. The other header (pics-label) is indeed sent in the response with the correct value. However, setting the content type proved to be another matter.
    I read through the documentation that one can set the system property weblogic.webservice.i18n.charset=utf-8. However, this doesn't seem to work. The filter setting the header also doesn't work. It seems that weblogic has the final word on that. Only when I set the <web-service> element attribute charset="UTF-8" does the header gets back to the client.
    Due to deployment/build related issues which I won't get into, this is most annoying.
    If anyone has encountered a similiar issue and have a solution/workaround/thoughts I'll be glad to hear about it.
    P.S.
    Also tried -Dfile.encoding=UTF-8 but didn't do any good.
    Thanks.

    you don't define a charset for non-text file types. Excel files are not text files.

  • ** SOAP to SOAP call - HTTP 404 not found - invalid content type

    Hi friends,
    We have one scenario SOAP to SOAP call. It is synchronous interface. We are calling the WSDL.
    For some of the messages (not all), we are getting the error in SXMB_MONI
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found
    In the sender & receiver SOAP communication channel also, same error : SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found
    Friends, this error is not coming for all messages. For some of the messages it is coming. For example,
    10:50 - Message Processed Successfully
    10:54 - Message Processed Successfully
    10:59 - Error
    11:05 - Message Processed Successfully
    By looking threads and blogs, I implemented MessagesTransformBean in the receiver CC and added the  parameter Transform.ContentType as 'text/xml;charset=utf-8'.
    After implementing this also, error is coming for some of the messages.
    Can you kindly clarify friends, what could be the problem?
    Kind regards,
    Jegathees P.

    I'm in agreement with Stefan...
    If the problem is intermittent then the system is overloaded at certain times. You would probably need to do some JVM analysis to see the resource usage & look at increasing the memory.
    Regards, Trevor

  • In Applications preferences I assign Content Type qfx to iBank but every qfx download asks me what app I want to open the qfx file with! Why?

    Hard to add more detail... I open Firefox Applications preferences, assign "iBank" to Content Type "qfx file", yet every time I download a .qfx file Firefox opens a "Opening stmt.qfx" window asking what should Firefox do with it. Every time I select iBank and check the "Do this automatically from now on." box I also re-open Firefox preferences, and sure enough it says it will open qfx files with iBank, but it doesn't ever do it...AUGGH!

    If it affects multiple different FIs, then I wouldn't rule out a problem with Firefox. The problem is that the mimeTypes.rdf file has a messy structure, so I don't recommend editing it manually. Hopefully someone will have an alternative solution.

  • What is the content type for a plain text document.

    Hello :)
    I want to generate a plain text document for the user to either see, or to save to disk directly. What do I out for the setContentType MIME type for this?
    Thanks
    Jeff.

    text/plain
    zakir

Maybe you are looking for

  • Processo de Beneficiamento

    Boa noite, Como seria efetuado o processo de beneficiamento no Sap Business One? Exemplo: 1-Compro uma peça por R$10,00 e dou entrada em meu estoque. 2-Envio esta peça para beneficiamento e tenho um custo de R$ 5,00 Preciso que a peça retorne ao meu

  • Table structure and constraints in HTML table

    This script creates a html file (Structure.html) that contains structure of a specific table. When the following script is executed in sql * plus, it asks for the table name for which structure information is needed. after entering the table name, it

  • Where i was error

    When is am attempting to add more than 8 items the action is not loading. Here i show below, Action implement public class AddDesigAction extends Action {      String target = null;      public ActionForward execute(ActionMapping mapping,ActionForm f

  • SQL Server 2012/2014 DBA

    Hi, I have been working as system engineer for almost seven years. My primary focus is on Windows Server 2008 R2/2012 R2 technologies, Exchange Server 2010/2013, PowerShell (v2, v3 and v4), SCCM/SCOM 2012 R2, MDT 2012 U1/2013, IIS 8/8.5 and list goes

  • Nokia Lumia 521 3G not working

    Hi, I have a carrier unlocked Lumia 521 which I am trying to use in Asia. I am unable to connect to my carrier's 3G network even though network's carrier frequency is 2100. What could be the problem ? Thanks, Rishabh