Interesting Reqrmnt - How to avoid sending namespace in the xml response

Below is the XML response we generate and send it to HTTP Receiver.
- <ns1:CATSIMPORT xmlns:ns1="" xmlns:xsi="">
- <ReturnCode>
Can we remove the first and last line of the xml content and send it.
Please send in your suggestions or answers.
Amar Nemalikanti

Hi Amareshwar,
Check my replies in this link.
just like java code to add a tag, you can use to remove a tag, before it goes to http adapter.
Re: How to change the incoming xml to a different namespace
Hope that helps you to fix your issue

Similar Messages

  • I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    Both accounts are completely independent from each other. In order to use the space that you have purchased for your secondary account, you must change it to become your primary account. Yes, as you said, services like photo stream only work with the primary account. Unfortunately, there is no comfortable way to just transfer data from one account to another one, but you can do it via a third party application e.g. via Dropbox: e.g. for photos: photos stored with your current primary account > manual transfer to dropbox > after you made your secondary account to the primary account,  transfer the photos back to your new primary account etc.

  • I need to restore my apple ID, but it send the info to the wrong e-mail when that e-mail isn't on my ID information. How do I send it to the correct e-mail?

    I need to restore my apple ID, but it send the info to the wrong e-mail when that e-mail isn't on my ID information. How do I send it to the correct e-mail?

    How can it sent it to the wrong email address? Apple sends it to the email address listed in the information you provided for your account. Thus, I really do not understand your problem.
    Maybe this will help.
    Frequently Asked Questions About Apple ID

  • How to avoid extended checks for the events used in ALV.

    I hav delvpd an alv report in which i hav used events for which i haven't declared PERFORM for the same. but when i had checkd in the Extended program checks it says that form interface is not called directly.. check for dynamic PERFORMS...
    how to avoid this error in the extended check program.

    Another option can be calling the routine from the program itself with a check that never satisfies.
    if 1 = 2.
    perform top_of_page.
    form top_of_page.

  • If i purchase a device through this official website,then how can i send warranty when the device have problem?

    if i purchase a device through this official website,then how can i send warranty when the device have problem?

    To purchase a device from the online US Apple Store you will need a US credit card with a valid US address and a valid US address to ship to. You cannot use a shipping forwarder.
    If you are in a different country you would have to return to the US to access your warranty.
    If you are in the US but not near an Apple Store you would start here for service:

  • Can i avoid sending parametrers thru the address bar?  (read example)

    Let's say I have the following parameter in a web toolkit site (which is still in development).
    For example if I post the parameters to the next page:
    (previous page) --->
    if my in my password textitem I only have to put a valid number to go to next page, HOW CAN i AVOID THIS TO WORK:
    if I type the following in the Internet Explorer address bar:
    if by any chance that number is valid it will go to next page, how can I force and limit the page to send the parameter thru the TEXTITEM in the web, instead of both (the address bar and textitem)

    Running a url as described: "", will fail after you patch mod pl/sql.
    If you run the url like this: "" will be the only way to call it.
    v3. of mod pl/sql is where this gets fixed but you really should be on v3.
    This still doesn't fix your problem as you can look in the html code to find the name of the parameter and then create a url that will work.
    Use cookies with a session_id and store the session information in a table with the user information. Then you can build an xref table showing what the user has rights to.

  • How to avoid blank page in the report?

    adding a field in the grouping and checking the page break option means then we are getting blank page as the first page of the report? How to avoid this blank page?

    Usually blank pages appear as first page due to the presence of filler lines (//////) on top of report header.Please ensure that the top header is exactely started from top of page itself.

  • How to avoid JS Error in the status bar when report doesnt contain value.

    Whenever the tabular report doesnt show any records for the given input parameter (parameter passed using select list item).
    We are displaying error message in APex. But at the status bar, it is showing "Error" (unspecified
    Kindly let me know how to avoid this kind of error at status bar.

    Hi Vijay,
    Your javascript is probably trying to access one or more of the items within a displayed tabular form - the "f01", "f02" etc named items.
    If your script does something like:
    var x = document.getElementsByName("f01"); of your code for f01 can test if there are any "f01" items by doing:
    var x = document.getElementsByName("f01");
    if (x){ of your code for f01 items..
    }If there are no items, x is null, so the " of your.." script will not get executed and no errors will occur.

  • How to use XPath with Namespaces in the xml ?

    Hi all,
    I need to reference a certain Node in a Document using XPath notation.
    The problem is the the XML Document contains Namespaces inside it
    <xn:SubNetwork id="JRANM">
        <xn:VsDataContainer id="1">
    </xn:SubNetwork >Using DOMXPath (from weblogic.xml.xpath)
      DOMXPath xPath = new DOMXPath("xn:SubNetwork/*");
      Set nodeset = xPath.evaluateAsNodeset(this.xmlRootElement);When I Iterate through the Set I can see it's empty.
    (On the other hand without namespaces everything is fine.)
    So how can I reference a Node that contains a namespace in it ?
    Thanks a lot

    We use the following class to perform XPath Queries on our XmlBean objects.
    Hope this helps,
    import java.util.Set;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.apache.xmlbeans.XmlException;
    import org.w3c.dom.Document;
    import weblogic.xml.util.StringInputStream;
    import weblogic.xml.xpath.DOMXPath;
    * Class to encapsulate API specific (i.e. weblogic) XML functions
    public class XmlUtil {
         * Returns a set containing objects of type reflected in the query.<br/>
         * e.g.<br/>
         * /saur:tree/saur:treeNode[@label='My Reports']<br/>
         * Returns a Set of TreeNode objects<br/>
         * Sample Code: <br/>
         * <code>
         * Set set = XmlUtil.executeXPathQuery( myQuery, tree.xmlText());
         * for( Iterator iter = set.iterator(); iter.hasNext();) {
         *     TreeNode node = TreeNode.Factory.parse((Node);
         *     // Do whatever...
         * </code>
         * @param query
         * @param xml
         * @return
        public static Set executeXPathSetQuery( String query, String xml) throws XmlException {
            try {
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();   
                DocumentBuilder builder = factory.newDocumentBuilder();
                StringInputStream in = new StringInputStream(xml);
                Document doc = builder.parse(in);
                DOMXPath xQuery =  new DOMXPath(query);
                return xQuery.evaluateAsNodeset(doc);
            catch(Exception x) {
                throw new XmlException("Error running XPath query", x);

  • How to avoid clear data in the block in a form

    Hi All
    I am using Oracle form 10g and db 10g.
    My form i have a list item in my main canvas. It has a value of (EXPENSE,AMOUNT,SUPPLIER,ACCOUNT).
    The user used to select the list item one by one and used to enter values in the each canvas assigned to the Item(expense,amount,supplier,account) and go for a save.
    For instance when the user enter the value in expense ,amount and supplier and again back when the user navigate back to amount the entered value get cleared.
    how to avoid the data get cleared.
    Thanks & regards

    you can use EXECUTE_QUERY built-in to populate the data when that canvas or block instance. If it need at block level write this at When New Block Instance. if it a tab page then you can write when tab page change. If need where condition, add block level where condition.

  • How can i send mail to the yahoo mail or gmail or something else

    hello guys,
    i want to know how to send mails to the yahoo or gmail or something else.i heard that we have to change some smtp address and some port number. can any body suggest me to get that.please help me
    any replies will be appreciated greatly.

    Hi chnaresh,
    This is the code I use to send mail, it's not specific to gmail, but it works. The "props" object expects the usual mail properties, "", "mail.user" or "mail.smtp.user", as well as "mail.smtp.ssl" which you'd want to set to "true" if you're using gmail. It also expects "mail.smtp.passwd" or "mail.passwd" which my gut tells me is unsafe, but I'm not sure why.
    Good luck,
    public static int sendMail(final Properties props, String subject, String body, String to, String cc, String bcc, String from, File[] attachments, boolean toStdOut)
    throws javax.mail.internet.AddressException, javax.mail.MessagingException, javax.mail.NoSuchProviderException
    Session sess;
    //props.setProperty("mail.debug", "true");
    if(props.getProperty("mail.smtp.ssl") != null && props.getProperty("mail.smtp.ssl").equalsIgnoreCase("true"))
    String portStr = ((props.getProperty("mail.smtp.port") != null) ? (props.getProperty("mail.smtp.port")) : "465");
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.socketFactory.port", portStr);
    props.put("mail.smtp.socketFactory.class", "");
    props.put("mail.smtp.socketFactory.fallback", "false");
    sess = Session.getDefaultInstance(props,
    new javax.mail.Authenticator()
    protected PasswordAuthentication getPasswordAuthentication()
    String userName = ((props.getProperty("mail.smtp.user") != null) ? props.getProperty("mail.smtp.user") : props.getProperty("mail.user"));
    String passwd = ((props.getProperty("mail.smtp.passwd") != null) ? props.getProperty("mail.smtp.passwd") : props.getProperty("mail.passwd"));
    if(userName == null || passwd == null)
    return null;
    return new PasswordAuthentication(userName , passwd);
    String portStr = ((props.getProperty("mail.smtp.port") != null) ? (props.getProperty("mail.smtp.port")) : "25");
    sess = Session.getInstance(props, null);
    MimeMessage mess = new MimeMessage(sess);
    StringTokenizer toST = new StringTokenizer(to, ",;");
    Address addr = new InternetAddress(toST.nextToken());
    mess.addRecipient(Message.RecipientType.TO, addr);
    if(from != null)
    StringTokenizer fromST = new StringTokenizer(from, ",;");
    InternetAddress[] fromAddrs = new InternetAddress[fromST.countTokens()];
    for(int i = 0; fromST.hasMoreTokens(); i++)
    fromAddrs[i] = new InternetAddress(fromST.nextToken());
    if(cc != null)
    StringTokenizer ccST = new StringTokenizer(cc, ",;");
    Address addr = new InternetAddress(ccST.nextToken());
    mess.addRecipient(Message.RecipientType.CC, addr);
    if(bcc != null)
    StringTokenizer bccST = new StringTokenizer(bcc, ",;");
    Address addr = new InternetAddress(bccST.nextToken());
    mess.addRecipient(Message.RecipientType.BCC, addr);
    BodyPart messageBodyPart = new MimeBodyPart();
    Multipart multipart = new MimeMultipart();
    if(body != null)
    if(attachments != null)
    for(int i = 0; i < attachments.length; i++)
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(attachments);
    messageBodyPart.setDataHandler(new DataHandler(source));
    Address[] allRecips = mess.getAllRecipients();
    //System.out.println("Sending message (\"" + mess.getSubject().substring(0,10) + "...\") to :");
    System.out.println("Sending message (\"" + mess.getSubject() + "...\") to :");
    for(int i = 0; i < allRecips.length; i++)
    System.out.print(allRecips[i] + ";");
    return 0;

  • How can I send request to the server through XML using JSP

    How can I send XML request to the server using JSP and servlets

    Ajax may be the one way.

  • How to avoid empty elements in generated xml text

    I am using XMLBeans to generate xml.
    If I set text value for a tag then it displaying like
    <param name="org">Satyam</param>
    If I set empty text value for the same tag it generateing xml text like
    <param name="org"/>
    But I don't need empty elements in generated xml like this way. Even though I set empty text to a tag it has to display like
    <param name="org"></param>
    How can I do this one.
    Message was edited by Mouli at Dec 14, 2004 2:55 AM

    by the book these two representations are identical
    <.... />
    as for the XML-parser.
    What problem are you facing with the <... /> representation?
    I will try to investigate a bit to see if the XMLBean can be forced to write the <....></....> representation.
    - Anders M.

  • Using namespaces in the XML QUERY

    I need to included a namespace of i: in the query below.
    the namespace is : ""
    How can I include the namespace in the query below?
    Is this possible?
    SELECT XMLELEMENT("i:Trade", XMLELEMENT("i:Level",2.25),
                                 XMLELEMENT("i:Style", 250),
                    FROM DUAL

    What's wrong with Sundars answer in this Writing a Procedure to return back XML. Please help.?

  • Oracle ESB 10g : Blank namespace in the SOAP Response from DB adapter

    Hi All,
    I am currently working on a ESB project to route input XML file as a parameter to a DB Function.
    This Function has a input parameter of type XMLTYPE and returns VARCHAR2 values.
    I have configured the DB Adapter to invoke this function and return the result as a SOAP response.
    The WSDL of DB adapter contains XML_DATA as input and XMLMAIN as the output result.
    The ESB project works fine as expected. But in the result from DB adapter contains a blank namespace [xmlns=""] for the XMLMAIN element .
    I hereby attach the output XML.
    Please help how to remove this blank namespace from the output.
    We are using SOA Suite 10g
    <env:Envelope xmlns:env="" xmlns:soap="">
    <env:Body xmlns="">
    <OutputParameters xmlns:xsi="">
    <XMLMAIN xmlns="">100</XMLMAIN>
    Thanks and Regards,
    Justin Michael Raj

    well..the problem is..the db adapter has it's own the transactions fails or not.
    you're just not capable of checking if the transaction went ok...and return 'process completed ok' or when the transaction failed for some reason return 'the process aborted'.
    So you just need some extra steps for it to be able to return some response-message

Maybe you are looking for

  • How can I correct a "Run time error" on my mac mini?

    On one web site in my book marks I have suddenly got this message -"Runtime error" How can I fix it?

  • How do I convert a pdf file into a word document? I have a form to fill out.

    I have a form to fill out and it is currently in pdf format I would like to change it into a word document so that I can fill it out. This document I need to be able to e-mail it out today. So any help that anyone can give me would be greatly appreci

  • IPhone 5 panorama causes freeze and crash

    So basically every time I use panorama on my iPhone 5 it freezes and crashes. Restart using both off and home buttons, and it goes on. Apple please fix ios6 on iPhone 5, my iPhone 4S is fine.

  • Format-less Printing of reports

    I need to print a report (Developer 6) without any format. Means just like DOS-base printing. I have a dot matrix printer and require to print my report with defualt draft printing of dot matrix. If any one can help me, just mail me at [email protect

  • Is Shake as good for miniDV footage?

    This is also posted at creativecow: I want to take on a project that will involve various tools/effects. I'm researching Shake (now that it's $499) and it appears to be the right tool for the job. However, I've only used FCP and your knowledge will b