Changing the namespace prefix in OSB body content

I would like to change the namespace prefix of the namespace in the content of the Body in OSB (Replacing g: with dg:)
For example:
<g:Information>
<g:firtName>John<g:firstName>
<nc:date>1970-01-01<nc:date>
</g:Information>
should become
<dg:Information>
<dg:firtName>John<dg:firstName>
<nc:date>1970-01-01<nc:date>
</dg:Information>
Any idea how can I do this?

Re: Namespace replace/rename issue in ALSB
Regards,
Anuj

Similar Messages

  • How to change the Namespace of the payload

    Hi,
    I have 2 questions about the namespace of the XML Payload.
    1. How can I change the Namespace Prefix?
    Since we have SP13 the prefix is <b>p2</b> with the previous Versions the prefix was <b>p1</b> or <b>p0</b> . Is there a possibility to change this prefix (without an external XSLT or Java Mapping)?
    2. How can I change the whole Namespace?
    I know the function of the Message-Type to change the namespace of the Message. But in one scenario I have to implement 3 namespace statements and 1 schema location
    <b><ns0:ZMCFAUF1 xmlns:ns0="TDB" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="TDB zmcfauf1.xsd"></b>
    Is there a possibility to implement this without an external Mapping?
    Thank you for your help
    Thomas<b></b>

    Hi Thomas,
    according to your first question: Why does this matter to you? As I already wrote in another thread:
    According to the XML namespace declaration the prefixes are just internal aliases with no external meaning.
    E.g. <ns1:abc xmlns:ns1="http://www.sap.com" /> and
    <iLikeLongPrefixes:abc xmlns:iLikeLongPrefixes ="http://www.sap.com" /> are totally equivalent according to the XML namespace specification.
    Therefore, everyone (human or machine) who produces a program can choose the prefixes as he wants. Moreover, he may change the rules for creating these prefixes without being incompatible.
    Consequently, the namespace prefixes should not be important for you.
    Greetings
    Stephan

  • How to change the namespace in Integration Repository

    Hi Friends,
    I need your experts suggestions:
    1. I have imported the Integration Design Objects from  X system.
    2. Once i have impoted the Design Objects from X System to Y system.
    3, Now i need to change the Namespace of my Design Objects  in Y system.
    Since all my mapping objects and other stuff  going to be same expect namespace.
    I need to change only my namespace of my design objects.
    How can i do this.... Kindly tell ur suggestions.

    hi,
    Note:
    I am imported the design  objects from different region and trying to develop the same scenario.
    I have imported the objects into sanbox system.
    Here my requirement is need to hold all the design objects just by changing my namespace.
    1. I feel i can create new namespace under that same software component version
    2. Copy all the design objects from that old namespace to new namespace.
    3. Delete the old namespace.
    4. Now i will have all the all the impoted design objects under the new namespace.
    is this possibel..

  • How to change the font and font size of content shown in facet "infoUser" ?

    Hi,
    How can I change the font and font size of content shown in facet "infoUser" using style class?
    I tried placing my class in my css but no success.
    Any of your help would be highly appreciated.

    Hi,
    are you using an af:outputFormatted component inside the infoUser facet?
    Brenden

  • Regarding Changing the Namespace And Data Type in XSD File

    Hi All,
    I am Doing File -
    IDOC Interface.
    I have XSD File For File Sysyetm and IDOC For ECC.
    In XSD File I Have Different Name Space And Data Type ,
    I Created the Data Type as Same as the XSD File Data type
    I Have Namespaces Are Different,
    So,I Changed the Namespace in the XSD File with the New Namespace Which I created in IR.
    I Changed in Two Places Like this
    <b><xsd:schema targetNamespace="http://Sample1.com/xi/file;" xmlns="http://Sample1.com/xi/file;"</b>
    But it is giving Error lik this
    <b>Cannot load schema with the target namespace http://xxx.com/xi/xx/vamsi/100 to namespace http://Sample1.com/xi/file;</b>
    Regards
    Vamsi

    Hi Vasanth,
    Thats what I am Asking
    I want to Import XSD File in Data Type
    Before I Import the XSD File into Data type  I changed the Namespace in the XSD to My Namespace Which is in IR. And I Created the Data Type Name in IR Which I Have in XSD FIle .
    So I Am Getting this Error
    Please Let me Know Wat to do
    Regards
    Vamsi

  • How are you using the Namespace Prefix?

    As the subject says...
    The top-level namespace prefix looks very useful for segregating projects into their own namespaces...is this what this is for, or does SAP have another recommended use for this prefix?
    The vendor name already makes the namespace unique to a corporate entity (if you use the domain name), so anything after that is really only of importance to the internal development environment...

    Even if your development isn't that big, using the 'name space prefix' would allow you to further segregate your codebase. 
    This also becomes important when your domain name is rather long - 15 characters.  Take away four or so more for the namespace prefix, and you're left with 20 characters for the DC name.  Add in a few separators, and you're down to 12-15 characters.
    Obviously, readability can suffer when you start to abbreviate too much, so I'm looking for best practices when it comes to the namespace prefix.
    Thanks for your comment.

  • Rules for the namespace prefix structure....please help

    Hello,
    I want to know the specific rules for thePCD Object's namespace prefix structure. I know, and all the doc that i have says that i can put the namespace prefix like com.company.pct. Now i want to now for example if i have an iview that hold an HR application for my company, if it is ok that i call the namespace prefix  of that iview like this: com.company.pct.hr.iviews. I saw in one doc, that maybe SAP use this structure in order to set this value like this: com.sap.km.iview. so i have that doubt. Please if anyone can help me....
    Regards
    Mariana

    Hello Mariana,
    I am not particulary aware of any 'rule' per se on namespace prefix structure for SAP applications. Maybe a general guideline - like the non-usage of special characters in it (that I believe is not allowed in the first place). In Java terms, these are called 'packages' -- you can have say: com.company.util.statistics -- for statistics-related utilities. That said, for me at least, it's a matter of proper organization of these objects into packages. For plain java utility classes you custom-built, there are instances that you are required to use it. That said, I am not sure that there are particulars that you have to adhere to strictly.
    Jan

  • Changing / Setting Namespace Prefix in SAX

    I am using sax to parse a document and I was wondering how I could change an existing namespace prefix or add one to the front of every element. I am using an XML standard called PIDX which requires each element to look like this "<pidx:ELEMENTNAME>". I know this should not be required but the standard requires it. I am familiar with using the startElement and endElment methods but I am not sure how to set a prefix. Any help or examples would be appreciated.

    I recognize all of the words in the item you posted, but when I tried to parse the whole message, I got nothing.
    If you are using SAX to parse a document, it is just telling you what it sees by calling the various SAX methods like startElement, etc. If the XML document should have namespaces for all elements and it doesn't, it is not the fault of SAX, but of the program that created the XML data. So, you cannot set a prefix in SAX. You can be told by SAX that it saw a prefix, and by not seeing a call, you can tell that there was no prefix.
    How is the XML data generated? That is where you should first be concerned.
    In this case, SAX is just the messenger telling you what is in the XML data.
    Dave Patterson

  • JDeveloper 10.1.3 - Disabling ns0: namespace prefix in soap body children ?

    I am attempting to use a PeopleSoft web service. However, the PeopleSoft web service does not recognize operations which have a namespace prefix. Using visual studio, namespace prefixes are not used in the child elements of the soap body element. I am able to call the service using visual studio.
    JDeveloper 10.1.3 uses a namespace prefix for children of the body element which is recommended by the soap spec. However, I need to disable that behavior so that I can actually get the program working with PeopleSoft.
    Can anyone tell me if there is an easy way to disable the ns0: prefix that is used by the generated web service proxy stub? I have traced through the generated proxy code but I do not see any properties that can be modified. The only thing I can think of is to modify the generated code but I do not want to go that route.
    Thanks,
    Rich

    Delete the NS0: related text, in JDev, from your WSDL and it should work. I had the same problem with .NET not liking it also.
    Keep in mind you'll have to tweak the WSDL again if you regenerate it.
    You sure you're using 10.1.3? I upgraded and it shows the NS0: as a problem in existing projects. I'm working on the latest, production download so maybe it's been corrected.

  • How do I change the final email sent (subject & body) message that is sent out once an agreement is completed?

    I would like to change the email wording (in the subject line & message body) that is sent out when an agreement has been fully e-signed by all parties. The current message is that "the agreement betweenn XXXX & YYYY is signed and filed!" I would like to remove the filed bit as this may be misleading to my clients. Many thanks in advance.

    Hi,
    Support should be able to assist with this. Please log a ticket with them directly.
    Thanks

  • Change the Namespace and Root Node Name

    Hi,
    I have following xml :
    <ns2:Students xmlns:ns2="http://MyProject.CommonSchema">
        <ns2:Student>
          <HeaderSegment>
            <FName>AA</FName>
            <LName>AA</LName>
          </HeaderSegment>
        </ns2:Student>
      </ns2:Students>
    Now I want to change the root node name and namespace name.
    I want the following output:
    <ns2:MyStudents xmlns:ns2="http://MyProject.MySchema">
        <ns2:Student>
          <HeaderSegment>
            <FName>AA</FName>
            <LName>AA</LName>
          </HeaderSegment>
        </ns2:Student>
      </ns2:Students>
    I searched on the google but not found any right solution.
    Any kind of help would be appreciated.
    Prakash

    You should have told us that you wanted an XmlDocument. Anyway, you could use a XDocument to create and modify the XML and then return an XmlDocument like this:
    public static XmlDocument CreateXmlDocument(string xml) {
    //load the XML data
    XDocument doc = XDocument.Parse(xml); //or use XDocument.Load to load a file
    //change from old to the new namespace:
    XNamespace newNs = "http://MyProject.MySchema";
    var elemens = doc.Root.Elements();
    foreach (var elem in doc.Root.Elements()) {
    if (elem.Name.Namespace != string.Empty) {
    elem.Name = newNs + elem.Name.LocalName;
    //remove old namespace attribute:
    XAttribute atr = doc.Root.Attributes(XNamespace.Xmlns + "ns2").FirstOrDefault();
    if (atr != null)
    atr.Remove();
    //add the new namespace
    doc.Root.Add(new XAttribute(XNamespace.Xmlns + "ns2", newNs));
    doc.Root.Name = newNs + "Students2";
    string newXml = doc.ToString();
    XmlDocument xmlDocument = new XmlDocument();
    using (var xmlReader = doc.CreateReader()) {
    xmlDocument.Load(xmlReader);
    return xmlDocument;
    Usage:
    string xml = "<ns2:Students xmlns:ns2=\"http://MyProject.CommonSchema\"><ns2:Student><HeaderSegment><FName>AA</FName><LName>AA</LName></HeaderSegment></ns2:Student></ns2:Students>";
    XmLDocument doc = CreateXmlDocument(xml);
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

  • Changing the filename prefix or setting the starting number

    I have two PowerShots. I have been using one for years. My newer one sets the filenames with the same prefix, IMG, and starts numbering at 0001. Can I change this so I don't get duplicate filenames in my photo library. I realize that having the new photos in different folders will help to prevent overwriting the existing ones. I would like to prevent the confusion or possible overwriting by mistake.
    Thanks for any advice.

    Hi Apic13,
    To keep your camera from resetting the file numbers, press the MENU button and go to the settings tab, It's yellow and normally has a wrench and hammer on it.  Now scroll down to "File Numbering", then use the right or left arrow to choose "Continuous", then press the MENU button again.
    This may vary slightly from model to model.
    I hope this helps,
    Richard
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How do I change the default paragraph style from Body Text?

    The default paragraph style in my email setup is Body Text. This does not wrap properly for some recipients, but Paragraph does. How do I change the default so that Paragraph is automatically used when I start a new email?

    There are two types of defaults: defaults for all new documents and defaults for the current document. To change the default for any open document make sure no text frame is active and change the formatting as desired in either the Control panel or the Character and Paragraph panels. To change default formatting for new document (those not yet created) do this while no file is open. You can’t change the defaults for several documents at once without a script.

  • Change the dial prefix on UC560?

    Is it possible to change the dial out prefix to another number besides 9?                    

    Hey,
    This articles gives a descriptive explanation on how to change the dial out prefix
    Configuration of Outgoing Dial Plan on UC500 Series
    Regards,
    Vishal

  • How do I change the name of a folder in content space?

    As far as I can see there is no way to change the name of a folder/space in Livecycle. I have looked in the contentspace admin interface and searched all the api:s with no result. I assume there IS a way to do it?
    /Lucas

    Right click it, go to Properties and then change it there.

Maybe you are looking for