XSLT Mapping: Namespace for prefix 'ns0' has not been declared

Hello, I am working on a synchronous SOAP call and having some trouble with the response message. The web service has its own namespace and I am trying to convert this to my custom data type in PI. PI wants the message to be in format of having ns0 prefix and namespace like we have defined (http://foo for example).
I have an XSLT mapping (see below) which works fine with my test response payload (pulled from SXMB_MONI source) on this online XSLT test site:
http://www.freeformatter.com/xsl-transformer.html
However when I import this archive to PI and test with operation mapping it always says "Namespace for prefix 'ns0' has not been declared."
This is very confusing because when I test it online, I see both prefix and namespace declaration perfectly. Is there a way to see the results in the PI test tool? After this XSLT java error it doesn't give me the output even in Trace Level All mode.
Please advise on this issue or if you know an easier way (such as altering my datatype/message type to match the inbound SOAP message). I tried working with the 3rd party WSDL but the response message types show a different root level node than what PI is receiving so I gave up to make my own matching datatype. I just have to solve this last inbound namespace issue and should be finished.
FYI I have refreshed all PI caches and activated all objects.
Thanks for your ideas!
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://foo"
  <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
  <xsl:template match="@* | node()">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
  </xsl:template>
  <xsl:template match="/*">
    <xsl:element name="ns0:{local-name()}">
      <xsl:apply-templates select="@* | node()" />
    </xsl:element>
  </xsl:template>
  <xsl:template match="/">
    <xsl:element name="{local-name()}">
      <xsl:apply-templates select="@* | node()" />
    </xsl:element>
  </xsl:template>
</xsl:stylesheet>

Some additional info, here is an example payload which goes through the XSLT mapping perfectly, but in PI I get the error about missing ns0 declaration.
XML input:
<bar xmlns='http://irrelevantnamespace'
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<foo/>
</bar>
XSLT mapped output using test tool and XSL above:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:bar xmlns:ns0="http://foo">
   <foo />
</ns0:bar>

Similar Messages

  • How to find out the GR Numbers for which IR has not been done

    Hi Sap Gurus,
    Can anybody tell me how to find out the G R Numbers for which Invoice Receipt has not been done. Any TC or ant standard process to find out.
    Thanks N Regards,
    Siddhartha

    Hi Siddarth,
    Solution :
            1) Go to SE16 - Table Name : EKBE (PO History)
            2) Field - BUDAT (Posting Date)
            3) Transaction event Type:
                             - 1 (Only GR's )
                             - 2 (Both GR and IR)
            4) We can fetch both GR Numbers and also PO Numbers for which IR has not been done if transaction event - 1.
    In addition to MB5S, you can try this also...

  • Goods receipt for purchase assignments has not been posted

    Hi all;
    In Vl02n in goods issue steps i have a message "Goods receipt for purchase assignments has not been posted"
    -the purchas order is assined to items delivery correctelly!
    -in our case, we haven't a stock.
    -after goods issue in vl02n we have tow goods mvt (101 for goods receipt) and (601 for goods issue) for the same quantity.
    so can you tell me how to solve this problem
    thx

    ok sir ;
    No i don't talke abouat STP i don't have any transit stock it's a simpl sales based on global purchas
    -first with me21n i created global purchas order
    -the sales will be picked from this purchas .
    -delivery is assigned automatically to this purchas order  with user exit.
    -with vl02n in goods issue steps there is tow operations ( stock mvt 101 in purchas assignement and a normal 601 for delivery )

  • Goods receipt for purchase assignments has not been posted. Mes. no. O1573

    Dear expert,
    I got a proplem with Intercompany STO as detail below:
    Goods receipt for purchase assignments has not been posted.
    Message no. O1573
    Diagnosis
    Certain fields needed for posting Goods Receipt have not been entered.
    System Response
    The goods receipt for Purchase Assignment was not posted.
    Procedure
    Check the error log and make the required entry.
    process Step by steps:
    1- create PO (intercompany PO) --> save
    2- create SO to sell to endcustomer (at receiving company)
    3- create DO
    4- assign the previewous PO to DO  (exchange function)
    5- PGI ---> problem as above
    Please, kindly help

    Dear all,
    In this case,  if I enter itemcategory "U" into PO I can post GR and GI at the same time I do PGI. but you know if I use "U" which mean I can't enter the net price as normal because this is a "stock transfer".
    Is there any ideal for this?
    Please, help me

  • Error: Permission denied for (document.domain has not been set) to call method Location.toString on (document.domain=).

    Why am I getting these errors Error: Permission denied for (document.domain has not been set) to call method Location.toString on (document.domain=).
    == URL of affected sites ==
    http://

    HOW DO YOU SET THIS??? I'M FRUSTRATED OVER THIS. ITS BEEN 2 MONTHS SINCE I HAVE BEEN ABLE TO PLAY ANY GAMES IN FACEBOOK DUE TO THIS PROBLEM! IT DOES NOT MATTER WHAT BROWSER I USE I STILL GET THIS SAME MESSAGE.

  • A Required COM Add-in program for XL Reporter has not been loaded and ....

    A Required COM Add-in program for XL Reporter has not been loaded and prohibits Microsoft Excel from running. For more information, click help.
    XL 2007, with the Trust level for macros set to minimum. SBO 2007 PL 42.
    Thanks
    Charles

    Read the following solution from SAP for your problem:
    When we open XL Reporter we get an error
    message "A required COM add-in program for XL Reporter has not been loaded
    and prohibits Microsoft Excel from running." when trying to open a report
    definition.
    SOLUTION FOR THE PROBLEM:
    Reason and Prerequisites
    You need to be an administrator on the local machine to add COM add-ins.
    Solution
    The user should be added as a member of the administrator role on the
    local computer the first time you start Excel from XL Reporter the first
    time so that the COM addin are registered, then you can remove the user
    from the administrator group again.
    Manually Loading the XL Reporter Excel COM Add-In
    Symptom
    If you install Microsoft Office after installing the XL Reporter
    application or use another Windows user than the one you used when
    installing XL Reporter, you can get an error message.
    Reason and Prerequisites
    The reason for this is that the report writer COM Add-in has not been
    loaded, which prohibits Microsoft Excel from running.
    Solution
    1. Start Microsoft Excel. If you already have the COM Add-ins command on
    the Tools menu, go to step 7.
    2. In the Tools menu, choose Customize.
    This opens the Customize window.
    3. Choose the Commands tab and select Tools from the Categories pane on
    the left.
    4. In the Command pane on the right, scroll down to the COM Add-ins
    command.
    5. Select the COM Add-ins command, hold down the mouse button, and drag
    COM Add-ins from the Commands pane over to the Tools menu on the Microsoft
    Excel men bar. When the Tools menu commands appear, point to where you
    want the COM Add-ins command to appear on the menu and release the mouse
    button.
    6. To close the Customize window, choose Close.
    7. On the Tools menu, choose the new COM Add-ins option.
    This opens the COM Add-ins window.
    8. In the window, choose Add to open the Add Add-in window.
    9.Select the IXXLReporter.dll file located in the Client directory in the
    XL Reporter program installation area and choose OK.
    10. In the COM Add-ins window, select the XL Reporter checkbox and choose
    OK.

  • SCCM Client Policy instance "The body for this policy has not been downloaded."?

    Hi,
    With PolicySpy I got SCCM Client Policy instance with an red and white symbol "The body for this policy has not been downloaded." what does that mean?
    /SaiTech

    Hi,
    Is there something not working? What is the core issue?
    -It is a long story, I will take the short version. I have had several supportcase at Microsoft, I think in two yeas time. We have done RAP as a Service, and no big issue. I have reinstalled the MP just some Days ago.
    I started with slow App-V 4 user centric deployment (hours). No I have an case at Microsoft support about Enable Win32_QuickFixEngineering class in the Client Setting hardware Inventory dont get enable at client side.
    If I do policy reset I think it take long time 15-30 minuters to all actions show up again.
    So I try to understand MP and policy, I have an feeling that something is not right but what?
    /SaiTech

  • Account for bank transfer has not been defined

    Hi,
    I am doing a Bank Transfer in my SDK development and I get following error:
    "Account for bank transfer has not been defined "
    I use _SYS00000000002 (Cash at Bank - Checking (HO, USA, GA )) from the US demo database for testing and it doesn't work.
    My code is below, even when this only for consuling.
    Thank you,
    Rune
    oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
                        oPayments.CardCode = vmp_CardCode_string;
                        oPayments.DocDate = DateTime.Now;
                        oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
                        oPayments.TaxDate = DateTime.Now;
                        SAPbobsCOM.Recordset oRecordset_BankAccount = null;
                        oRecordset_BankAccount = ((SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
                        oRecordset_BankAccount.DoQuery("SELECT * FROM [dbo].[@PAY_TYPE] WHERE [U_PayMethod] = '01'");
                        oRecordset_BankAccount.MoveFirst();
                        if (oRecordset_BankAccount.EoF == true) // No Records
                        else
                            vmp_BankAccount_string = Convert.ToString(oRecordset_BankAccount.Fields.Item("U_BankAccount").Value);
                        oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343"; //"1010140-001";
                        oPayments.TransferDate = DateTime.Now;
                        oPayments.TransferReference = vmp_CardCode_string;
                        oPayments.TransferSum = vmp_Amount_double;
                        vc_Message_Result_Int32 = oPayments.Add();
    Edited by: Rune Brattas on Jun 18, 2009 5:18 PM

    Hi,
    I request you to post this thread in SDK forum,so that you may get quick response.
    And kindly close this thread after posting in the appropriate forum.

  • Variant "_$$audit-event-count" has not been declared in the current scope.

    I migrated my bpel process manager from Version 2.1.2 [oc4j linux] to 10.1.2.0.0 [using jboss as application server].
    The orabpel schema for 10.1.2.0.0 seems to be a bit different.
    I installed the new schema and then dumped all the data from my previous schema. I also successfully deployed the 2.1.2 processes onto 10.1.2 version.
    I can initiate a new instance of the process, however , the previously completed instances or not completed instances fail with the following error,
    16:28:06,061 INFO [STDOUT] <2006-01-31 16:28:06,061> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "instance manager": Variant not found.
    The variant "_$$audit-event-count" has not been declared in the current scope. All variants must be declared in the scope before being accessed.
    Any advice is greatly appreciated. Thanks.

    JScript is JavaScript.
    Ah, now there's part of the confusion :)
    If you're asking about a Windows Script Host (WSH) script, you don't have to declare stdin because it's part of the host.
    Ok... So if I understand you correctly, I'm actually programming in J(ava)Script on windows for WSH. Simply trying to call ReadLine fails as well, as it is not defined according to the compiler.
    Be specific: What are you trying to do? Tell what you want to do, not
    how you think it needs to be done.
    which brings me to my current issue: attempting to ReadLine() (in order to get the program to pause for a moment, from
    this example)
    I know I put up a pretty big wall of text back there, sorry about that.
    EDIT: Well, I think I've learned
    about J*script. It sounds like JScript and Javascript are more just versions of ECMAScript.

  • C++: error: 'std::unique_ptr' has not been declared

    Hi.  I'm trying to compile some C++ code (that I didn't write) and I keep getting this error
    error: ‘std::unique_ptr’ has not been declared
    I've just got all my .h and .cpp files in one folder, and from there I'm trying
    g++ -std=c++11 *.cpp
    I know this probably looks bad, but I don't have a makefile.
    The real point is, why doesn't gcc recognize unique_ptr when I'm explicitly specifying to g++ to use c++11?

    IIRC, xcode does not use gcc by default; the libraries would be different implementation.  I realize we are talking about std:: here, but perhaps the header files have a different hierarchy.  That, or  Xcode is pulling some slight of hand and helping you without asking.

  • External Context Mapping and "The Mapping to Node...Has Not Been Completed"

    Hi there,
    I've got 2 components: A, B where A consumes the data provided by B.
    I'm calling the component B which includes a view provided by A. This view (provided by A) needs data inputted by the user in a view in B.
    The context of B contains a node called MULTIVALUES flagged as Interface + Input Element Ext.
    The component A uses the component B, in the component usage interface controller of the component A I've referenced the component controller of A. I have then created a node in A's component controller and done the mapping from the component usage interface controller of A to A's component controller.
    The manually created component controller node in A is NOT an interface.
    Now when I invoke B I'm getting an error:
    The Mapping to Node COMPONENTCONTROLLER.1.MULTIVALUES Has Not Been Completed.
    What's still missing?
    Thank you!

    it is indeed much more complex and you need lot of understanding about the component instances and their life time.
    What i do normally for such complex cyclic dependency , i try to split the common part which is needed in bot component_a and component_b and create a new super component_s.
    Component_s is used in both components. You can even go further that you create view component which has nothing but the viewContainer UI elements to embed the views from component_a and Component_b.
    The view component has to create all the used components (comp_s,comp_a,comp_b) and after creating call the interface method in comp_a and comp_b to set the component usage of comp_s (use the if_wd_comp_usage=>entering-referencemode).
    In this way the comp_a,comp_b share the same instance of comp_s.
    What i am saying is to look for a solution in application architecture and not with in the exiting components coding.

  • Report for list of POs for with Invoice has not been posted

    Hi All
    Can anybody tell me the report for list of PO' for which GR has already been done but Invoice is not posted
    Thnks
    Ranjith

    Hi
    Try Report ME2M,
    With input selection parameter  "WE101".
    Hope this helps.
    Harish

  • To find Pricing Record for Materials for which Pricing has not been upload.

    Hi All,
    Is there a way in SAP SD to find the Materials without Pricing in VK13.
    Please suggest your valuable inputs or I need to for a Z Report.
    Thanks,
    Parag.

    Hi Parag,
    The only other way is write a z-report which picks up materials based on a combination of MARA and MVKE( since you mentioned sales org and dist channel validation)..the selection screen should have sales org, dist channel as parameters and probably condition type also..use as many selection parameters as possible on the screen.
    and for the materials, sales org, dist channel, condition type with application as V, you should pick up values from A004..
    but is that the only key you're using ..if not then consider using AXXX table for different key combinations..but this is still clumsy/time taking..I would suggest leave it to the ABAPer for the performance part.
    However,I've one question.. you said pricing has not been uploaded? what does it mean? not yet created through VK11? so how can you find them even in A004? am little lost..?
    Regards
    Raghu.
    Edited by: Rags on Sep 14, 2011 9:36 AM

  • Phone out for 3 weeks , has not been repaired yet!

    My home phone stopped working August 15, called repair and was told someone would come on
    August 17  , no one came,   I called again and got a repairman  out on august 17 he checked the line and told
    us that he could not repair it because it was a problem in the cables and the cable splicer would be fixing it, they
    were due to have it fixed on Aug 18... Anyway we waited for the phone to work , it was still out.  I called  2 days
    later and asked what happened to the cable people who were supposed to come out on the 18, the woman
    said she did not know but they were sent out and not there fixing the cable!!.  Well I have called 3 more times
    since than and each time I am told someone will be there, the last man I spoke to was really rude man  and told me
    that he would send someone out if someone was home to wait for the repairman, I explained that the problem
    was up on the   pole and no one should have to come into my home that we just wanted the phone fixed, he
    kept on repeating will someone be home!!! I finally got fed up and told him yes,,,, that was last week   and of course
    NO ONE showed up  the phone is still out.. Today is
    August 30.
    I need my phone and fax machine for my business but can't use them, my cell phone bill is going to be outrageous, I don't know what to do anymore.   ( BTW my phone service was out 8 months ago also we were without our phone than for a month than and it is happening again)  Verizon just doesn t care, what happened to the old phone companies that cared about there customers and back than we were never without phone service.

    Hello..I apologize for your inconveniences.  I am a Fios Tech but can do my best to assist you whether this is copper of Fios.  Let me know which of our services you have and a account telephone # and I will assist you in getting this resolved.
    Joe D
    Verizon Telecom
    Fiber Solution Center
    Notice: Content posted by Verizon employees is meant to be informational and does not supercede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.Follow us on Twitter™!

  • Report to view the list of materilas for which 105 has not been done

    Hello Everyone
    I want to to view the report which can show me the list of pending GR (105 to take the material into unrestricted use) that has to be done aganist the 103.
    Thanks in Advance
    Sachin

    Hi,
    Use T.Code:MB51 and try with 103 movements type and get the report .
    Also try in MMBE, M.C9 T.code
    Hope helpful to you.
    Regards,
    Biju K

Maybe you are looking for

  • HP Laserjet P4015n thinks its a P4515n

    Hi there, I Have an HP P4015 which paper jams only when doing large print jobs (100 pages plus) It has been doing this ever since it had a firmware upgrage done on it which for some reason made it think it is a P4515 instead of the slower P4015. This

  • Photoshop CS6 Starts Slow

    I had CS5 and installed CS6 32 and 64 bit.  All was going well.  The Photoshop splash screen would appear as soon as I started it. Then, in order to troubleshoot some bug, I removed and reinstalled CS6 32 and 64.  Now there is about a seven second or

  • Anyone have their Touch hooked up to a Panasonic Car Stereo?

    I have my Touch scheduled to deliver on Monday and I currently get the most out of my current 5G Video iPod in the car which is hooked up to my Panasonic Car Stereo that is iPod compatible. I have tried to ask Panasonic if their current and past ster

  • Poor resolution

    http://www.youtube.com/watch?v=FuE5MJjtV20 why is the resolution in these videos so poor? they look good in the handycam play back and look good as raw video when down loaded both elements 7 and 8 are giving me really bad looking finished videos. htt

  • Reportes de XLR no muestran información

    Hola a todos Tengo un problema al tratar de ejecutar reportes de XL Reporter, no muestran información. Anteriormente el mensaje que aparecía era : "Parametrizaciones de seguridad en Excel prohiben ejecutar XL Reporter" Esto sucedio cuando se actualiz