Content-Type: message/rfc822?

So Mail on the iphone doesn't appear to be able to display inline the following content type
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Does anybody else know a way Mail can display the message as an attachment "inline?"

Robert,
I have received messages forwarded from Thunderbird and had them show up.
There must be some difference. When you are constructing the message yourself, are you following all the guidelines in RFC 1049, 1341, and 1521-1524? I think there might be other involved. Essentially as I understand it, and its been a while since I read the RFC's in full, that the message/rfc822 was to indicate an attachment, or portion that complied with the older rfc822 for backwards compatibility.
Hope this helps,
Nathan C.

Similar Messages

  • Hoe to read attachments of type MESSAGE/RFC822

    hi,
    How to read attachments in mails of type MESSAGE/RFC822
    this occurs when somebody puts "Forwarded mails" directly as an attachment inside the mail body itself..
    guyz ur help for this will be very much helpful..
    thanks
    sriram.B

    Hi,
    I am also struggling the same problem. When I am reading part of type message/rfc822 I am not able to get right content.
    Waiting for some reply.
    Subhash

  • Handling of base64 encoded body for message/rfc822

    As I understand the mime spec allows only "7bit", "8bit", or "binary" for the body of a "message/rfc822" entity
    However, it looks like Outlook is generating these under some circumstances (I have supplied a sample below). When attempting to read these via the JavaMail API the message content is empty and instead ends up in the header fields.
    Is there a workaround or setting to handle these base64 RFC822 attachments in JavaMail?
    Here's a stripped down sample of the message with the RFC822 attachment that I'm trying to handle:
    MIME-Version: 1.0
    X-Mailer: Microsoft Office Outlook 12.0
    Content-Type: multipart/mixed; boundary=00235400e66249e8d9047d9b2ab3
    --00235400e66249e8d9047d9b2ab3
    Content-Type: multipart/alternative;
         boundary=00235400e66249e8cf047d9b2ab1
    --00235400e66249e8cf047d9b2ab1
    Content-Type: text/plain;
         charset=iso-8859-1
    Content-Transfer-Encoding: 8bit
    ... [plain text version of message]
    --00235400e66249e8cf047d9b2ab1
    Content-Type: text/html;
         charset=iso-8859-1
    Content-Transfer-Encoding: quoted-printable
    ... [html version of message]
    --00235400e66249e8cf047d9b2ab1--
    --00235400e66249e8d9047d9b2ab3
    Content-Disposition: attachment
    Content-Type: message/rfc822
    Content-Transfer-Encoding: base64
    UmVjZW...
    --00235400e66249e8d9047d9b2ab3--

    Thanks for the info and suggested workaround. Would be neat to have a configurable option in 1.4.4 since info on the web suggests there are other email systems generating this rubbish.
    The customer who generated the emails is using Outlook 2007 with the Google Apps Sync for Outlook. I haven't been able to replicate in Outlook 2007 so might be related to the connector. I'll do some more testing before reporting the problem to the appropriate organization!

  • Returning content type of application/RFC822

    I have a servlet which needs to return a data stream that the browser
              shoule save as a file on the users local hard drive.
              My servlet seems to work just fine with Netscape 4.7 but IE always saves
              the original HTML Form page that called the Servlet.
              Is there a bug in WL/IE or am I doing something stupid
              here's my code - the method doing returning the data is the last one in
              this code - getResponseFromDispatch()
              Thanks
              Tom
              package com.nexterna.optiform.server.b2b;
              import javax.servlet.*;
              import javax.servlet.http.*;
              import java.io.*;
              import java.util.*;
              import javax.naming.*;
              import org.apache.log4j.Category;
              import org.apache.log4j.PropertyConfigurator;
              import org.w3c.tools.codec.Base64Encoder;
              import com.nexterna.optiform.server.ejb.dispatcher.*;
              import com.nexterna.optiform.common.*;
              import com.nexterna.ejb.usermanager.*;
              import com.nexterna.common.security.*;
              * Title: B2BInterfaces
              * Description:
              * Copyright: Copyright (c) 2001
              * Company:
              * @author
              * @version 1.0
              public class ExportResponseAsXML extends HttpServlet {
              private static final String CONTENT_TYPE = "text/html";
              /**Initialize global variables*/
              private Context jndiContext = null;
              private String poolName = "";
              private String providerURL = "";
              private String icf = "";
              private String command = null;
              private DispatcherServices dispatcher = null;
              private UserManager usermgr = null;
              private String ccode = "b2b.9284s3a41";
              private static Category cat =
              Category.getInstance(ExportResponseAsXML.class.getName());
              public void init(ServletConfig config) throws ServletException {
              super.init(config);
              try {
              InitialContext ic = new InitialContext();
              Context environment = (Context) ic.lookup("java:comp/env");
              PropertyConfigurator.configure(
              config.getInitParameter("LOG4J"));
              poolName =
              config.getInitParameter("POOLNAME");
              providerURL = config.getInitParameter("PROVIDER_URL");
              icf = config.getInitParameter("INITIAL_CONTEXT_FACTORY");
              catch (NamingException e) {
              cat.error("Exception in EJBCreate trying to lookup
              initializations");
              cat.error("Servlet Failed Initialization " + poolName + ":"
              + providerURL + ":" + icf);
              cat.error(e);
              getDispatchServices();
              getUserManager();
              if (cat.isDebugEnabled()) {
              cat.debug("Servlet Initialized " + poolName + ":" +
              providerURL + ":" + icf);
              /**Process the HTTP Get request*/
              public void doGet(HttpServletRequest request, HttpServletResponse
              response) throws ServletException, IOException {
              response.setContentType(CONTENT_TYPE);
              PrintWriter out = response.getWriter();
              out.println("<html>");
              out.println("<head><title>ExportResponseAsXML</title></head>");
              out.println("<body>");
              out.println("<p>The servlet has received a GET. This is the
              reply.</p>");
              out.println("</body></html>");
              /**Process the HTTP Post request*/
              public void doPost(HttpServletRequest request, HttpServletResponse
              response)
              throws ServletException, IOException {
              // first we need to get the user-id/password and create a user profile
              Base64Encoder b = new Base64Encoder(request.getParameter("passwd"));
              String pass = b.processString();
              if (usermgr == null)
              log("User manager is null!");
              UserProfile up = usermgr.getUserProfile(
              request.getParameter("userid").toUpperCase(), pass);
              if ((up == null) ||
              (!ccode.startsWith(request.getParameter("controlcode")))) {
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              out.println("<html>");
              out.println("<head><title>ExportResponse</title></head>");
              out.println("<body>");
              out.println("<p>Incorrect parameters");
              out.println("</body></html>");
              cat.error("incorrect parameters: " + up + " : " +
              request.getParameter("controlcode"));
              else {
              // there are 3 ways to export responses
              // 1. via the dispath id
              // 2. via the response id
              // 3. vis the form name and last retrieved date
              // the third one allows you to get all new responses for a form
              type
              // and for a time period.
              String rid = request.getParameter("rid");
              String did = request.getParameter("did");
              String formname = request.getParameter("formname");
              String date = request.getParameter("datefrom");
              boolean failed = false;
              if (cat.isDebugEnabled()) {
              cat.debug("rid " + rid);
              cat.debug("did " + did);
              cat.debug("formname " + formname);
              cat.debug("datefrom " + date);
              if (did != null)
              failed = getResponseFromDispatch(response, did);
              else if (rid != null)
              //failed = getResponse(response, rid);
              System.out.println("temp");
              else if (formname != null && date != null)
              //failed = getAllResponses(response, formname, date);
              System.out.println("temp");
              else {
              response.setContentType(CONTENT_TYPE);
              PrintWriter out = response.getWriter();
              out.println("<html>");
              out.println("<head><title>ExportResponseAsXML</title></head>");
              out.println("<body>");
              out.println("<p>No Responses available.</p>");
              out.println("</body></html>");
              if (failed) {
              response.setContentType(CONTENT_TYPE);
              PrintWriter out = response.getWriter();
              out.println("<html>");
              out.println("<head><title>ExportResponseAsXML</title></head>");
              out.println("<body>");
              out.println("<p>No Responses available due to error.</p>");
              out.println("</body></html>");
              /**Clean up resources*/
              public void destroy() {
              protected static Context getInitialContext(String purl, String picf)
              throws javax.naming.NamingException{
              cat.debug("URL: " + purl);
              cat.debug("Initial_context_factory: " + picf);
              Properties p = new Properties();
              // ... Specify the JNDI properties specific to the vendor.
              p.put(Context.INITIAL_CONTEXT_FACTORY, picf);
              p.put(Context.PROVIDER_URL, purl);
              return new javax.naming.InitialContext(p);
              protected void getDispatchServices() {
              DispatcherServicesHome home = null;
              try {
              //if (jndiContext == null)
              cat.debug("trying to get jndi - dispatcher");
              jndiContext = getInitialContext(providerURL, icf);
              cat.debug("doing lookup - dispatcher");
              Object obj = jndiContext.lookup("nexterna.DispatcherServices");
              cat.debug("getting home ref - dispatcher");
              home = (DispatcherServicesHome)
              javax.rmi.PortableRemoteObject.narrow(
              obj, DispatcherServicesHome.class);
              catch (javax.naming.NamingException ne)
              cat.error(ne);
              catch (Exception e)
              cat.error(e);
              try {
              cat.debug("home.create - dispatcher");
              dispatcher = home.create();
              catch (javax.ejb.CreateException ce)
              cat.error(ce);
              catch (java.rmi.RemoteException re)
              cat.error(re);
              catch (Exception e)
              cat.error(e);
              protected void getUserManager() {
              UserManagerHome home = null;
              try {
              if (jndiContext == null)
              cat.debug("trying to get jndi - usermanager");
              jndiContext = getInitialContext(providerURL, icf);
              cat.debug("doing lookup - usermanager");
              Object obj = jndiContext.lookup("nexterna.UserManager");
              cat.debug("getting home ref - usermanager");
              home = (UserManagerHome) javax.rmi.PortableRemoteObject.narrow(
              obj, UserManagerHome.class);
              catch (javax.naming.NamingException ne)
              cat.error(ne);
              catch (Exception e)
              cat.error(e);
              try {
              cat.debug("home.create - usermanager");
              usermgr = home.create();
              catch (javax.ejb.CreateException ce)
              cat.error(ce);
              catch (java.rmi.RemoteException re)
              cat.error(re);
              catch (Exception e)
              cat.error(e);
              protected boolean getResponseFromDispatch(HttpServletResponse resp,
              String id) {
              String s = null;
              try {
              //before we will export responses to a dispatch, the dispatch
              must be complete
              s = dispatcher.getDispatchStatusString(id);
              catch (java.rmi.RemoteException e)
              cat.error(e);
              return true;
              if (s.compareToIgnoreCase("Completed") != 0) {
              cat.debug("Dispatch status is not COMPLETED. Cannot export
              responses");
              return true;
              resp.setContentType("application/RFC822");
              resp.setHeader("Content-Type", "application/RFC822"); // set both
              ways to be safe
              resp.setHeader("Content-disposition",
              "attachment; filename=\"" + id + ".txt\"");
              cat.debug("Setting headers");
              cat.debug("Content-disposition",
              "attachment; filename=\"" + id + ".txt\"");
              HashMap responses = null;
              try {
              responses = dispatcher.getResponses(id,
              DispatcherServices.DISPATCH_ID);
              catch (java.rmi.RemoteException e)
              cat.error(e);
              return true;
              try {
              ServletOutputStream os = resp.getOutputStream();
              Iterator i = responses.values().iterator();
              while (i.hasNext()) {
              Object o = i.next();
              os.print(o.toString());
              cat.debug("Writing XML");
              cat.debug(o.toString());
              os.flush();
              os.close();
              catch (Exception e)
              cat.error(e);
              return true;
              return false;
              

              There is also a bug in IE5.5 SP0 and 1 where saving a document using the file download
              dialogue can indeed result in the HTML of the active frame being saved instead
              of the document.
              You can get IE 5.5 SP2 fix here:
              http://www.microsoft.com/windows/ie/download/ie55sp2.htm
              "Cameron Purdy" <[email protected]> wrote:
              >Hi Tom,
              >
              >I looked over the code. I think the problem is caused by the fact that
              >you
              >are doing a POST instead of a GET. IE doesn't GET anything back (OK,
              >I'm
              >totally technically wrong, but read the early HTTP specs and you'll see
              >the
              >"intent" of what I'm saying) so it just saves the current document. That's
              >my guess. Change to GET and it should work, since IE will know to save
              >the
              >incoming document.
              >
              >FWIW - You will often get more performance using a buffer of some sort
              >between your looping/writing and the response's stream.
              >
              >Peace,
              >
              >--
              >Cameron Purdy
              >Tangosol Inc.
              ><< Tangosol Server: How Weblogic applications are customized >>
              ><< Download now from http://www.tangosol.com/download.jsp >>
              >
              >
              >"Tom Gerber" <[email protected]> wrote in message
              >news:[email protected]...
              >> I have a servlet which needs to return a data stream that the browser
              >> shoule save as a file on the users local hard drive.
              >>
              >> My servlet seems to work just fine with Netscape 4.7 but IE always
              >saves
              >> the original HTML Form page that called the Servlet.
              >>
              >> Is there a bug in WL/IE or am I doing something stupid
              >>
              >> here's my code - the method doing returning the data is the last one
              >in
              >> this code - getResponseFromDispatch()
              >>
              >> Thanks
              >>
              >> Tom
              >>
              >> package com.nexterna.optiform.server.b2b;
              >>
              >> import javax.servlet.*;
              >> import javax.servlet.http.*;
              >> import java.io.*;
              >> import java.util.*;
              >> import javax.naming.*;
              >>
              >> import org.apache.log4j.Category;
              >> import org.apache.log4j.PropertyConfigurator;
              >> import org.w3c.tools.codec.Base64Encoder;
              >>
              >> import com.nexterna.optiform.server.ejb.dispatcher.*;
              >> import com.nexterna.optiform.common.*;
              >> import com.nexterna.ejb.usermanager.*;
              >> import com.nexterna.common.security.*;
              >> /**
              >> * Title: B2BInterfaces
              >> * Description:
              >> * Copyright: Copyright (c) 2001
              >> * Company:
              >> * @author
              >> * @version 1.0
              >> */
              >>
              >> public class ExportResponseAsXML extends HttpServlet {
              >> private static final String CONTENT_TYPE = "text/html";
              >> /**Initialize global variables*/
              >> private Context jndiContext = null;
              >> private String poolName = "";
              >> private String providerURL = "";
              >> private String icf = "";
              >> private String command = null;
              >> private DispatcherServices dispatcher = null;
              >> private UserManager usermgr = null;
              >> private String ccode = "b2b.9284s3a41";
              >>
              >> private static Category cat =
              >> Category.getInstance(ExportResponseAsXML.class.getName());
              >>
              >> public void init(ServletConfig config) throws ServletException {
              >> super.init(config);
              >>
              >> try {
              >> InitialContext ic = new InitialContext();
              >> Context environment = (Context) ic.lookup("java:comp/env");
              >>
              >> PropertyConfigurator.configure(
              >> config.getInitParameter("LOG4J"));
              >> poolName =
              >> config.getInitParameter("POOLNAME");
              >> providerURL = config.getInitParameter("PROVIDER_URL");
              >> icf = config.getInitParameter("INITIAL_CONTEXT_FACTORY");
              >> }
              >> catch (NamingException e) {
              >> cat.error("Exception in EJBCreate trying to lookup
              >> initializations");
              >> cat.error("Servlet Failed Initialization " + poolName +
              >":"
              >> + providerURL + ":" + icf);
              >> cat.error(e);
              >> }
              >>
              >> getDispatchServices();
              >> getUserManager();
              >>
              >> if (cat.isDebugEnabled()) {
              >> cat.debug("Servlet Initialized " + poolName + ":" +
              >> providerURL + ":" + icf);
              >> }
              >>
              >> }
              >> /**Process the HTTP Get request*/
              >> public void doGet(HttpServletRequest request, HttpServletResponse
              >> response) throws ServletException, IOException {
              >> response.setContentType(CONTENT_TYPE);
              >> PrintWriter out = response.getWriter();
              >> out.println("<html>");
              >> out.println("<head><title>ExportResponseAsXML</title></head>");
              >> out.println("<body>");
              >> out.println("<p>The servlet has received a GET. This is the
              >> reply.</p>");
              >> out.println("</body></html>");
              >> }
              >> /**Process the HTTP Post request*/
              >> public void doPost(HttpServletRequest request, HttpServletResponse
              >> response)
              >> throws ServletException, IOException {
              >>
              >> // first we need to get the user-id/password and create a user
              >profile
              >> Base64Encoder b = new
              >Base64Encoder(request.getParameter("passwd"));
              >> String pass = b.processString();
              >>
              >> if (usermgr == null)
              >> log("User manager is null!");
              >>
              >> UserProfile up = usermgr.getUserProfile(
              >> request.getParameter("userid").toUpperCase(), pass);
              >>
              >> if ((up == null) ||
              >> (!ccode.startsWith(request.getParameter("controlcode"))))
              >{
              >> response.setContentType("text/html");
              >> PrintWriter out = response.getWriter();
              >> out.println("<html>");
              >> out.println("<head><title>ExportResponse</title></head>");
              >> out.println("<body>");
              >> out.println("<p>Incorrect parameters");
              >> out.println("</body></html>");
              >> cat.error("incorrect parameters: " + up + " : " +
              >> request.getParameter("controlcode"));
              >> }
              >> else {
              >>
              >> // there are 3 ways to export responses
              >> // 1. via the dispath id
              >> // 2. via the response id
              >> // 3. vis the form name and last retrieved date
              >> // the third one allows you to get all new responses for a
              >form
              >> type
              >> // and for a time period.
              >> String rid = request.getParameter("rid");
              >> String did = request.getParameter("did");
              >> String formname = request.getParameter("formname");
              >> String date = request.getParameter("datefrom");
              >> boolean failed = false;
              >> if (cat.isDebugEnabled()) {
              >> cat.debug("rid " + rid);
              >> cat.debug("did " + did);
              >> cat.debug("formname " + formname);
              >> cat.debug("datefrom " + date);
              >> }
              >> if (did != null)
              >> failed = getResponseFromDispatch(response, did);
              >>
              >> else if (rid != null)
              >> //failed = getResponse(response, rid);
              >> System.out.println("temp");
              >>
              >> else if (formname != null && date != null)
              >> //failed = getAllResponses(response, formname, date);
              >> System.out.println("temp");
              >>
              >> else {
              >> response.setContentType(CONTENT_TYPE);
              >> PrintWriter out = response.getWriter();
              >> out.println("<html>");
              >> out.println("<head><title>ExportResponseAsXML</title></head>");
              >> out.println("<body>");
              >> out.println("<p>No Responses available.</p>");
              >> out.println("</body></html>");
              >> }
              >>
              >> if (failed) {
              >> response.setContentType(CONTENT_TYPE);
              >> PrintWriter out = response.getWriter();
              >> out.println("<html>");
              >> out.println("<head><title>ExportResponseAsXML</title></head>");
              >> out.println("<body>");
              >> out.println("<p>No Responses available due to error.</p>");
              >> out.println("</body></html>");
              >> }
              >>
              >> }
              >> }
              >> /**Clean up resources*/
              >> public void destroy() {
              >> }
              >>
              >> protected static Context getInitialContext(String purl, String picf)
              >> throws javax.naming.NamingException{
              >>
              >> cat.debug("URL: " + purl);
              >> cat.debug("Initial_context_factory: " + picf);
              >> Properties p = new Properties();
              >> // ... Specify the JNDI properties specific to the vendor.
              >> p.put(Context.INITIAL_CONTEXT_FACTORY, picf);
              >> p.put(Context.PROVIDER_URL, purl);
              >> return new javax.naming.InitialContext(p);
              >> }
              >>
              >>
              >> protected void getDispatchServices() {
              >> DispatcherServicesHome home = null;
              >> try {
              >>
              >> //if (jndiContext == null)
              >> //{
              >> cat.debug("trying to get jndi - dispatcher");
              >> jndiContext = getInitialContext(providerURL, icf);
              >> //}
              >>
              >> cat.debug("doing lookup - dispatcher");
              >> Object obj = jndiContext.lookup("nexterna.DispatcherServices");
              >> cat.debug("getting home ref - dispatcher");
              >> home = (DispatcherServicesHome)
              >> javax.rmi.PortableRemoteObject.narrow(
              >> obj, DispatcherServicesHome.class);
              >> }
              >> catch (javax.naming.NamingException ne)
              >> {
              >> cat.error(ne);
              >> }
              >>
              >> catch (Exception e)
              >> {
              >> cat.error(e);
              >> };
              >>
              >> try {
              >> cat.debug("home.create - dispatcher");
              >> dispatcher = home.create();
              >> }
              >> catch (javax.ejb.CreateException ce)
              >> {
              >> cat.error(ce);
              >> }
              >> catch (java.rmi.RemoteException re)
              >> {
              >> cat.error(re);
              >> }
              >> catch (Exception e)
              >> {
              >> cat.error(e);
              >> };
              >> }
              >>
              >> protected void getUserManager() {
              >> UserManagerHome home = null;
              >> try {
              >>
              >> if (jndiContext == null)
              >> {
              >> cat.debug("trying to get jndi - usermanager");
              >> jndiContext = getInitialContext(providerURL, icf);
              >> }
              >>
              >> cat.debug("doing lookup - usermanager");
              >> Object obj = jndiContext.lookup("nexterna.UserManager");
              >> cat.debug("getting home ref - usermanager");
              >> home = (UserManagerHome) javax.rmi.PortableRemoteObject.narrow(
              >> obj, UserManagerHome.class);
              >> }
              >> catch (javax.naming.NamingException ne)
              >> {
              >> cat.error(ne);
              >> }
              >>
              >> catch (Exception e)
              >> {
              >> cat.error(e);
              >> };
              >>
              >> try {
              >> cat.debug("home.create - usermanager");
              >> usermgr = home.create();
              >> }
              >> catch (javax.ejb.CreateException ce)
              >> {
              >> cat.error(ce);
              >> }
              >> catch (java.rmi.RemoteException re)
              >> {
              >> cat.error(re);
              >> }
              >> catch (Exception e)
              >> {
              >> cat.error(e);
              >> };
              >> }
              >>
              >> protected boolean getResponseFromDispatch(HttpServletResponse resp,
              >> String id) {
              >>
              >> String s = null;
              >> try {
              >> //before we will export responses to a dispatch, the dispatch
              >> must be complete
              >> s = dispatcher.getDispatchStatusString(id);
              >> }
              >> catch (java.rmi.RemoteException e)
              >> {
              >> cat.error(e);
              >> return true;
              >> }
              >>
              >> if (s.compareToIgnoreCase("Completed") != 0) {
              >> cat.debug("Dispatch status is not COMPLETED. Cannot export
              >> responses");
              >> return true;
              >> }
              >>
              >> resp.setContentType("application/RFC822");
              >> resp.setHeader("Content-Type", "application/RFC822"); // set
              >both
              >> ways to be safe
              >> resp.setHeader("Content-disposition",
              >> "attachment; filename=\"" + id + ".txt\"");
              >> cat.debug("Setting headers");
              >> cat.debug("Content-disposition",
              >> "attachment; filename=\"" + id + ".txt\"");
              >>
              >> HashMap responses = null;
              >> try {
              >> responses = dispatcher.getResponses(id,
              >> DispatcherServices.DISPATCH_ID);
              >> }
              >> catch (java.rmi.RemoteException e)
              >> {
              >> cat.error(e);
              >> return true;
              >> }
              >>
              >> try {
              >> ServletOutputStream os = resp.getOutputStream();
              >> Iterator i = responses.values().iterator();
              >> while (i.hasNext()) {
              >> Object o = i.next();
              >> os.print(o.toString());
              >> cat.debug("Writing XML");
              >> cat.debug(o.toString());
              >> }
              >> os.flush();
              >> os.close();
              >> }
              >> catch (Exception e)
              >> {
              >> cat.error(e);
              >> return true;
              >> }
              >>
              >> return false;
              >> }
              >>
              >
              >
              

  • SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP

    Hi,
    At present i am using JCAPS version 5.1.1
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-
    Type:text/html. Is this an error message instead of a SOAP response?
    I got above error message while invoking the webservice.
    My intention is to get HttpRequest from user and based on the input from user, a web service should be invoked. For this i am using BusinessProcess[einsight]
    In my BusinessProcess, i have HttpServer processRequest service,
    to receive HTTP requests and then i am passing the value of parameter received from http[As String] to next partner which is responsible for invoking a webservice.[Used a wsdl in client mode]
    I am able to get http request successfully , but i got error while invoking web service.
    Please let me know, what to do for rectifying error.

    Although this is an aged topic, this is plaguing our development efforts currently. I have successfully created a webservice that can be executed externally using the generated wsdl but I am unable to get a JCD to execute the WS without getting the following error:
    [#|2007-10-09T19:51:02.700-0700|SEVERE|IS5.1.2|javax.xml.messaging.saaj.soap|_ThreadID=32606; ThreadName=Worker: 34758;|SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:296)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:146)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.rpc.client.http.HttpClientTransport.readResponse(HttpClientTransport.java:169)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:83)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:69)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at tp6.ExecutePortType_Stub.opGetControl(ExecutePortType_Stub.java:66)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at tp6.ExecutePortType_opGetControl.invoke(ExecutePortType_opGetControl.java:188)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.stc.wsclient.runtime.impl.WSDLOtdDelegateImpl.invoke(WSDLOtdDelegateImpl.java:78)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at urn_stc_egate_jce_AI_WebServices_GetControl_jcdGetControl.OpGetControl.invoke(urn_stc_egate_jce_AI_WebServices_GetControl_jcdGetControl.OpGetControl:113)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at AIWebServicesTEST_GetControl_WS.jcdTEST_GetControl_WS.start(jcdTEST_GetControl_WS.java:21)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at TEST_GetControl_WS.cmTEST_GetControl_WS_jcdTEST_GetControl_WS1.jcdTEST_GetControl_WS_Runtime_Handler.handleRequest(jcdTEST_GetControl_WS_Runtime_Handler.java:369)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.GeneratedMethodAccessor4463.invoke(Unknown Source)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at java.lang.reflect.Method.invoke(Method.java:615)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:135)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at $Proxy108.handleRequest(Unknown Source)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.sendMessage(STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.java:213)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.onContents(STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.java:100)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.GeneratedMethodAccessor4462.invoke(Unknown Source)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at java.lang.reflect.Method.invoke(Method.java:615)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at java.security.AccessController.doPrivileged(AccessController.java:275)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:940)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:948)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:42)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:136)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at $Proxy111.onContents(Unknown Source)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.stc.schedulerotd.scheduleradapter.FileReaderWork.run(FileReaderWork.java:77)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:54)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)|#]
    [#|2007-10-09T19:51:02.704-0700|SEVERE|IS5.1.2|javax.xml.messaging.saaj.soap|_ThreadID=32606; ThreadName=Worker: 34758;|SAAJ0535: Unable to internalize message|#]
    [#|2007-10-09T19:51:02.704-0700|INFO|IS5.1.2|STC.eGate.CMap.Collabs.TEST_GetControl_WS.cmTEST_GetControl_WS_jcdTEST_GetControl_WS1.AIWebServicesTEST_GetControl_WS.jcdTEST_GetControl_WS|_ThreadID=32606; ThreadName=Worker: 34758;|+++EXCEPTION = HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message; nested exception is:
         HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message|#]
    [#|2007-10-09T19:51:02.704-0700|INFO|IS5.1.2|STC.eGate.CMap.Collabs.TEST_GetControl_WS.cmTEST_GetControl_WS_jcdTEST_GetControl_WS1.AIWebServicesTEST_GetControl_WS.jcdTEST_GetControl_WS|_ThreadID=32606; ThreadName=Worker: 34758;|+++STACK     = [Ljava.lang.StackTraceElement;@31de31de|#]
    [#|2007-10-09T19:51:02.705-0700|INFO|IS5.1.2|com.stc.codegen.OTDImpl.runtime.ejb.OTDService|_ThreadID=32606; ThreadName=Worker: 34758;|terminate each service|#]
    Is anybody else having this same error and how was it resolved? Both my client and server settings seems to be in sync. My only iffy piece is the servlet context. For both client and server external components, host, port, servlet context match. What am I missing??

  • Sharepoint error - Search Issue - The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).

    i see this error everywhere - In ULS logs, on site. On the site > Site settings > search keywords; I see this - 
    The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 7.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 40px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px; border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696; border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;'.
    I am facing issues in searching, my managed metadata service is not running, search results page throws internal error. Any Idea why this above error comes.
    P.S: We use windows authentication in our environment.

    Hi IMSunny,
    It seems you have solved this issue based on your another post.
    http://social.technet.microsoft.com/Forums/en-US/aa468ab0-1242-4ba8-97ea-1a3eb0c525c0/search-results-page-throws-internal-server-error?forum=sharepointgeneralprevious
    Thanks
    Daniel Yang
    TechNet Community Support

  • Error consuming Web service - content type text/xml;charset=utf-8 of the response message does not match the content type of the binding

    Hi all,
    We are trying to interact with Documentum server through DFS exposed WCF which communicates through port 9443 and we are provided with documentum issued Public Key certificates. We have successfully imported the certificates in client machine and configured
    the bindings as below in our .Net web application config file.
    <system.serviceModel>
    <bindings>
    <wsHttpBinding>       
    <binding
    name="ObjectServicePortBinding1">
    <security
    mode="Transport">
    <transport
    clientCredentialType="None"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    <binding
    name="QueryServicePortBinding">
    <security
    mode="Transport">
    <transport
    clientCredentialType="None"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>
    Also, we set the message encoding as MTOM and the wcf client object initialization code snippet is as below,
    ObjectServicePortClient
    serviceClient = new
    ObjectServicePortClient(new
    WSHttpBinding("ObjectServicePortBinding1"),
    new
    EndpointAddress(UriUtil.ObjectServiceUri));
    if (serviceClient.Endpoint.Binding
    is
    WSHttpBinding)
       WSHttpBinding
    wsBinding = serviceClient.Endpoint.Binding as
    WSHttpBinding;
    wsBinding.MessageEncoding =
    "MTOM".Equals(transferMode) ?
    WSMessageEncoding.Mtom :
    WSMessageEncoding.Text;
    serviceClient.Endpoint.Behaviors.Add(new
    ServiceContextBehavior(Config.RepositoryName,
    Config.DocumentumUserName,
    Config.DocumentumPassword));
    When we execute the above code, we are getting error message as below,
    Exception: The content type text/xml;charset=utf-8 of the response message does not match the content type of the binding (multipart/related; type="application/xop+xml"). If using a custom encoder, be sure that the IsContentTypeSupported
    method is implemented properly. The first 407 bytes of the response were: '<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"><faultcode>S:VersionMismatch</faultcode><faultstring>Couldn't
    create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelope </faultstring></S:Fault></S:Body></S:Envelope>'
    Then, we changed the bindings as below
    <system.serviceModel>
    <bindings>
    <wsHttpBinding>       
    <binding
    name="ObjectServicePortBinding1">
    <security
    mode="Transport">
    <transport
    clientCredentialType="Certificate"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    <binding
    name="QueryServicePortBinding">
    <security
    mode="Transport">
    <transport
    clientCredentialType="
    Certificate"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>
    We are getting another error message,
    Exception: The client certificate is not provided. Specify a client certificate in ClientCredentials.
    Any pointers on resolving this issue would be highly helpful.
    Thanks

    Hi Dhanasegaran,
      As per your case, the corresponding details which may guide you to resolve this issue:
    1. First of all, you can try to call the wcf service directly from the browser & check where it will point out the correct location.
    2. In config file ,Set IncludeExceptionDetailInFaults to true to enable exception information to flow to clients for debugging purposes .
    Set this to true only during development to troubleshoot a service like below :
    <serviceBehaviors>
      <behavior name="metadataAndDebugEnabled">
        <serviceDebug
          includeExceptionDetailInFaults="true"   
    />
        <serviceMetadata
          httpGetEnabled="true"
          httpGetUrl=""   
    />
      </behavior>
    </serviceBehaviors>
    3. I suggest you to change that <security mode ="TransportWithMessageCredential"> instead of <security mode ="Transport">
     for more information, refer the following link :
    https://msdn.microsoft.com/en-us/library/aa354508(v=vs.110).aspx

  • WCF returning "The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8)"

    I have a WCF service I am trying to run on a new installation of 64-bit Windows Server 2008 IIS. Although it runs fine on Windows 2003 IIS, it is throwing the error in the thread title, which appears to be a server config issue, but I am not sure. Googling and searching the MSDN forums did not turn up a solution. I tried running WCF Logging, but that didn't help either.
    Does anyone have any suggestions on how to solve this probelm?
    Here is the error:
    The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">

    I have the same issue on Windows 7 machine. The service works fine using a SoapUI client but a .Net client faisl to get a response.
    Hi,
    I have a WCF service which works perfectly when using SoapUI but throws error in my .Net client.
    {"The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first
    1024 bytes of the response were: '<HTML><HEAD><link rel=\"alternate\" type=\"text/xml\" href=\"http://xyz.mysite.com/ysa/Broker.svc?disco\"/><STYLE type=\"text/css\">#content{ FONT-SIZE: 0.7em;
    PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT:
    5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP:
    0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT: -15px}</STYLE><TITLE>Broker
    Service</TITLE></HEAD><BODY><DIV id=\"content\"><P class=\"head'."}
    I have the same service hosted on my local machine and when I point to the local service I can execute the operation with no issues. The message encoding is Soap11. I tried changing to Soap12 but I get exact same error. Any ideas greatly appreciated.
    I do have windows Activation Features installed and I am using .Net Framework 4.
    Thanks
    Sofia Khatoon

  • The content type of the response message does not match the content type of the binding

    I have written an ASP.Net web service which returns english,chinese and portuguese data. Everything seemed working fine until the method retunred only english data. The moment it returns english, chinese and portuguese data I get the error:
    The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using
    a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: 
    '<!DOCTYPE html> <html>     <head>         <title>Runtime Error</title>
            <meta name="viewport" content="width=device-width" />         <style>          body {font-family:"Verdana";font-weight:normal;font-size:
    .7em;color:black;}           p {font-family:"Verdana";font-weight:normal;color:black;margin- -5px}          b {font-family:"Verdana";font-weight:bold;color:black;margin-
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon
    }          pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}          .marker {font-weight:
    bold; color: black;text-decoration: none;}          .version {color: gray;}          .error {margin-bottom: 10px;}          .expandable
    { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }          @media screen and (max-width: 639px) {           pre { width: 440px; o'.
    It is not written using WCF ... any workarounds?!
    Thank you.

    Hi Raj Krish,
    For ASP.NET related issue, please post to the following forum:
    http://forums.asp.net/
    Regards,
    Barry
    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.

  • How to Read a Message with Content Type multipart/alternative

    Hi ,
    I need to write a POP3 Client to read email message ..but some times the messages comes with content type multipart/alternative
    how to parse it and read only one of the content :
    for example :
    This is a multi-part message in MIME format.
    ------=_NextPart_000_12C25_01C6B64F.09226B00
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit
    Assignment to workgroup Name 1 : L2 SD Service Delivery Apps Spt
    Open CI Search Code : HPSD
    Description : tesat
    General Information :
    Is the workgroup owner Aware of the addition to Workgroup : Yes
    Workgroup to be added :
    L2 SD Service Delivery Apps Spt
    ------=_NextPart_000_12C25_01C6B64F.09226B00
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <br><P>Assignment to workgroup Name 1 : L2 SD Service Delivery Apps =
    Spt</P>
    <P>Open CI Search Code : HPSD</P>
    <P>Description : tesat</P>
    <P>General Information :</P>
    <P>Is the workgroup owner Aware of the addition to Workgroup : Yes</P>
    <P>Workgroup to be added :</P>
    <P>L2 SD Service Delivery Apps Spt</P>
    <P> </P>
    <P> </P>
    <P> </P>
    <P> </P>
    <P> </P>
    ------=_NextPart_000_12C25_01C6B64F.09226B00--
    The Same message is in text as well as HTML so not sure how to read it .
    currently my program is as follows
    for (int i = 0; i < found.length; i++) {
    Message m = found;
    // Get some headers
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
    System.out.println(date + "\t" + from[0] + "\t" +
    subj + "\t" + mimeType);
    Object o = m.getContent();
    if (o instanceof String) {
    System.out.println("**This is a String Message**");
    System.out.println((String)o);
    } else if (o instanceof Multipart) {
    System.out.print("**This is a Multipart Message. ");
    Multipart mp = (Multipart)o;
    int count3 = mp.getCount();
    System.out.println("It has " + count3 +
    " BodyParts in it**");
    for (int j = 0; j < count3; j++) {
    // Part are numbered starting at 0
    BodyPart b = mp.getBodyPart(j);
    String mimeType2 = b.getContentType();
    System.out.println( "BodyPart " + (j + 1) +
    " is of MimeType " + mimeType);
    Object o2 = b.getContent();
    if (o2 instanceof String) {
    System.out.println("**This is a String BodyPart**");
    System.out.println((String)o2);
    } else if (o2 instanceof Multipart) {
    System.out.print(
    "**This BodyPart is a nested Multipart. ");
    Multipart mp2 = (Multipart)o2;
    int count2 = mp2.getCount();
    System.out.println("It has " + count2 +
    "further BodyParts in it**");
    } else if (o2 instanceof InputStream) {
    System.out.println(
    "**This is an InputStream BodyPart**");
    } //End of for
    } else if (o instanceof InputStream) {
    System.out.println("***********************************This is an InputStream message**");
    InputStream is = (InputStream)o;
    /* if(m.getContentType().equalsIgnoreCase("multipart/alternative")) {
    MimeMultipart mp = new MimeMultipart();
    // Assumes character content (not binary images)
    } else {*/
    BufferedReader reader
    =new BufferedReader(new InputStreamReader(is));
    String thisLine=reader.readLine();
    while (thisLine!=null) {
    System.out.println(thisLine);
    thisLine=reader.readLine();
    So when the Content TYpe is multipart/alternative it goes into InputStream message .
    any help and ideas to handel such situations ?
    Thanks
    San
    Message was edited by:
    sanrosh_95

    Try reposting that with tags (replace the {'s with ['s).
    Long story short, I think the FAQ and examples would go a long way towards explaining this, but you basically can check the content type, or check if the content contains parts, and parse each part separately.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service. Can anyone please
    help me.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service.
    HI Arivazhagan K,
    Could you give some explanation about what you modified? according the to error message, this is "resource is not found issue".
    Best regards,
    Angie
    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.

  • Error message: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidd

    Hi All,
    My scenario is Proxy to File
    So in-order to test the scenario i am sending the Data from RWB using TestMessage
    i have given the sender and receiver details.
    and the payload i am passing is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_QAStatusReport xmlns:ns0="http://XXXX.com/xi/SARERP/IF0100_QAStatusReport/100">
       <RECORD_STRCUTURE>
          <RECORD>
             <INSP_LOT>New for EU</INSP_LOT>
             <MATNR>00000500418</MATNR>
             <SHORT_TEXT> caps SE</SHORT_TEXT>
             <PLANT>0082</PLANT>
             <BATCH>59756</BATCH>
             <VENDOR_BATCH>59756</VENDOR_BATCH>
             <INQUAL_INSP>1940</INQUAL_INSP>
             <SSQUAL_INSP>0</SSQUAL_INSP>
             <VENDOR/>
             <DATELOT_CREA>7/20/2011</DATELOT_CREA>
             <DAYS_QA>26</DAYS_QA>
             <COMMENTS>Pending Import Testing</COMMENTS>
          </RECORD>
       </RECORD_STRCUTURE>
    </ns0:MT_QAStatusReport>
    the error i am facing is
    Error while sending message: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden
    can any one suggest me how to solve the isssue
    Thanks&Regards
    Sai

    I had received similar error , request you to also check following,
    1. while sending the message from IE placed in RWB, just check the URL in the Test Message tab, its possible that this PI is installed just now and its settings are not done correctly. In this ask the owner or the BASIS to change it to correct URL.
    for example it should look something like - http://sdndevdpi001:50100/sap/xi/engine?type=entry

  • Content type for soap messages

    Hi,
    i'm picking up a file via nfs, taking the content of the file and i'm trying to send the content via SOAP to a Webservice. i'm encountering the foloowing error message in the comm. channel monitoring:
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN
    So how/where can i set TEXT/XML in XI 3.0? Or did i made another misconfiguration where i'm not aware of? Any help appreciated.

    Hi,
    thanks for the quick answers.
    The Werbservice is MS CRM Dynamics. The "GUI" is still working. so the webservice is active and alive.
    I want to query the CRM, so i sent a fetch statement to file, which is being picked up and sent as SOAP message to the webservice.
    With point 6 in the mentioned blog the error message in the rwb is gone now, but the message in SXMB_MONI is flagged red and i'm struggling to finfd out what the next error is....may be someone can point out where to look at

  • Can I create an email message content type?

    Just want to be able to select me email message from the New Document drop down in the library.
    It doesn't work. 
    So I tried a link content type to an email message in a document library and that doesn't work either.
    Has anyone got any ideas for this?
    Thanks.
    Mel

    Hi Cameron
    I have a library that I like to put email messages into.
    But I would like to create an email message that I use all the time. So, I was hoping I could add the message as a content type and have it available in the dropdown from 'New Document', just like other Word doc content types.
    It doesn't seem to like this, gives me a message:
    So I was hoping there was a work around somehow.
    Mel
    Mel

  • Running mac OS 10.5.8, Using Mail 3.5, Text encoding set to Automatic. messages arrive, but the message is 200  lines of alphanumerics. Top says Content-Type: text/plain;      charset=utf-8 Content-Transfer-Encoding: base64.

    I use Mail 3.6 and some incoming email messages start with
    Content-Type: text/plain;
        charset=utf-8
    Content-Transfer-Encoding: base64
    then go on to 200+ lines of alphanumerics (mostly upper and lower case letters). 
    What causes this problem, how can I fix it?
    Text encoding is set to Automatic, and  I'm not using any fancy fonts.  Senders are usually
    sending from PCS that may well use Outlook.
    Rosemary C.  Chicago

    Does it look something like this...
    JVBERi0xLjYNJeLjz9MNCjMyNCAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNi9M
    ZW5ndGggMTU4L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQohx6hAp7lMT4WVkGpP6z3UpIQfO4eN
    QRbgjhTqX5mfaabWcvQk/hLnUX6MpKiXwist+RiaiGrzj8XGSNFXuvETWsnoPoV687Exvzo1KYV4
    jIuPmKXlRJvESTE/K2htJihPMS/o6fo3i+nHbTBRWpyrXSfmCPVEgsAzcyECvSU0Rz4MJsEXpdu6
    6u/hg1hlPkb2gpkUQJv50YtWhkD/Jg0KZW5kc3RyZWFtDWVuZG9iag0zMjUgMCBvYmoNPDwvRmls
    Check Mail>View>Message, does it say View Raw Source, Long Headers, or Default Headers?
    See if view Plaintext version helps.

Maybe you are looking for