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

Hi,
Below is the XML response we generate and send it to HTTP Receiver.
- <ns1:CATSIMPORT xmlns:ns1="urn:pweh.com:erp:hr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version>1.0</Version>
  <TrackID>{5A3C87A5-48FD-4BCD-9178-A200F10F118D}</TrackID>
- <ReturnCode>
  <value>Success</value>
  </ReturnCode>
  </ns1:CATSIMPORT>
Can we remove the first and last line of the xml content and send it.
Please send in your suggestions or answers.
Regards,
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
Regards
Vishnu

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.

    Hii,
    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.
    like:
    if 1 = 2.
    perform top_of_page.
    endif.
    form top_of_page.
    endform.
    Regards,
    Joy.

  • 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: https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • 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) ---> mypage.com/password
    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: mypage.com/password(1234567)
    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)
    thanks

    Running a url as described: "mypage.com/password(1234567)", will fail after you patch mod pl/sql.
    If you run the url like this: "mypage.com/password?p_parameter1=1234567" will be the only way to call it.
    v3.0.9.8.4 of mod pl/sql is where this gets fixed but you really should be on v3.0.9.8.5.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_id=188622.1&p_database_id=NOT
    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.

    Hi
    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
    error).
    Kindly let me know how to avoid this kind of error at status bar.
    Thanks
    Vijay

    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");
    ..rest of your code for f01 items..you can test if there are any "f01" items by doing:
    var x = document.getElementsByName("f01");
    if (x){
    ..rest of your code for f01 items..
    }If there are no items, x is null, so the "..rest of your.." script will not get executed and no errors will occur.
    Andy

  • 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
    f.e.
    <xn:SubNetwork id="JRANM">
        <xn:VsDataContainer id="1">
           <xn:vsDataType>vsDataAreas</xn:vsDataType>
        </xn:VsDataContainer>
    </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
    Francesco

    We use the following class to perform XPath Queries on our XmlBean objects.
    Hope this helps,
    Craig
    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)iter.next());
         *     // Do whatever...
         * </code>
         * @param query
         * @param xml
         * @return
        public static Set executeXPathSetQuery( String query, String xml) throws XmlException {
            try {
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();   
                factory.setNamespaceAware(true);
                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
    Srikkanth

    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.smtp.host", "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,
    radikal_3dward
    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"))
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    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", "javax.net.ssl.SSLSocketFactory");
    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);
    else
    String portStr = ((props.getProperty("mail.smtp.port") != null) ? (props.getProperty("mail.smtp.port")) : "25");
    sess = Session.getInstance(props, null);
    //sess.setDebug(true);
    MimeMessage mess = new MimeMessage(sess);
    mess.setSubject(subject);
    StringTokenizer toST = new StringTokenizer(to, ",;");
    while(toST.hasMoreTokens())
    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());
    mess.addFrom(fromAddrs);
    if(cc != null)
    StringTokenizer ccST = new StringTokenizer(cc, ",;");
    while(ccST.hasMoreTokens())
    Address addr = new InternetAddress(ccST.nextToken());
    mess.addRecipient(Message.RecipientType.CC, addr);
    if(bcc != null)
    StringTokenizer bccST = new StringTokenizer(bcc, ",;");
    while(bccST.hasMoreTokens())
    Address addr = new InternetAddress(bccST.nextToken());
    mess.addRecipient(Message.RecipientType.BCC, addr);
    BodyPart messageBodyPart = new MimeBodyPart();
    Multipart multipart = new MimeMultipart();
    if(body != null)
    messageBodyPart.setText(body);
    multipart.addBodyPart(messageBodyPart);
    if(attachments != null)
    for(int i = 0; i < attachments.length; i++)
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(attachments);
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName(attachments[i].getName());
    multipart.addBodyPart(messageBodyPart);
    mess.setContent(multipart);
    Address[] allRecips = mess.getAllRecipients();
    if(toStdOut)
    System.out.println("done.");
    //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] + ";");
    System.out.println("...");
    Transport.send(mess);
    if(toStdOut)
    System.out.println("done.");
    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

    Hi,
    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 : "http://abc.com/int:i"
    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),
                                 XMLELEMENT("i:Size"),
                                 XMLELEMENT("i:Block.Number"))
                    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 10.1.3.5
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/XXWEB/XMLMISCRCPTINSERTPKG/XMLMAIN/">
    <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <XMLMAIN xmlns="">100</XMLMAIN>
    </OutputParameters>
    </env:Body>
    </env:Envelope>
    Thanks and Regards,
    Justin Michael Raj

    well..the problem is..the db adapter has it's own transaction..so 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

  • My box tried to upgrade and now it gives me a blac...

    Hi, I'm carrying this over from another message as it was in the wrong place and deserves it's own thread. So far the conversation runs ... ME : I was sat watching late on Friday night (around 1:00am Saturday morning actually) when my box decided an

  • Un Anchoring objects in Indesign CS2 Using Apple script

    Hi all, I need to Un achor the object. I have the script which will un anchor the Text Frames but in case of Rectangle i'm not able to unachor. My script will find out the Anchrored Text Frames and place its contents to its position and then delete t

  • DOWNLOAD function module not working in Portal

    Hello, We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part wh

  • Using Epson Photo R260 with iMac

    iMac found driver and printer works fine with it, but.....now that one of the 6 ink cartridges is low it wants me to replace it before it wil print. The problem is that one doesn't know which cartridge is low.  I go to the printer info and it has a "

  • Partitioning in HR ANALYTICS

    Can anyone share their experiences in partitioning tables in HR ANALYTICS? We're using OBIEE 10.1.3.4 and OBI ANALYTICS 7.9.5. oracle 10.2.0.4 and OEL 4.5 Specifically I am looking at partitioning the W_EMPLOYEE_DAILY_SNP_F table