B2B problem: unaccepted content type

Hi all,
I am trying to understand the steps from a configured scenario to a web service.
So what I do is, I create a web service using the wizard in the Integration Directory, save the WSDL file locally on my hard drive and create a standalone proxy (with a little test client) using the Netweaver Developer Studio. This works fine as long as I stay within the SLD.
Now I configured a scenario where I replaced the sender system by a B2B party but when I run my little test client all I get is an error "unaccepted content type" and message does not reach the XI.
I configured a B2B party as follows:
- Name = Company_A
- Business Service = Request
- Sender Channel = SOAP
  using HTTP, SOAP 1.1 protocols
  Adapter Engine = Integration Server
- as default XI parameters I put in name and namespace of the B2B party's request interface.
I believe my receiver/sender agreements to be correct as well as the interface/receiver determination.
How can I check and test the SOAP adapter to see that it is up and running (and accessible, I am working in an Intranet to reach the SLD, but there is no Internet access)?
Please advise,
Eugen.
Message was edited by: Eugen Furler

Hi Eugen,
You can check your SOAP Adapter, if it is running or not in the Runtime Workbench page. Login to RWB and click on Component Montioring Link. Display the components and click on Adapter Engine. On the bottom you click on the button Adapter Monitoring.
Thanks
Prasad

