How to change the HTTP Response as XML (Content Type "text\xml") ?

Hi Friends ,
                 I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as  " OK" . In the connection test trace i have seen the Content Type as "text/html" but *  I need to get as "text\xml" .* 
                 I need to get response back as XML not plain text . 
        1  Any Configuration setting  do we need to do on Service (SICF )  ?
         2. Or any other place we need to modify to get the HTTP Response as XML not plain text
              Can you please help to solve the problem . Any clue ?
Thanks & Regards.,
V.Rangarajan
Edited by: ranga rajan on Jan 2, 2008 2:07 PM

Dear users,
we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
Using HTTP_AAE Receiver adapter.
The response message was failed while excution of the message mapping with the error
Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
Regards,
Sudir.

Similar Messages

  • How to change the HTTP Response as XML (Content Type "text\xml")  When Post

    Hi Friends ,
    I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as " OK" . In the connection test trace i have seen the Content Type as "text/html" but * I need to get as XML format no Srting    ( Type "text\xml" . ) *
    I need to get response back as XML not plain text .
    1 Any Configuration setting do we need to do on Service (SICF ) ?
    2. Or any other place we need to modify to get the HTTP Response as XML not plain text
    Can you please help to solve the problem . Any clue ?
    Thanks & Regards.,
    V.Rangarajan

    Dear users,
    we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
    Using HTTP_AAE Receiver adapter.
    The response message was failed while excution of the message mapping with the error
    Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
    please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
    Regards,
    Sudir.

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • How to change the Safety Intervals for standard Content datasources

    Go to RSA2->give your datasource name ->setting up GEN delta
    It shows you whts the safety interval setting.
    <b>
    How to change the Safety Intervals for standard Content datasources since when I go to RSA2 edit and change options are always greyed out. let me know if there is any other transaction code or table to do this.</b>
    Thanks
    Soniya Kapoor

    Hi Soniya,
    1) try  RSA6.....also  RSA8 for additional info.
    2) useful link:
        http://help.sap.com/saphelp_nw04/helpdata/en/d0/4cc138944cfa06e10000000a11405a/content.htm
    Good luck, BB

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How to change the font used to fill in a text field.

    Can you please tell me how to change the font that comes up when a text field is filled in?
    Can I change this setting in InDesign or does it have to be done in Acrobat?

    It must be done in Acrobat. InDesign only allows Times Roman for some reason.
    To change it in Acrobat 11, open the PDF and select: Tools > Forms > Edit
    and select the field(s) you want to change, bring up the field properties dialog, and look on the Appearance tab for the font dropdown.

  • HTTP response contains unexpected content-type  (100.101)

    hello guys,
    I need your help on configuring adobe document services which runs on as java 7.3 with a netweaver 7.4 system.
    I didnt find documentation for NW7.4, I used this link:
    Adobe Document Services for Form Processing - SAP Library
    894009 - Adobe Document Services: Configuration
    according to note 944221 - Troubleshooting if problems occur in forms processing
    I ran:
    sa38>FP_TEST_00>>the error is
    ADS: SOAP Runtime Exception: CSoapExceptionTransport :(100101)
    /sa38>FP_PDF_TEST_00>error
    SYSTEM ERROR: SOAP Framework error: SOAP Runtime Exception:
    CSoapExceptionTransport : HTTP response contains unexpected
    content-type  (100.101).
    I already check note 1587941 - ADS does not respond or error "CSoapExceptionTransport.."
    and enableSSL is false.
    the only thing thats different in my case: the rfc ADS does not work with path prefix
    /Adobedocumentservices/Config?style=rpc
    I left it blank.
    thx for any idea
    chris

    Hi Chris,
    What is the connection test response of ADS RFC(404,405,403,200..)?
    FP destination services are maintained with correct ADS_AGENT password?
    to test prefix path try the URL http://<adshost>:port/prefixpath (eg. http://smprod:50000/Adobedocumentservices/Config?style=rpc)
    Regards,
    Surya

  • How to change the output directory of .xml files

    Hi,
    There are lots of .xml files generated under
    $ORACLE_AS_HOME/j2ee/home/applications/xmlpserver/xmlpserver/xml.
    (ex:/usb/bipub3/oracle/oc4j_bi/j2ee/home/applications/xmlpserver/xmlpserver/xml).
    I found these files are generated in the following operation;
    1.Log in BI Publisher.
    2.Select the Schedules tab.
    I think they are kind of temp files so we will be able to delete them.
    But I'd like to know how to change the output directory.
    Can we change the above directory to other path?
    Regards.

    Why? As that may invalidate support since you configure/alter the deployment.
    The location is specified in oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver.war, so you could go into the war file and alter it.

  • How to change the attributes of an XML file

    hi peeps 'ope you can help me here i need to change the attributes of an xml file, i parse it first using a DOM parser but i cant find a way to change the attributes in the XML file, setAttribute() works only at runtime and doesn't change the attribute in the file itself. I can't find a method that will answer my question. I've searched through the forum and found similar threads....they say in order to write and change the attribute i must use the write() method of the XmlDocument class defined in com.sun.xml.tree.XmlDocument. But, i found another thread, and it says that com.sun.xml.tree.XmlDocument is not safe to use and i should use org.apache.crimson.tree.XmlDocument.....i can't find the XmlDocument class and the API for this package so i really dont know where to start...hope you guys can help me! thnx

    thanks for responding roland....i already found the solution...i didn't use the XmlDocument class because i can't find any documents about it except for JAXP 1.0 here is my code snippet...i used the TransformerFactory and Transformer class to write
    import org.w3c.dom.*;
    import org.w3c.dom.traversal.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Document doc = null;
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    dbf.setValidating(false);
    doc = db.parse(fileGetFile); //this is the XML file
    n1 = (Node)doc.getDocumentElement();
    e1 = (Element) n1;
    NodeList nodeList = doc.getElementsByTagName ("File");
    //just insert whatever you want to do with the XML...parse it..set/change the attribute..etc....sample snippet below changes the attribute downloaded to "no"
    for(int iWriteFailed = 0; iWriteFailed <nodeList.getLength() ; iWriteFailed ++){     
    n2 = nodeList.item(iWriteFailed);
    e2 = (Element) n2;          
    e2.setAttribute("downloaded", "no");}
    try{
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    transformer.transform(new DOMSource(doc), new StreamResult ( new FileOutputStream ( fileGetFile) ) );}
    catch(Exception trans){}
    thanks for responding and keeping the information interchange alive here in the forum...
    Pau

  • How can I change the default application for a content type?

    Running a version of Linux, the default application for PDF files is "Use Document Viewer (default)", which appears to be /usr/bin/evince. I'd much prefer to use /usr/bin/okular; how can I change the default. This question is NOT about how to change the function that is automatically applied when I access a link, in this case "Preview in Firefox", but rather to the default application that I can select when I download a file being viewed in Firefox's previewer.

    This is real progress, a solution to the problem as posted. The command:
    xdg-mime default okularApplication_pdf.desktop application/pdf
    makes okular the default.
    However when I added okular to the choices for applications in:
    * Edit>Preferences>Applications>PDF
    the popup box that appears when I click Download on the preview page changed. The pulldown menu that appears next to "Open with" used to have 3 entries:
    # Document Viewer (default)
    # Acroread
    # Other
    Now it has only 2:
    # Okular (Default)
    # Other
    I'd like it to read
    # Okular (Default)
    # Acroread
    # Other
    How can I control the entries in this pulldown list?
    Also, how can I make the default choice in the popup box be
    * Open With <whatever> , rather than
    * Save File ?

  • How to get the HTTP response body if the body is a malformed XML document

    Hi,
    I am using HTTP service with resultFormat = "e4x" set. What i
    get in response is a malformed XML document in
    some cases. Usually HTTPService throws a FaultEvent with the
    fault detail set to faultCode:Client.CouldNotDecode
    faultString:'Error #1091' or some other Error #1085 and so.
    My client tries to log these errors on the server by using
    another HTTP service again. But i would like to know
    in the client code during run time what exact XML response
    came in the first HTTP response.
    How do i retrieve this information?
    thanks,
    Sunil

    service capture or charles debug proxy can do the job.
    flex builder 4 is rumored to include a traffic sniffer as
    well, but that's next year.

  • How to change the http regular login page

    The iFS/HTTP authenticates users as Guest automatically. Can someone tell me how to change it back to the login dialog? Thanks.

    Hey,
    Thanks for the reply, but I didn't understand much.
    Guess I'm just going to try and look on why I can't change the context path when deploying a webservice package using ant tasks.
    Thanks again for the reply.
    William

  • How to change the name of an XML data element in link editor?

    Hi,
    Is it possible to change the name of a data element dynamically while doing the assignment in the link editor?
    Something like Transaction.ReceiveXML{/Rowsets/Row/Name1 (name="Name2")}?
    Regards,
    V M.

    Hi VM,
    in the link editor you can use the Dynamic Link (see [Expression Editor|http://help.sap.com/saphelp_mii121/helpdata/EN/45/b89adfaf1447f7e10000000a114a6b/frameset.htm]).
    With the dynamic link, you can enclose the property that contains the value with "#", which makes MII evaluate the value rather than use the property name. In your example, it looks something like this:
    ReceiveXML{/Rowsets/Row[name='#MyProperty#']}
    Hope this helps.
    Michael
    Edited by: Michael Otto on Oct 27, 2010 8:09 AM

  • IDOC - XI - HTTP/MAIL (How to get the http response and send an email?)

    Hi David!
    If you are able to send any Http message in reference to message from XI (eg. with Idoc number or msg-id) there is no problem to process it in your scenario (even if comunication is asynchronous).
    Regards,
    Radek

    You need a 2:1 mapping. source interfaces are Idoc and Http response, target interface is the mail.
    As you can do his only for abstract interfaces, you have to create an abstract message interface based on the IDoc structure.
    For the http call you need abstract async message interfaces representing request and response which you can use for the mapping and for the container variables inside the BPM.
    Regards
    Stefan

  • How to change the Organizational Dependency of a Set Type

    Hi All,
    With the creation of a new set type we made the mistake to not select "Distribution-Chain-Dependent" in the "Org. Dependency"-field.
    Now we already maintained a few materials (only in development system) with data in the attributes of this set type, but noticed that the data is not Sales org. dependent. Seems logical, because we forgot to set this org dependency in the set type, but now we want to correct this and I hope you could provide us with the best way to do this.
    The field it self is no longer editable in change mode (seems logical, since all tables/structures/relations are already created and messing with this dependency could mess things up) but we really need the org dependency for our product attibutes. So, I wanted to create a new set type, and replace the old one with this new one in our category, but I can't even delete the old set type from our category, because I get the message: "Products of this category already exist; Set type cannot be deleted".
    What would be the best way to solve this? (is there a way to change the org dependency of the existing set type?/should I create a new set type? If so, how to delete the old set type and it's data?)
    Br,
    Martijn.

    Anyone?

Maybe you are looking for

  • Ipad Remote app works for only half the songs in my iTunes library, and sound still comes out of my Mac instead of my iPad.

    Can anyone offer suggestions? I realize there are two separate issues here. 1. I thought I successfully connected my iPad with the iTunes library on my Mac/ Hard Drive via the Remote app. However, more than half the songs in my music library will not

  • How do I get hold of apple support if deaf?

    Hi, I have an old Apple ID I have forgotten both password and security answers. I have tried to get through to apple support but as I use a textphone, I want to either call them myself or for apple to at least let me put in the telephone number with

  • How to pull URL parameters into my Captivate 6 flash

    I want to be able to parse a parameter being passed in the URL to my Captivate video and then use it after the file is over.   e.g. a username that is picked up by another web page.  Is there an easy way to do this. Looking through old posts, is see

  • Multi-Display Question

    I currently have a 23" cinema display connected via mini-dvi to dvi to my 24" iMac (ATI Radeon HD 2600 video card, 256 MB VRAM), but I have a third monitor I would like to connect also. It may sound like a bit overkill, but the third screen is a Sams

  • XSQL - unable to connect to database

    I have installed the XSQL Servlet. I am trying to access an Oracle 8i database on a WinNT server (the client is on a WinNT workstation) using XSQL pages. The lines in the XSQLConfig.xml file are as follows: <connection name="testdb"> <username>scott<