Company namespace

Hi all,
I'm new to SAP and am currently taking the elearning for the SDK.  One of the lessons indicated it was necessary for a company to obtain a company namespace.  My question is do we only need one namespace for our company or would we need a different namespace for each of the addon projects we will build?
They also mentioned a development prefix, does that need to be registered as well?
TIA,
Steve

Hello,
yes you need only one namespace. That ensure you that all the development you may do regardless the AddOn will be unique.
then, depending of what you want to do, you may have to ask licencekey name.
If you create AddOn for your own company, you don't need to ask for a licencekey name, but if you want to sell Add-On, you need one licencekey name for each add on.
With the licencekey name, you can generate an AddOn Identifier, that you use in the parameters to connect to Business One
HTH
Sebastien

Similar Messages

  • Change namespace for development objects

    hi at all,
    i have to transport a lot of customer development objects (reports, tables, programs, WebDynpro-components...) from one system to another development system. in the source system all customer-objects are named like Y* or Z* (e.g. Z_CM_COURSDETAILS).
    After that in the target system i have to change this names into our own company namespace (like /ABCD/CM_COURSDETAILS).
    How can i do this? The company namespace is activated an part of the view V_TRNSPACE.
    So, do i have to change every object by myself? Or is there a report or another automaticly help?
    Thanks for your information and help,
    regards
    Hendrik

    You can probably write a small BDC in the target system which accepts one type of objects, rename the object and activate it.

  • SAP Standard Roles

    Hello everyone.
    What is SAP's best practice for using (customizing) the SAP standard roles? I have always used the standard roles as templates to customize for my customers. Is there a stated SAP best practice for this?
    If I use a standard role, customize it and copy it to the company namespace and the standard role it is customized off of changes, does my customized role change?
    How do release upgrades affect the standard SAP roles?
    Thanks!
    Todd

    Hi Todd,
    If you copy the roles to a your own namespace then they won't be touched during upgrade.
    I can't comment on what happens to standard roles during upgrade as I tend to avoid them.
    There is no accepted best practice around using standard roles, though there is reasonably wide belief that developing your own from the ground up is a better way to develop roles to meet your customers business processes. 
    I find that where standard roles have been used, the end user roles have generally a lot of unused transactions.  Functional & business people see a large list & choose most of them rather than building up from a subset of inscope transactions which are also used for training, BPP's etc.
    There is also the consideration that using standard roles guides you to building in the same way.  That's not to say it is a bad way, just can limit flexibility if you build down to a task level (nasty, nasty, nasty) or higher at a job or function level.
    Cheers
    Alex

  • Flash in a portlet

    I have an html portlet with a flash file embeded in the html, but when I try to load the portlet it looks for the flash file in the http:\\portalserver\portal\ directory instead of on the portlet server. The swf file and html file are in the same directory on the portlet server. Anybody have any ideas?
    Berney

    // This exact code works in both ALUI 6.1 (.net 1) and 6.5 (.net 2) w/ no changes necessary
    using System;
    using com.plumtree.openfoundation.util;
    using com.plumtree.portaluiinfrastructure.tags;
    using com.plumtree.portaluiinfrastructure.tags.metadata;
    using com.plumtree.server;
    using com.plumtree.uiinfrastructure.constants;
    using com.plumtree.xpshared.htmlelements;
    using com.plumtree.openlog;
    using com.plumtree.openkernel.config;     // PortalObjectsFactory - GetAdminSession()
    using com.plumtree.xpshared.config;          // ConfigPathResolver     - GetAdminSession()
    using com.plumtree.openkernel.factory; // OKConfigFactory          - GetAdminSession()
    using com.plumtree.openfoundation.web; // IXPRequest
    using System.Text;
    using com.plumtree.uiinfrastructure.activityspace; // ActivitySpace
    using com.plumtree.portalpages.common.uiparts;          // NavigationModel
    using ConfigHelper = com.plumtree.uiinfrastructure.statichelpers.ConfigHelper;
    namespace FooCustomTags.src.com.Foo.taglib
    public class FlashTag : ATag
    public FlashTag() : base()
    public static readonly ITagMetaData TAG;
    public static readonly RequiredTagAttribute FILENAME;
    public static readonly RequiredTagAttribute ISRVRPATH;
    public static readonly RequiredTagAttribute HEIGHT;
    public static readonly RequiredTagAttribute WIDTH;
    public static readonly OptionalTagAttribute RESTRICTTOCOMMID;
    public static readonly OptionalTagAttribute PLAY;
    public static readonly OptionalTagAttribute LOOP;
    public static readonly OptionalTagAttribute QUALITY;
    public static readonly OptionalTagAttribute WMODE;
    public static readonly OptionalTagAttribute SCALE;
    public static readonly OptionalTagAttribute BGCOLOR;
    private static OpenLogger log = OpenLogService.GetLogger("FooCustomTags","FlashTag");
    static FlashTag()
    TAG = new TagMetaData("flashtag", "This tag displays EOD properties for the current user.");
    FILENAME = new RequiredTagAttribute("filename", "filename.swf",AttributeType.STRING);
    ISRVRPATH = new RequiredTagAttribute("isrvrpath", "everything after isrvr.com/is/ and before /myfile.swf; e.g. CustomImages/FOO",AttributeType.STRING);
    HEIGHT = new RequiredTagAttribute("height", "movie height",AttributeType.INT);
    WIDTH = new RequiredTagAttribute("width", "movie width",AttributeType.INT);
    RESTRICTTOCOMMID = new OptionalTagAttribute("restricttocommid","render tag only on this community; great for single header optimazation when only need flash on home page", AttributeType.INT, "0");
    PLAY = new OptionalTagAttribute("play","swf param attribute", AttributeType.STRING, "True");
    LOOP = new OptionalTagAttribute("loop","swf param attribute", AttributeType.STRING, "False");
    QUALITY = new OptionalTagAttribute("quality","swf param attribute", AttributeType.STRING, "autohigh");
    WMODE = new OptionalTagAttribute("wmode","swf param attribute", AttributeType.STRING, "opaque");
    SCALE = new OptionalTagAttribute("scale","swf param attribute", AttributeType.STRING, "");
    BGCOLOR = new OptionalTagAttribute("bgcolor","swf param attribute", AttributeType.STRING, "#");
    /// <seealso cref="com.plumtree.portaluiinfrastructure.tags.ATag#DisplayTag()"></seealso>
    public override HTMLElement DisplayTag()
    string fileName = GetTagAttributeAsString(FILENAME);
    string isrvrPath = GetTagAttributeAsString(ISRVRPATH);
    int height = GetTagAttributeAsInt(HEIGHT);
    int width = GetTagAttributeAsInt(WIDTH);
    int restrictToCommId = GetTagAttributeAsInt(RESTRICTTOCOMMID);
    string strShowThis = string.Empty;
    string swfPLAY = GetTagAttributeAsString(PLAY);
    string swfLOOP = GetTagAttributeAsString(LOOP);
    string swfQUALITY = GetTagAttributeAsString(QUALITY);
    string swfWMODE = GetTagAttributeAsString(WMODE);
    string swfSCALE = GetTagAttributeAsString(SCALE);
    string swfBGCOLOR = GetTagAttributeAsString(BGCOLOR);
    AActivitySpace m_asOwner = (AActivitySpace) this.GetEnvironment();
    NavigationModel navModel = (NavigationModel) m_asOwner.GetModel(NavigationModel.STR_MVC_CLASS_NAME);
    if(restrictToCommId == 0 || restrictToCommId == navModel.GetCurCommunityID())
    StringBuilder sb = new StringBuilder();
    string[] httpFix = ConfigHelper.GetImageServerBaseURL(m_asOwner).Split('/');
    log.Debug(httpFix[0] + ", " + isrvrPath + "/" + fileName + "; " + height + "x" + width);
    string imgUrl = ConfigHelper.GetImageServerBaseURL(m_asOwner).Replace("plumtree",isrvrPath);
    sb.Append("<object CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
    sb.Append("WIDTH=\"" + width + "\" ");
    sb.Append("HEIGHT=\"" + height + "\" ");
    sb.Append("codebase=\"");
    sb.Append(httpFix[0] + "//active.macromedia.com/flash3/cabs/swflash.cab#version=3,0,0,0\" id=\"ShockwaveFlash1\">");
    sb.Append("<param name=\"MOVIE\" ");
    sb.Append("value=\"" + imgUrl + fileName + "\">");
    sb.Append("<param name=\"PLAY\" value=\"" + swfPLAY + "\">");
    sb.Append("<param name=\"BGCOLOR\" value=\"" + swfBGCOLOR + "\">");
    sb.Append("<param name=\"LOOP\" value=\"" + swfLOOP + "\">");
    sb.Append("<param name=\"QUALITY\" value=\"" + swfQUALITY + "\">");
    sb.Append("<param name=\"SCALE\" value=\"" + swfSCALE + "\">");
    sb.Append("<param name=\"WMODE\" value=\"" + swfWMODE + "\">");
    sb.Append("<embed SRC=\"" + imgUrl + fileName + "\" ");
    sb.Append("WIDTH=\"" + width + "\" ");
    sb.Append("HEIGHT=\"" + height + "\" ");
    sb.Append("PLAY=\"" + swfPLAY + "\" ");
    sb.Append("BGCOLOR=\"" + swfBGCOLOR + "\" ");
    sb.Append("PLUGINSPAGE=\"" + httpFix[0] + "//www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash\">");
    sb.Append("</object>");
    strShowThis = sb.ToString();
    HTMLElementCollection result = new HTMLElementCollection();
    result.AddInnerHTMLString(strShowThis);
    return result;
    #region interface stubs
    /// <seealso cref="com.plumtree.portaluiinfrastructure.tags.ATag#GetTagType()"></seealso>
    public override TagType GetTagType()
    // This tag does not display any of the HTML inside the tag,
    // and must be used as a singleton tag.
    return TagType.NO_BODY;
    /// <seealso cref="com.plumtree.portaluiinfrastructure.tags.ATag#SupportsAccessStyle(AccessStyles)"></seealso>
    public override bool SupportsAccessStyle(AccessStyles _style)
    // This tag does not display any JavaScript, and therefore
    // supports all access styles.
    return true;
    /// <seealso cref="com.plumtree.portaluiinfrastructure.tags.ATag#Create()"></seealso>
    public override ATag Create()
    return new FlashTag();
    #endregion
    Edited by: tjannotta on Nov 17, 2009 8:58 AM
    I replaced our company namespace info, etc. w/ 'foo'. Replace or strip out as you see fit!
    Check out my post higher up on this page for attribute instructions and example implementation

  • SOAP web service: null parameter if namespace not declared in envelope

    Hi guys,
    We are exposing a SOAP web service on WebLogic Portal 10.0. The service has one method which takes a single parameter. The service works correctly if the namespace is declared in the envelope element, but it is unable to map the request correctly if the namespace is declared on each request element and so the single parameter is null.
    This works:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://company.com/inventory">
       <soapenv:Header/>
       <soapenv:Body>
          <inv:CheckProductReservation>
             <username>6144</username>
             <udac>GP1</udac>
             <directoryYpgCode>00903</directoryYpgCode>
             <headingCode>0000001005</headingCode>
             <validityStartDate>2009-09-01</validityStartDate>
             <validityEndDate>2010-08-31</validityEndDate>
             <reservationCode>1234</reservationCode>
          </inv:CheckProductReservation>
       </soapenv:Body>
    </soapenv:Envelope>This fails:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <SOAP-ENV:Body>
          <CheckProductReservation xmlns="http://company.com/inventory">
             <username xmlns="http://company.com/inventory">6144</username>
             <udac xmlns="http://company.com/inventory">GP1</udac>
             <directorycompanyCode xmlns="http://company.com/inventory">00903</directorycompanyCode>
             <headingCode xmlns="http://company.com/inventory">0000001005</headingCode>
             <validityStartDate xmlns="http://company.com/inventory">2009-09-01</validityStartDate>
             <validityEndDate xmlns="http://company.com/inventory">2010-08-31</validityEndDate>
             <reservationCode xmlns="http://company.com/inventory">1234</reservationCode>
          </CheckProductReservation>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>These two requests seem equivalent and syntactically correct. Interestingly enough, soapUI seems to think that the 2nd request is not valid.
    Any ideas why the 2nd request is not working?
    Thanks!

    The WSDL doesn't define the elementNameQualified attribute anywhere. The WSDL looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:im="http://company.com/inventory" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InventoryService"
         targetNamespace="http://company.com/inventory">
         <wsdl:types>
              <xsd:schema targetNamespace="http://company.com/inventory">
                   <xsd:element name="CheckProductReservation">
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="username" type="xsd:string" maxOccurs="1" minOccurs="1" />
                                  <xsd:element name="udac" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
                                  <xsd:element name="directorycompanyCode" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
                                  <xsd:element name="headingCode" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
                                  <xsd:element name="validityStartDate" type="xsd:date" maxOccurs="1" minOccurs="1"></xsd:element>
                                  <xsd:element name="validityEndDate" type="xsd:date" maxOccurs="1" minOccurs="1"></xsd:element>
                                  <xsd:element name="reservationCode" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
                   <xsd:element name="CheckProductReservationResponse">
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="resultCode" type="im:checkProductReservationResultCode" maxOccurs="1"
                                       minOccurs="1">
                                  </xsd:element>
                                  <xsd:element name="message" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
                   <xsd:simpleType name="checkProductReservationResultCode">
                        <xsd:restriction base="xsd:int">
                             <xsd:enumeration value="0" />
                             <xsd:enumeration value="1" />
                             <xsd:enumeration value="2" />
                             <xsd:enumeration value="3" />
                             <xsd:enumeration value="99" />
                        </xsd:restriction>
                   </xsd:simpleType>
              </xsd:schema>
         </wsdl:types>
         <wsdl:message name="CheckProductReservationRequest">
              <wsdl:part name="parameters" element="im:CheckProductReservation"></wsdl:part>
         </wsdl:message>
         <wsdl:message name="CheckProductReservationResponse">
              <wsdl:part name="parameters" element="im:CheckProductReservationResponse"></wsdl:part>
         </wsdl:message>
         <wsdl:portType name="InventoryService">
              <wsdl:operation name="CheckProductReservation">
                   <wsdl:input message="im:CheckProductReservationRequest"></wsdl:input>
                   <wsdl:output message="im:CheckProductReservationResponse"></wsdl:output>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="InventoryServiceSOAP" type="im:InventoryService">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
              <wsdl:operation name="CheckProductReservation">
                   <soap:operation soapAction="http://company.com/inventory/VerifyProductReservationCode" />
                   <wsdl:input>
                        <soap:body use="literal" />
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body use="literal" />
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:service name="InventoryService">
              <wsdl:port binding="im:InventoryServiceSOAP" name="InventoryServiceSOAP">
                   <soap:address location="http://www.company.com/" />
              </wsdl:port>
         </wsdl:service>
    </wsdl:definitions>What does that tell us?

  • Configuring SMTP Namespace Sharing between two Exchange Forests on the same LAN

    Hi guys, really hoping that someone can help me with configuring SMTP Namespace Sharing between two Exchange Forests on the same LAN.
    Basically, I have created a new forest and installed a new exchange organisation in this forest.  Both forests are located on the same IP subnet and a two way trust has been created between the forests.  Federated sharing has also been configured. 
    I can use ADMT to migrate the user and computer accounts to the new forest and also migrate test mailboxes over.  Ideally, I want to be able to do the mailbox migrations in stages so will need to be able to have mail flowing between the two forests. 
    I have read over the following article (http://ibrahimnore.wordpress.com/2012/09/06/configuring-smtp-namespace-sharing-between-two-exchange-forests-part-2/)
    which is good but it's demonstrating over the internet, can anybody advise how this can be achieved on the local LAN? 
    Any help greatly appreciated :-)

    Hi Gilliano,
    Thanks for correct link. I must say this is a very good article indeed, I read the entire article and if you go to the 3rd part of this article, please note the text "DOMAINC.COM is configured as Internal Relay Accepted Domain on both the domains"
    This is exactly what I asked you to check. Personally, I understand the method described in this article will work but its very complex to manage and administer, while the easiest option is to configure internal relay at the first place and no need to make
    so many DNS changes and customizations to your environment.
    The solution really depends on what your requirement is - Since you mentioned that you are migrating stuff over from source to destination - I feel this article is too complex for your situation and not really worth (for your requirement). The setup described
    in the article is an excellent choice if you are planning to keep both forests alive for longer duration due to several reasons like compliance or company mergers and so on...
    please let me know if my explanation is not clear enough.. we can even even have a one-on-one email conversation too!
    All the best!
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. Regards, Siva

  • How to add namespaces before a tag name in XML??

    Dear friends:
    I have following code, and hope to add namespaces before the tagname such as Company, Location and even any attributes in this xml,
    Can you help throw some lights??
    Thanks in advance.
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Attr;
    import org.w3c.dom.Document;
    import com.sun.org.apache.xml.internal.serialize.OutputFormat;
    import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    import org.w3c.dom.Element;
    public class DocWriteDOMStart {
        public static void main(String[] av) throws IOException {
            DocWriteDOMStart dw = new DocWriteDOMStart();
            Document doc = dw.makeDoc();
            ((org.apache.crimson.tree.XmlDocument)doc).write(System.out);
        /** Generate the XML document */
        protected Document makeDoc() {
            try {
                DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
                DocumentBuilder parser = fact.newDocumentBuilder();
                Document doc = parser.newDocument();
                Element root = doc.createElement("Company");;
                doc.appendChild(root);
                Element loc = doc.createElement("Location");
                root.appendChild(loc);
                Element emp = doc.createElement("Employee");
                loc.appendChild(emp);
                emp.appendChild(doc.createTextNode("Daniel Bush"));
                Element emp2 = doc.createElement("Employee");
                loc.appendChild(emp2);
                emp2.appendChild(doc.createTextNode("Sandy Moore"));  
                Element dept = doc.createElement("Department");
                Element e = (Element)dept;
                e.setAttribute("Nationality", "USA");
                e.setAttributeNS("www.yahoo.com", "dept", "http://www.google.com");
                //e.setAttributeNodeNS(newAttr);
                loc.appendChild(e);
                e.appendChild(doc.createTextNode("IT Depart"));
                return doc;
            } catch (Exception ex) {
                System.err.println(ex.getClass());
                System.err.println(ex.getMessage());
                return null;
    }and I got
    <?xml version="1.0" encoding="UTF-8"?>
    <Company>
      <Location>
        <Employee>Daniel Bush</Employee>
        <Employee>Sandy Moore</Employee>
        <Department Nationality="USA" dept="http://www.google.com">IT Depart</Department>
      </Location>
    </Company>hope to add namespaces before the tagname such as Company, Location and even any attributes such as dept, nationality etc in this xml,
    I try but fail.

    You would have to write code that does that, then. Right now your code writes that part of your XML as elements that aren't in a namespace. I can tell you know there are different methods to write elements that are in a namespace because you used a different method to try to write an attribute that is in a namespace.

  • How to add multiple namespaces in XSD ?

    Can anyone tell me how to add multiple namespaces inside an XSD. Or how to import XSD into another XSD ??
    Thanks

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xml.ibridge.nl/nl/rsg/domein/3/company" xmlns:alg="http://mynamespace/generic" targetNamespace="http://xml.ibridge.nl/nl/rsg/domein/3/company" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
         <xs:import namespace="http://mynamespace/generic" schemaLocation="algemeen.xsd"/>
    you define xmlns:alg with a namespace
    and after that use the namespace itself to import a xsd for it

  • XSLT namespace issue (ns0 & ns1 tags to be removed without affectng Nmespc)

    Hi Friends ,
    I need some help in XSLT programming.
    My requirement is something like this:
    <b>Input XML:</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:GovTalkMessage xmlns:ns0="http://www.govtalk.gov.uk/CM/envelope">
         <ns0:EnvelopeVersion>2.0</ns0:EnvelopeVersion>
         <ns0:Header>
              <ns0:MessageDetails>
                   <ns0:Class>IR-PAYE-EOY</ns0:Class>
                   <ns0:Transformation>XML</ns0:Transformation>
                   <ns0:GatewayTest>1</ns0:GatewayTest>
              </ns0:MessageDetails>
         </ns0:Header>
         <ns0:Body>
              <ns1:IRenvelope xmlns:ns1="http://www.govtalk.gov.uk/taxation/EOY/06-07/1">
                   <ns1:IRheader>
                        <ns1:DefaultCurrency>GBP</ns1:DefaultCurrency>
                        <ns1:Sender>Company</ns1:Sender>
                   </ns1:IRheader>
               </ns1:IRenvelope>
         </ns0:Body>
    </ns0:GovTalkMessage>
    <b>I want the OUTPUT xml in the following format:</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
         <EnvelopeVersion>2.0</EnvelopeVersion>
         <Header>
              <MessageDetails>
                   <Class>IR-PAYE-EOY</Class>
                   <Qualifier>request</Qualifier>
                   <Function>submit</Function>
                   <CorrelationID/>
                   <Transformation>XML</Transformation>
                   <GatewayTest>1</GatewayTest>
              </MessageDetails>
         </Header>
         <Body>
              <IRenvelope xmlns="http://www.govtalk.gov.uk/taxation/EOY/06-07/1">
                   <IRheader>
                        <DefaultCurrency>GBP</DefaultCurrency>
                        <Sender>Company</Sender>
                   </IRheader>
               </IRenvelope>
         </Body>
    </GovTalkMessage>
    That is basically I need the ns0 and ns1 tags to be removed without affecting the Namespaces
    Looking forward for you reply.
    Best regards,
    Chandan
    Message was edited by:
            Chandan A C

    Try this stylesheet.....and let me know if this is OK
    <b><i>
    <?xml version='1.0' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.govtalk.gov.uk/CM/envelope" xmlns:b="http://www.govtalk.gov.uk/taxation/EOY/06-07/1">
         <xsl:template match="/">
              <GovTalkMessage>
                   <EnvelopeVersion>
                        <xsl:value-of select="a:GovTalkMessage/a:EnvelopeVersion"/>
                   </EnvelopeVersion>
                   <Header>
                        <MessageDetails>
                             <Class>
                                  <xsl:value-of select="a:GovTalkMessage/a:Header/a:MessageDetails/a:Class"/>
                             </Class>
                             <Transformation>
                                  <xsl:value-of select="a:GovTalkMessage/a:Header/a:MessageDetails/a:Transformation"/>
                             </Transformation>
                             <GatewayTest>
                                  <xsl:value-of select="a:GovTalkMessage/a:Header/a:MessageDetails/a:GatewayTest"/>
                             </GatewayTest>
                        </MessageDetails>
                   </Header>
                   <Body>
                        <IRenvelope>
                             <IRheader>
                                  <DefaultCurrency>
                                       <xsl:value-of select="a:GovTalkMessage/a:Body/b:IRenvelope/b:IRheader/b:DefaultCurrency"/>
                                  </DefaultCurrency>
                                  <Sender>
                                       <xsl:value-of select="a:GovTalkMessage/a:Body/b:IRenvelope/b:IRheader/b:Sender"/>
                                  </Sender>
                             </IRheader>
                        </IRenvelope>
                   </Body>
              </GovTalkMessage>
         </xsl:template>
    </xsl:stylesheet></i></b>

  • XSLT for adding Namespace is not being executed at runtime

    Hi Gurus,
    I am trying to add a Namespace to inbound xml and I wrote a simple XSLT mapping as below, when I execute this using XML spy or in Operation mapping manually it is working fine and giving me output as expected but at runtime it is not executing, I am getting same input xml as output xml and receiver agreement is failing...
    Appreciate your thoughts..
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" encoding="UTF-8"/>
            <xsl:template match="*">
              <ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
              <xsl:copy-of select="//SalesReportInfo"/>
         </ns0:SalesXmlExtended>
         </xsl:template>
    </xsl:stylesheet>
    input xml is as below....
    <?xml version="1.0" encoding="UTF-8"?>
    <SalesXmlExtended>
         <SalesReportInfo>
              <SalesReport>
                   <Detail>
                        <deptNum>0270</deptNum> etc...
    output I am getting in XMLSpy and OM is as below, this is exactly what I need...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
         <SalesReportInfo>
              <SalesReport>
                   <Detail>
                        <deptNum>0270</deptNum>
    Thanks...
    Sukarna...

    Hi Baskar,
    Yeah, that is what my issue is , it shouldn't be failing but it is...
    I tried by manipulating the required namespace in the input file and it is working fine with out any errors....so I am guessing the XSLT is not being executed...
    I am getting below error which is valid because the transformation is not happening
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIServer</SAP:Category>
    <SAP:Code area="OUTBINDING">CO_TXT_OUTBINDING_ERROR</SAP:Code>
    <SAP:P1>-BS_HOUSE_OF_FRASER_DEV</SAP:P1><SAP:P2>-BD1_100,urn:.com/HoF/POS/EOD/sndr.SI_Out_HoFSales_XML</SAP:P2>
    <SAP:P3/>
    <SAP:P4/>
    <SAP:AdditionalText>No standard agreement found for , BS_HOUSE_OF_FRASER_DEV, , BD1_100, urn:/HoF/POS/EOD/sndr, SI_Out_HoFSales_XML</SAP:AdditionalText
    ><SAP:Stack>Problem occurred in receiver agreement for sender -BS_HOUSE_OF_FRASER_DEV to receiver -

  • ParserException: XMLParser: Prefix 'xsl' is not mapped to a namespace

    Hi
    although I do not think this is an XI problem.. I hope that somebody with more XSLT experience that I might be able to help.
    I have a rather simple XSLT that is used to convert an EXCEL XML document into another XML format.  The XSL that I have worked when I tested it via standalone SAXON or MSXML transformation.
    But using the SAP product it gives me the error Prefix 'xsl' is not mapped to a namespace.
    Here is the top part of the XSL
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:sp="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:of="urn:schemas-microsoft-com:office:office">
    <xsl:output method = "xml"  version="1.0" encoding="ISO-8859-1" omit-xml-declaration="no" standalone="no" indent="yes"  />
       <xsl:template match="/">
         <dvabatch>
              <xsl:apply-templates select = "//of:DocumentProperties" />
         </dvabatch>
       </xsl:template>
    .... and so on.....
    and the top part of the XML source
    <?xml version="1.0"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Author>Peter Munt</Author>
      <LastAuthor>muntp</LastAuthor>
      <LastPrinted>2006-01-30T23:53:27Z</LastPrinted>
      <Created>2003-02-06T18:19:41Z</Created>
      <LastSaved>2006-03-01T03:59:11Z</LastSaved>
      <Company>DVA</Company>
      <Version>10.2625</Version>
    </DocumentProperties>
    <CustomDocum  ....
    ..... and so on .....

    Hi Peter,
    just for clarification:
    You zipped the XSL File and imported it into a Mapping Archive, then assigned the XSL Mapping to an interface mapping and receive the error in the Message Monitoring?
    Is that the case?
    regards,
    Peter

  • Namespace prefix problem in http adapter response

    Hi All;
    I use http adapter to call a third party service. I  post a XML request and it responses me as XML again..
    But when I call the proxy, it gives mapping error in response. because it expects namespace prefix in the first tag of the response xml.
    How can I get this xml back without any namespace?
    My response xml likefollowing  
    <?xml version="1.0" encoding="UTF-8" ?>
        <OrderLines>
           <item>
               <DocumentNo>99000140</DocumentNoitem>
        </item> 
    </OrderLines>
    but the adapter expects as
    <?xml version="1.0" encoding="UTF-8" ?>
        <ns0:OrderLines xmlns:ns0="http://company.com">
           <item>
               <DocumentNo>99000140</DocumentNoitem>
        </item> 
    </ns0:OrderLines>

    You can use the XMLAnonymizer module with your adapter (if you are using SOAP adapter for the call as HTTP adapter does not support modules) to remove the namespaces. Kindly check the following blogs for modules:
    Gabriel Sagaya Selvam - Standard Adapter Framework modules in PI 7.1 u2013Part 1
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-1
    Gabriel Sagaya Selvam - Standard Adapter Framework modules in PI 7.1 u2013Part 2
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-2
    Regards,
    Gökhan

  • XSLT with namespaces

    Hello everyone:
    I am using the xalan-j_2_2_D9 from apache to design my style sheets. I was going through the examples that come along with the package and tried out the simple transform program for a style sheet and a corresponding xml file.
    It was strange really, when I apply the stylesheet to an xml file which has no namespaces...it works fine...bbut if there is a namespace there I get nothing.
    Is there any specific approach to be used in xslt if the xml record has namespaces
    Thanks
    Prashanth

    some code to support what I said above.....
    say I have the xml file....
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="sample1.xsl"?>
    <CATALOG xmlns="http://www.xyz.com/schema" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xmlns:abc="http://www.xyz.com/schema" xsi:schemaLocation="http://www.xyz.com/xsd/metadatav1p1 xyz_rootv1p1.xsd">
         <CD>
              <abc:TITLE>Empire Burlesque</abc:TITLE>
              <ARTIST>Bob Dylan</ARTIST>
              <COUNTRY>USA</COUNTRY>
              <abc:COMPANY>Columbia</abc:COMPANY>
              <PRICE>10.90</PRICE>
              <YEAR>1985</YEAR>
         </CD>
    </CATALOG>
    and my stylesheet reads as follows....
    <?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <html>
    <body>
    <xsl:for-each select="CATALOG">
    <xsl:value-of select="CD/ARTIST"/>
    </xsl:for-each>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    I use the XALAN's simpletransform program
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerConfigurationException;
    // Imported java classes
    import java.io.FileOutputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    * Use the TraX interface to perform a transformation in the simplest manner possible
    * (3 statements).
    public class SimpleTransform
         public static void main(String[] args)
    throws TransformerException, TransformerConfigurationException,
    FileNotFoundException, IOException
    // Use the static TransformerFactory.newInstance() method to instantiate
    // a TransformerFactory. The javax.xml.transform.TransformerFactory
    // system property setting determines the actual class to instantiate --
    // org.apache.xalan.transformer.TransformerImpl.
         TransformerFactory tFactory = TransformerFactory.newInstance();
         // Use the TransformerFactory to instantiate a Transformer that will work with
         // the stylesheet you specify. This method call also processes the stylesheet
    // into a compiled Templates object.
         Transformer transformer = tFactory.newTransformer(new StreamSource("xmlToHTML.xsl"/*Stylesheet*/));
         // Use the Transformer to apply the associated Templates object to an XML document
         // (foo.xml) and write the output to a file (foo.out).
         transformer.transform(new StreamSource("sample.xml"/*XML File*/), new StreamResult(new FileOutputStream("birds1.htm/*Output File*/")));
         System.out.println("************* The result is in birds1.htm *************");
    CODE COURTESY: Apache
    I get no output in my birds1.htm file except the html and body tags.!
    Can anybody please help me out with this
    Thanks a lot in advance
    Prashanth

  • How to change namespace in outbound file

    Hi,
    When I creates a outbound file using file adapter, BPEL or jDeveloper creates a file with its own namwspace like ns1: or ns15: or so on... But if I want to change it to my own tag say like tns: or its:, is it possible?
    example:
    the usual creation in BPEL:
    <?xml version="1.0" ?><ProvisionsInterface xmlns:ns1="http://www.mycomapny.com/ns/company/payments" xmlns="http://www.mycomapny.com/ns/company/payments">
    <ns1:Provider>
    <ns1:Id>1909909</ns1:Id>
    <ns1:Name>BASSETTS</ns1:Name>
    <ns1:Addr1>1 High Street</ns1:Addr1>
    I want to change it to:
    <?xml version="1.0" ?><ProvisionsInterface xmlns:tns="http://www.mycomapny.com/ns/company/payments" xmlns="http://www.mycomapny.com/ns/company/payments">
    <tns:Provider>
    <tns:Id>1909909</tns:Id>
    <tns:Name>BASSETTS</tns:Name>
    <tns:Addr1>1 High Street</tns:Addr1>
    Any idea, plase advice.
    Regards,
    Sreejit

    Hi,
    Thanks for reply.
    Actullay the requirement is that the target system doesn't want any namespace tag in front of the elements.
    I have got the answer and created a wrapper xsd, by which you can change or remove the namespace from the output file.
    example:
    <?xml version="1.0" encoding="utf-8" ?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.mycompany.com/ns/suppliers" <!-- target namespace from actual xsd -->
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" nxsd:version="DTD">
    <include schemaLocation="NameOfActualSchema.xsd"/>
    </schema>
    Regards,
    Sreejit

  • Problem with old namespace in WSDL file

    I have a problem with my WSDL file.  My scenario is SOAP to IDOC. 
    Originally the ESB data types were configured under namespace urn:test1:xxx  for development purposes.  When it came time to implement and test, we copied the data types from the old name space to a new namespace http://company.com:interface.
    After the new objects were created, all the old test objects were deleted, including the old namespace definition.  Now when I generate the WSDL file, the top part of the WSDL file looks correct, but toward the bottom, there are references to the old namespace.
    Does anyone know why these reference are appearing, and is there any way to correct this without deleting all my objects and rebuilding everything?
    Thanks in advance for any help.  Will award points for help.
    Terri

    Found the problem....the XML namespace in the Message type still contained the old namespace.  When this was changed to the new namespace, second target namespace was no longer generated.

Maybe you are looking for