Similar Messages

  • Web Serice -error message-Unaccepted content type ????

    Hi all,
    I created a webservice for Function module and when i am passing values in the Web Service i am getting error message ...
    An error has occurred. Maybe the request is not accepted by the server:
    <b>Unaccepted content type</b> (text/html;charset=utf-8) !
    <b>Request:</b>POST /sap/bc/srt/rfc/sap/ZBAMS_WS_EMPLOYEE_UPDATE?sap-client=200 HTTP/1.1
    Host: tybl102028.tyb.kpmgbsc.net:8002
    Content-Type: text/xml; charset="UTF-8"
    Connection: close
    Content-Length: 657
    SOAPAction: ""
    <?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header><sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap
    /features/session/"><enableSession>true</
    enableSession></sapsess:Session></SOAP-ENV:Header><SOAP-ENV:Body><ns1:ZbamsEmployeeUpdate xmlns:ns1='urn:sap-com:document:sap:soap:functions:mc-style'><BigDate>2006-04-01</BigDate><EmpId>00000012</EmpId><EndDate>2006-04-24</EndDate><WbsElement></WbsElement></ns1:ZbamsEmployeeUpdate></SOAP-ENV:Body></SOAP-ENV:Envelope>
    <b>Response:</b>
    HTTP/1.1 500 Internal Server Error
    content-type: text/html;charset=utf-8
    content-length: 3130
    can any one help me whats wrong?
    Thanks for ur time.
    Murali.

    Hi I am testing this using j2ee.
    let me explain more information..
    I created BAPI  and for that bapi I crated Web Service and, and when I test from BAPI it works fine.. so now I am testing this from web service, after passing values in web service I am checking in debug mode, I have a call transaction statement in my BAPI code... once cursor comes into the call transaction statement it skips executing further statement and coming out from the debugging mode(it happens only when I go to debug from passing values in web service, and I tested call transaction giving values  A and N modes), if passing values directly in BAPI then it works fine no issues.
    please let me know if any ideas.
    Thanks for u r time
    Murali.

  • Problem with content type

    Hi All,
    I have set the content type to text/html by using the following statement in jsp
    <%@page contentType=�text/html�%>And if I give
    out.println("<a href="aaa.do">Click here</a>"); it is showing me a link to click here that's fine.
    But my problem here is that I am using struts <bean:write name="user1" property="subject"/> tag and the data in the subject field is Click here i.e the output from the database, now its not showing the link instead displaying every thing even if the content type is set. How can I achieve this? please help me out.

    in your bean:write tag try setting the filter attribute to false, like so
    <bean:write name="xxx" property="xxx" filter="false"/>
    http://struts.apache.org/1.2.9/userGuide/struts-bean.html#write

  • Problem of content-type in wsdp

    Hi,
    I am using jwsdp (jaxws) tool for SOAP services. I am getting an exception
    javax.xml.ws.WebServiceException: No Content-type in the header!
    when I tried to send a request out, now the same wsdls/xsds were working with Axis2 and I was able to send request successfully using axis2 tool.
    Is there anyway that we can set the content-type in the http header in case of jaxws.
    can anybody please suggest the solution to it.
    Thanks
    Edited by: amitbanerjee on Oct 3, 2007 12:11 AM

    Hi,
    Generally , The Movement type from the SCHEDULE LINES will be copied into the Delivery document
    If u want the movement type 651 in the Return delivery document, you have to mantain the 651 in the DN schedule lines,
    In standard  DN will have 651 movement type,
    regards,
    santosh

  • Problem with data types

    Hello gurus!!
    We're having problems starting our WF because a requirement asked that all the prices must have decimals, so we changed the data types from number to dec, and the following error then appeared:
    Excepcion CREa20:Error al ejecutar el metodo Inicia WorkFlow del proxy WorkFlowHPProxy / java.rmi.RemoteException: Service call exception; nested exception is:      java.lang.Exception: Call to returned http code 500 (Internal Server Error) with unacceptable content type (text/html; charset=utf-8).<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode> soap:Server </faultcode><faultstring xml:lang="en"> RABAX occurred on server side </faultstring><detail><sap:Rabax xmlns:sap="http://www.sap.com/webas/710/soap/runtime/abap/fault/generic"><MESSAGE>The current statement requires a character-type data object.</MESSAGE><SYMSGID></SYMSGID><SYMSGTY></SYMSGTY><SYMSGNO></SYMSGNO><SYMSGV1></SYMSGV1><SYMSGV2></SYMSGV2><SYMSGV3></SYMSGV3><SYMSGV4></SYMSGV4><SYREPID>CL_SWF_CNT_SERVICE============CP</SYREPID><SYTCODE>                    </SYTCODE><SYDYNNR>0010</SYDYNNR><SYUNAME>UG_CREA20HP</SYUNAME><SYMANDT>135</SYMANDT><SYLANGU>E</SYLANGU><SYECODE>558</SYECODE><SYHOST>sapnwd01</SYHOST><SYSYSID>NWD</SYSYSID><SYOPSYS>SunOS</SYOPSYS><SYDBSYS>ORACLE</SYDBSYS><SYSAPRL>700</SYSAPRL><SYXPROG>SAPLTX_HANDLER</SYXPROG><SYXFORM>                              </SYXFORM><SYDATUM>20090805</SYDATUM><SYUZEIT>114750</SYUZEIT><SYETEXT>RABAX_STATE</SYETEXT><ERRORCODE>OBJECTS_NOT_CHARLIKE</ERRORCODE><PATHTRANS>/sap/bc/srt/rfc/sap/ZWAPI_CREA20_HP</PATHTRANS><MESSAGE>The current statement requires a character-type data object.</MESSAGE><ERRORCODE>OBJECTS_NOT_CHARLIKE</ERRORCODE></sap:Rabax></detail></soap:Fault></soap:Body></soap:Envelope>
    Any ideas would be appreciated.
    Regards IA

    Looks like you have a custom function that is returning this error. Why don't you try using a character type element instead of numerical or decimal.
    Derrick
    Banks & Company, LLC

  • Content Type error accessing WebService

    Hi
    I imported a webservice model. If I try to call the
    webservice in my WD application, I get the following error:
    Unaccepted content type (text/html; charset=iso-8859-1)
    Anybody seen this before?
    I'm on 6.40 SP8
    BR
    Raphael

    Hi Valery,
    Iget the error-Message:
    Detailed Error Information
    Detailed Exception Chain
    com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call
    exception; nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:280)
    at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:222)
    at
    com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:481)
    at
    com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:159)
    at
    com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
    at
    com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
    at
    com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
    at
    com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
    at
    com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
    at
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
    at
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
    at
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
    java.net.ConnectException: Connection refused: connect
    at
    com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:85)
    at
    com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
    at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:277)
    ... 27 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at java.net.Socket.<init>(Socket.java:309)
    at java.net.Socket.<init>(Socket.java:124)
    at
    com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initStreamsFromSocket(HTTPSocket.java:580)
    at
    com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initializeStreams(HTTPSocket.java:439)
    at
    com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getOutputStream(HTTPSocket.java:397)
    at
    com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getRequestStream(HTTPTransport.java:314)
    at
    com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:469)
    at
    com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1233)
    at
    com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
    ... 29 more
    Thanks Oliver

  • Content type problem for 'does not appear to be a proper arcive'

    Hi all,
    The following code will create a ZipOutputStream using ByteArrayOutputStream (not FileOutputStream) and attach the outputstream to a MIME multipart email using ByteArrayDataSource (so the file never exists physically).
    It works and sends the email but the zip 'does not appear to be a valid archive' even though it looks about the right size. If I do the same and use FileOutputStream to create a physical file it works OK. I think it is an issue with the content type, or maybe this just isn't possible!
    I have tried:
    byteArray.toByteArray(),
    byteArray.toString().getBytes() and application/zip & application/unknown.
    Can anyone help or suggest an alternative way to create a 'in-memory' zip file that can then be emailed?
    Many thanks
        // Specify files to be zipped
                                                                 String[] filesToZip = new String[3];
                                                                 filesToZip[0] = "C:\\Program Files\\NetBeans3.6\\firstfile.txt";
                                                                 filesToZip[1] = "C:\\Program Files\\NetBeans3.6\\secondfile.txt";
                                                                 filesToZip[2] = "C:\\Program Files\\NetBeans3.6\\thirdfile.txt";
                                                                 byte[] buffer = new byte[18024];
                                                                 // Specify zip file name
                                                                  String zipFileName= eq_rt.getReportName() + ".zip";
                                                                 try {
                                                                   // Create ZipOutputStream to store the FileOutputStream
                                                                   //ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName));
                                                                   ByteArrayOutputStream byteArray = new ByteArrayOutputStream();                                                             
                                                                   ZipOutputStream out = new ZipOutputStream(byteArray);                                                              
                                                                   // Set the compression ratio
                                                                   out.setLevel(Deflater.DEFAULT_COMPRESSION);
                                                                   // iterate through the array of files, adding each to the zip file
                                                                   for (int a = 0; a < filesToZip.length; a++) {
                                                                     System.out.println(a);
    //                                                                 // Associate a file input stream for the current file
                                                                     FileInputStream in = new FileInputStream(filesToZip[a]);
                                                                     // This ROCKS as it is passing a array into the text file .getBytes() seems
                                                                     // to be the KEY in getting ByteArrayInputStream to WORK
                                                                     String strSocketInput = "TAIWAN";
                                                                     ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
                                                                     //ByteArrayInputStream baIn = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc() ) );                                                               
                                                                     // Add ZIP entry to output stream.
                                                                     out.putNextEntry(new ZipEntry(filesToZip[a]));
                                                                     // Transfer bytes from the current file to the ZIP file
                                                                     int len;
                                                                     while ((len = baIn.read(buffer)) > 0)
                                                                     out.write(buffer, 0, len);
                                                                     // Close the current entry
                                                                     out.closeEntry();
                                                                     // Close the current file input stream
                                                                     baIn.close();                                                   
                                                                  // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                   //DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream");   
                                                                    DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream" );
                                                                   // Create a new MIME bodypart
                                                                   BodyPart attachment = new MimeBodyPart();
                                                                   attachment.setDataHandler(new DataHandler(sourcezip));
                                                                   attachment.setFileName(zipFileName);                       
                                                                   /* attach the attachemnts to the mail */
                                                                   multipart.addBodyPart(attachment);                                                                
                                                                   // Close the ZipOutPutStream
                                                                   out.close(); 

    Many thanks Dr Clap. Moving the Closing the ZipOutputStream before I attached it to the email solved my problem.
                                          /* Close the ZipOutPutStream (very important to close the zip before you attach it to the email) Thanks DrClap */
                                                                    out.close();                                                    
                                                                    /* Create a datasource for email attachment */
                                                                    // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                    DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/zip" );
                                                                    /* Create a new MIME bodypart */
                                                                    BodyPart attachment = new MimeBodyPart();
                                                                    attachment.setDataHandler(new DataHandler(sourcezip));
                                                                    attachment.setFileName(zipFileName);                       
                                                                    /* attach the attachemnts to the mail */
                                                                    multipart.addBodyPart(attachment);  

  • XML Parser and Content-type/encoding problem

    I've write a little and simple XML parser and a simple "trasformer" that recive an XML file and an XSL one and return HTML, here is the code:
    public static String toHTML(Document doc, String xslSource){
            ByteArrayOutputStream testo = new ByteArrayOutputStream();
            try{
                DOMSource source = new DOMSource(doc);
                TransformerFactory tFactory = TransformerFactory.newInstance();
                System.out.println("----> " + xslSource);
                Transformer transformer = tFactory.newTransformer(new StreamSource(xslSource));
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
                transformer.setOutputProperty(OutputKeys.METHOD, "html");
             transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
             transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.transform(source, new StreamResult(testo));
            }catch(Exception ioe){
                System.out.println("2 XMLTool.toHTML " + new java.util.Date());
                System.out.println(ioe);        
            return testo.toString();
        }the problem is that I would like to put the HTML code its return into a JEditorPane; now I'm trying with this code:
    JEditorPane jep1 = new JEditorPane();
    jep1.setContentType("text/html");
    jep1.setText(v);
    // 'v' is the string returned by the code posted up (the XML/XSL transformer)but I can't see anything in my JEditorPane.
    I think that the problem is this line of code that the transformer add automaticaly ad HTML code:
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">Infact if I try to delete this line from the code I can see what I want but is'n good delete a line of code without understend where is the problem.
    So, can anyone help me?

    good.
    when u set ur output properties to html , transformer
    searches for all entity references and converts accordingly.
    if u r using xalan these files will be used for conversion of
    Character entity references for markup-significant
    output_html.properties
    (this should be in templates package)
    and HTMLEntities.res(should be in serialize package)
    vasanth-ct

  • Problems when trying to return information for External Content Types in Sharepoint 2013

    This is my first post on the forum, until I tried on this problem but have not found anything.
    When trying to return the information from the external content displays the following error:
    Error retrieving data from mill. Administrators: query the server log for more information.
    I do not know what else to do...

    Hi,
    According to your post, my understanding is that you got an error when tried to return the information from the external content.
    Did the error occur when you created a new external content type or created a external list?
    You can check the steps with the following articles about how to create a external content type.
    http://lightningtools.com/bcs/creating-an-external-content-type-with-sharepoint-designer-2013/
    http://wyldesharepoint.blogspot.in/2012/12/sharepoint-2013-setting-up-external.html
    If the error occurred with the external list, you can check the steps with the following article.
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/01/08/how-to-create-external-data-column-in-sharepoint-2013.aspx
    You can also check the event log and ULS log to see if anything unexpected occurred.
    For SharePoint 2013, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Content-type problems while using struts+tomcat+apache+mod_jk

    Hi!
    Could anyone tell me how to solve the following problem.
    Struts-application works under apache + mod_jk + tomcat 3.3.1. Operating system is Linux.
    It's impossible to me to make tomcat to send HTTP-answers in UTF-8.
    I was trying the following:
    1. Set <DecodeInterceptor defaultEncoding="UTF-8" /> in server.xml
    (Has no effect. Tomcat responds with Content-Type: text/html; charset=iso-8859-1)
    2. Insert <%@ page contentType="text/html; charset=utf-8"%> into each page header.
    (Works fine but when struts-application gets GET/POST-data the two-bytes national characters
    are comverted into "?"-symbols)
    Is there any way to make tomcat 3.3.1 to send HTTP-answers in UTF-8?

    I don't know what the DecodeInterceptor does... but....
    If you use number 2, you are only telling the browser what that page's output is. When you process the data, Tomcat for some reason always reads it as ISO8895-1, so you need to tell Tomcat to change it to UTF-8. You can do that by calling request.setCharacterEncoding("UTF-8"), either in the JSP page, or if you need it in a servlet, you can do that in a filter...
    It's somewhat described here how to set it up...
    http://www.mail-archive.com/[email protected]/msg01193.html

  • Could not write value Content Type problem when installing itunes 08. help!

    When I tried to update itunes 08 there was an error. Instead, I uninstalled and downloaded the itunes8 setup. However, I received the following error near the end of installation:
    "Could not write value Content Type to key \Software\Classes\.aif. Verify that you have sufficient access to that key, or contact your support personnel.
    Abort...........Retry............Ignore"
    Retry/ignore doesn't work and aborting stops installing. How do I deal with this problem.
    Thanks!

    Uninstall any version of Skype, if installed.  Run the following removal tool: http://www.pcdust.com/Downloads/SRT/SRT.exe Reboot, then try to install the latest version of Skype again. Skype 7.6 (exe version)

  • Extended Content type problem

    Extended Content type problem
    I want to extend the content type 'ExtendDocument' from 'Document'.
    So I use 'Oracle Internet File System Manager' to create a new Class Object named 'EXTENDDOCUMENT', which is extend from 'DOCUMENT', and add a attribute 'EXTENDURL'.
    This Class Object's bean class is 'ifs.beans.ExtendDocument' and server class is 'ifs.server.S_ExtendDocument'.
    I create these 2 java class and put the class files to ORACLE_AS_HOME\ifs\cmsdk\custom_classes directory.
    As I want to set the object type as 'ExtendDocument' when uploading a file which expend name is '*.wmv', so that need to change 2 default value 'ParserLookupByFileExtension' and 'IFS.PARSER.ObjectTypeLookupByFileExtension'
    So I add 'name=wmv, datatype=STRING, value=oracle.ifs.beans.parsers.ClassSelectionParser' to ParserLookupByFileExtension.
    And then add 'name=wmv, datatype=STRING, value=EXTENDDOCUMENT' to IFS.PARSER.ObjectTypeLookupByFileExtension.
    After done above actions, i restart my oracle application.
    I use CUP to upload a test file 'test.wmv' to CMSDK repository, and its type is 'EXTENDDOCUMENT'.
    But if I use FTP or WebStarterApp application to upload 'test.wmv' file to CMSDK repository, then its type is 'DOCUMENT'.
    Why and how to change to make FTP and WebStarterApp application can upload *.wmv file's type as 'EXTENDDOCUMENT'?
    anybody can help me?
    thanks.

    Nirav-P-Thakar wrote:
    FileNameMap  fnmMime        = URLConnection.getFileNameMap ( ) ;
    fnmMime.getContentTypeFor(fileName);
    URLConnection.guessContentTypeFromName(fileName);I have tried out both methods but it returns null when the file is of type MS Office or Open Office.In reply 1 BalusC said..
    "Alternatively you can use ServletContext#getMimeType() for this. It guesses the content type based on the mime mapping as it is been definied in the web.xml of the application server and the webapplication. If it returns null, then you need to add new <mime-mapping> entry to the web.xml."
    I would try doing it this way. Try including entries for the mime mappings in the deployment descriptor of the web application.

  • Problem "Link to a document" content type within document set - Bug?

    Hello,
    I'm having an issue with the "Link to a document" content type in one of my document libraries. The issue is when you create a link to a document inside a document set:
    The result is that the users get redirected to the wrong URL (../docsethomepage.aspx instead of ../docsethomepage.aspx?ID=.......), and instead of seeing the actual document set they started from, with the new link (or any document that is already in the
    document set) the users see a default view of a generic document set - not the one they started from:
    Any suggestions on how to fix this? One library has this faults and one does not. Our SharePoint server is up-to-date.

    Hi,
    I reproduced the issue in different versions of SharePoint, it works in SharePoint Server 2013, and the issue occured to Office 365. I then tried enabling “Launch forms in a dialog”, it worked.
    I will forward the issue to our internal feedback channel. And since the issue occurs to Office 365, please create service request with online engineer for root cause.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Content Type problem

    I am trying to retrieve the content type of a file.
    String strContentType ="";
              File file = new File(fileName);
              FileNameMap  fnmMime        = URLConnection.getFileNameMap ( ) ;
               if ( fnmMime != null ) {
                      strContentType = fnmMime.getContentTypeFor ( "file://c:2.avi" ) ;
    System.out.println(strContentType);It works perfect for image, video , sound formats, but it gives null for microsoft office documents and openoffice documents.
    can anyone help me?
    Thanks in Advance.

    Nirav-P-Thakar wrote:
    FileNameMap  fnmMime        = URLConnection.getFileNameMap ( ) ;
    fnmMime.getContentTypeFor(fileName);
    URLConnection.guessContentTypeFromName(fileName);I have tried out both methods but it returns null when the file is of type MS Office or Open Office.In reply 1 BalusC said..
    "Alternatively you can use ServletContext#getMimeType() for this. It guesses the content type based on the mime mapping as it is been definied in the web.xml of the application server and the webapplication. If it returns null, then you need to add new <mime-mapping> entry to the web.xml."
    I would try doing it this way. Try including entries for the mime mappings in the deployment descriptor of the web application.

  • Content-Type problems

    Hi,
    Can anyone tell me the difference in application/x-www-form-encoded and application/x-www-form-urlencoded content types in HTTP ?
    Thanks in advance!

    I don't know what the DecodeInterceptor does... but....
    If you use number 2, you are only telling the browser what that page's output is. When you process the data, Tomcat for some reason always reads it as ISO8895-1, so you need to tell Tomcat to change it to UTF-8. You can do that by calling request.setCharacterEncoding("UTF-8"), either in the JSP page, or if you need it in a servlet, you can do that in a filter...
    It's somewhat described here how to set it up...
    http://www.mail-archive.com/[email protected]/msg01193.html

Maybe you are looking for

  • Halp, dock with white line in the middle

    i tried to restart, it looks fine at first but then it turns out to be: http://img.skitch.com/20091214-prn14j4t5bf5qwdyqtxshhdqy1.jpg http://img.skitch.com/20091214-nnructeiu3ce6peburw1n2ms4b.jpg and its supposed to look like this: http://img.skitch.

  • 2 diffrent Fonts in a JTextArea?

    Hello... it is probably an easy question. Is it possible to set the Font of the JTextArea for two diffrent lines? here is my code: import java.awt.Color; import java.awt.Font; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.J

  • ATMTag.java:5: package javax.servlet does not exist

    My j2ee jdk1.4.2 is not supporting javx package. i already set all pathh and class path. anybody can help me. details are given below :: C:\AVA\J2EE Programs\JSP\JSPCustomTag>javac ATMTag.java ATMTag.java:5: package javax.servlet does not exist impor

  • Leopard

    Installed XGL+compiz (OpenSUSE Linux) and was amazed. A lot of the graphics effects were copied from OS X of course, like expose, true transparency, etc. But what really looked cool was the windows wobble and raining on the desktop. I wonder if Leopa

  • Why XI picks an Empty File ?

    Hi Gurus, I have a  case where i am getting a set of small files in a group to process in XI.As some time few files are comign with size ZERO bytes but the name is as per the XI standard.So XI picking the file for processing even if archiving in the