Namespaces missing in destination xml

Hello,
I have BPEL composite that will take a input xml. This xml has couple of namespaces.
I used Assign activity to copy the input TO output (input and output are of SAME type. Meaning using same XSD)
As I run the process and view the generated output XML, it gives me error stating that namespace is used in xml but not declared. following is the sample output xml.
<CreateService>
<Service:Data>
<Service:CreateService>
<Service:Service>
</Service:ServiceOrder>
</Service:CreateService>
</Service:Data>
</CreateService>
u see Service is namespace used but not declared.
how to add those declaration at the top of XML ? Transform will add those declarations ? How ?

<CreateService xmlns:Service="and your namespace over here">
<Service:Data>
<Service:CreateService>
<Service:Service>
</Service:ServiceOrder>
</Service:CreateService>
</Service:Data>
</CreateService>
or when you're using the xslt mapper try adding at the top in your 'xsl:stylesheet' element something like
xmlns:Service="and your namespace over here"

Similar Messages

  • Attribute "action" missing or wrong XML structure

    Does anyone know what's the problem of below XML format ?   I want to triggle a stored procedure in AS/400 from SAPXI after receiving records.  But the message "No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)" is found
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_t1 xmlns:ns0="http://cxx.xxx.hk/zxxxpxx/jdbc">
       <storedProcedurename>
          <action>EXECUTE</action>
          <table>LIBRARY.PROCNAME</table>
          <TRNX_TYPE IsInput="true" TYPE="CHAR">content 1</TRNX_TYPE>
          <TRNX_NO IsInput="true" TYPE="CHAR">content 2</TRNX_NO>
       </storedProcedurename>
    </ns0:MT_t1>

    Dear all,
    Thanks for your help and now I can submit a stored procedure via SAP XI by using below XML format.  I try to define two output parameters at the end of this XML. How to get the return value ? Should I define a response message type ? and what is the XML format ?
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SYN_t1 xmlns:ns0="http://xxx.xxu.hk/zxxxpgs/jdbc">
       <update>
          <storedProcedurename action="EXECUTE">
             <table>LIBRARY.PANSYTEST</table>
             <TRNX_TYPE IsInput="TRUE" TYPE="CHAR">4</TRNX_TYPE>
             <TRNX_NO IsInput="TRUE" TYPE="CHAR">2</TRNX_NO>
             <ACTIN IsInput="TRUE" TYPE="CHAR">23</ACTIN>
             <RCRT_DATM IsInput="TRUE" TYPE="CHAR">3</RCRT_DATM>
             <RCRT_USER IsInput="TRUE" TYPE="CHAR">8</RCRT_USER>
             <STUD_ID IsInput="TRUE" TYPE="CHAR">8</STUD_ID>
             <AWD_SEQ IsInput="TRUE" TYPE="CHAR">6899</AWD_SEQ>
             <AW_PSDATE IsInput="TRUE" TYPE="CHAR">89</AW_PSDATE>
             <AW_PEDATE IsInput="TRUE" TYPE="CHAR">99</AW_PEDATE>
             <OUT_TRNX_TYPE IsOutput="TRUE" TYPE="CHAR">4</OUT_TRNX_TYPE>
             <OUT_TRNX_NO IsOutput="TRUE" TYPE="CHAR">2</OUT_TRNX_NO>
          </storedProcedurename>
       </update>
    </ns0:MT_SYN_t1>

  • Prefix 's10' cannot be mapped to namespace name reserved for "xml" or "xmlns"

    I have been given a third party set of schemas which I have copied into my BizTalk Schemas project (I copied the top level folder containing the schemas into a folder I created in the BizTalk Schemas project). The set of schemas are stored in a series
    of folders and each schema has one or more imports statement so the structure of the schemas in the folder must be maintained. I cannot change this structure as it is from a third party.
    I get the above error when I try and test a map that uses one of the schemas. The issue is with the
    http://www.w3.org/XML/1998/namespace. When I load the set of schemas in Visual Studio creates a number of 'reference targetNamespace' entry's and it is one of these with the above reserved namespace that is
    causing the problem during XSLT compilation. When I debug the map it shows the prefix s10 assigned to the reserved namespace above which is causing the problem.
    If I look at the raw XSD schema the 'reference targetNamespace' entry's are not present so I can only assume they get added when I copy the set of schemas into the BizTalk Schemas project.
    Has anyone come across this issue or suggest a way around this as at the moment it is a blocker for me, thanks.

    The simple answer to this problem is to go to the schema with the issue, and add the appropriate definition to the top of the schema element.
    I recently had a similar issue and didn't like the whole transform/pipeline approach and figured it had to be simpler than that.
    <xs:schema elementFormDefault="qualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xml="http://www.w3.org/XML/1998/namespace"> 
    <xs:import schemaLocation="xml.xsd"
    namespace="http://www.w3.org/XML/1998/namespace" />
    See the solution in Stackoverflow.

  • Pages file is missing its index.xml file?

    all the "pages" files which i have created on my computer recently are saying that they have the file is missing its "index.xml"
    im freaking out because i have two uni assignemnts due and both files aren't opeing!
    help!
    i have opened the content of the file.. and all other places are telling me there should be a file called index.zip, in there and to rename it as .pages or to copy off and re open it, or to rename it as zip.xml and try again...
    nothing is working

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Missing application web.xml

    hi,
    tomcat loads my application but then does not recognise the web.xml file i have placed in WEB-INF folder of my application, resulting in:
    missing application web.xml, using defaults only.
    can anyone tell me how to go about resolving this.
    Cheers,
    dswill

    If you are using the application which uses web.xml data then if your application is getting loaded then that means that it is using your web.xml.
    But you r saying that it is using some defaults. so please check whether there is some comments continued and not allowed to using your tags.ie., whether our code is commented.

  • Missing sun-web.xml

    Starting yesterday, when I export a war file for my project, the sun-web.xml file is missing from the exported war file. I need to manually pack the sun-web.xml file into the war file before deploy it to the App server. Any idea why this is happening and how to avoid it?

    Hi
    The reason behind missing sun-web.xml when you "Export War" is to create a war file that should be portable across different containers.
    If it includes container specific DD (sun-web.xml for ex. AS8 PE) when you "Export War" then it causes problems when you deploy this war file to a different container (for ex S1WS 6.x ) which uses the same name for its DD but with different contents.
    Hope this explains why sun-web.xml was not included in war file.
    Thanks
    Srinivas
    Creator Support

  • Not missing NULLs from XML output

    I create XML output for the table having some NULL values, like
    with t as
    select 'A' field1 , 1 field2 from dual
    union
    select 'A' field1 , null field2 from dual
    union
    select 'A' field1 , 3 field2 from dual
    union
    select 'B' field1 , null field2 from dual
    select
    XmlElement("TOP",
    XmlAgg(
    XmlElement("DOWN",
    XmlForest(field1, field2))))
    .extract('/*').getstringval() xml_string
    from t
    XML_STRING
    <TOP>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2>1</FIELD2>
      </DOWN>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2>3</FIELD2>
      </DOWN>
      <DOWN>
        <FIELD1>A</FIELD1>
      </DOWN>
      <DOWN>
        <FIELD1>B</FIELD1>
      </DOWN>
    </TOP>How can I avoid missing nulls from XML? I.e. I need this:
    <TOP>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2>1</FIELD2>
      </DOWN>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2></FIELD2>
    </DOWN>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2>3</FIELD2>
      </DOWN>
      <DOWN>
        <FIELD1>B</FIELD1>
        <FIELD2></FIELD2>
      </DOWN>
    </TOP>Thanks!

    Is this fine?
    sql> with t as
      2  (
      3  select 'A' field1 , 1 field2 from dual
      4  union
      5  select 'A' field1 , null field2 from dual
      6  union
      7  select 'A' field1 , 3 field2 from dual
      8  union
      9  select 'B' field1 , null field2 from dual
    10  )
    11  select
    12  XmlElement("TOP",
    13  XmlAgg(
    14  XmlElement("DOWN",
    15  xmlelement(field1,field1),
    16  xmlelement(field2,field2)
    17  )))
    18  .extract('/*').getstringval() xml_string
    19  from t;
    XML_STRING
    <TOP>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2>1</FIELD2>
      </DOWN>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2>3</FIELD2>
      </DOWN>
      <DOWN>
        <FIELD1>A</FIELD1>
        <FIELD2/>
      </DOWN>
      <DOWN>
        <FIELD1>B</FIELD1>
        <FIELD2/>
      </DOWN>
    </TOP>

  • How do I create an undeclared namespace node with sql/xml?

    I have to interact with a .NET web service that is expecting to have an xml node with an undeclared namespace, i.e. <address xmlns=""> I figured that I could create this by using XMLATTRIBUTES ( '' AS "xmlns") but a null attribute will not be added to the attribute listing. This works fine for other xmlns entries that contain values. Without this undeclared namespace node, the web service reports an Internal SOAP failure message, so I have to include it. Do I have to resort to manually injecting this null attribute via DOM after I produce the xml? I'm using SQL/XML query generate the xml as a view which gives me the entire packet for this document/literal web service OTHER THAN this missing undeclared namespace element.
    Any tips/suggestions would be helpful! Thanks a bunch, and have a Happy Holiday Season.
    Eric

    You can use UTL_RAW package.
    First, convert string to raw with UTL_RAW.CAST_TO_RAW, then using UTL_RAW.CONVERT to convert raw to utf-8 and finally UTL_RAW.CAST_TO_VARCHAR to get utf-8 string.
    Regards

  • Namespace missing in java mapping DOM ?

    Hi,
    I am creating java mapping using DOM, but why i cannot create a namespace using this code ?
    Document targetDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
    Node docRoot = targetDoc.appendChild(targetDoc.createElementNS("urn:sap-com:atp:ABC40:base", "ns1:Vendor_SQL"));
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    // create source and result wrappers and perform transformation
    DOMSource source = new DOMSource(targetDoc);
    StreamResult result = new StreamResult(outputStream);  
    transformer.transform(source, result);
    expected result in xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Vendor_SQL xmlns:ns0="urn:sap-com:atp:ABC40:base">
    </ns0:Vendor_SQL>
    result :
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Vendor_SQL>
    </ns0:Vendor_SQL>
    Please advise whether i was missing any other required step ?
    Note : testing using NWDS 7.0 SP 17
    Thank You and Best Regards
    Fernand

    Hi Lesmana,
    Can you change the second line in the code like below and give a try::
    Node docRoot = targetDoc.appendChild(targetDoc.createElementNS("ns1:urn:sap-com:atp:ABC40:base", "ns1:Vendor_SQL"));
    Regards,
    ---Saish

  • Namespace missing in the payload

    Hi ,
    I doing a JDBC to IDoc scenario.I am using a JDBC sender Adapter to get data using a select query from DB Table ,every thing works fine.The Structure get filled up ,but the namescape is missing in the source payload (SXMB_MONI).Anyone knows why this is happening.
    Thanks,
    Venu

    Hi Venu,
    looks like you are missing namespace in the JDBC data, you should mention the docNamespace in the JDBC sender adapter.
    Copy your payload and paste this in your mapping test tab. How ? After copying the payload go to Message mapping, there is Tab for Test right next to the Design. click on that and then click on the SRC button in the source message and paste your XML and do a test. Then you will know whats going wrong.
    One other precaution is, you can fill the fields in the test tab then click on SRC button to look at what the source XML should look like.
    hope you understand, if not post the question again.
    Thanks.

  • Importing an idoc with namespace extension gives strange XML tagnames in PI

    Hello All,
    We have created an extension to the ORDERS05 idoc in a namespace. The extension is called "/cclcl/zorders05", "/cclcl/" is the ABAP namespace. We want to use this Idoc in SAP PI and send the Idoc in XML format to a external party. The XML format of the Idoc is generated in SAP PI, when we import the idoc in the Enterprise Service Repository. The root element of the XML is being generated as  <_-CCLCL_-ZORDERS05> (see idoc xml example below). The "/" characters are converted to "_-" and therefore the XML rootelement looks very strange. How can we use idoc extensions under a ABAP namespace and have normal rootelements in the idoc xml of SAP PI (without the "_-" characters)?
    <?xml version="1.0" encoding="UTF-8"?>
    <_-CCLCL_-ZORDERS05>
    <IDOC BEGIN="">
    <EDI_DC40 SEGMENT="">
    <TABNAM/>
    <MANDT/>
    <DOCNUM/>
    <DOCREL/>
    <STATUS/>
    <DIRECT/>
    <OUTMOD/>
    <SUNIT/>
    <WAERQ/>
    </E1EDS01>
    </IDOC>
    </_-CCLCL_-ZORDERS05>
    Kind regards,
    Mark

    Hi, Mark van Dooren
    I think i could not put the statement in  proper manner in previous post ,i feel,
    when u import a Idoc from an R/3 system,u will get the XML structure in which u will be haveing the '/' character
    replaced by '_-'.
    And when u use this XML structure(of Idoc)  and export it to the external system,then the structure will be automatically converted into the normal XML structure in destination system.
    This part u need not to take care externally.....
    I hope i made my statement clear..

  • JPA Namespace missing

    Hello,
    I'm trying to follow "SAP JPA 1.0, EJB 3.0 and WebService -Modeling Your First JPA Entity in CE 7.1" tutorial.
    All is running well till I try to generate the DDL file (on my ejb project, I right click and select JPA Tools).
    Each time I'm getting the same error : "ERROR:  Namespace in FORMINFO is missing (Rule: namespace_suffix)" where FORMINFO is the name of the table to which my JPA entity FormInfo is linked.
    I get also the same error in JPA entity class.
    I was not able to fin a way to solve this issue. Anyone can help?
    Thanks,

    I am working with 7.2 ... and it seems that the DDL is not generated (at least it is nowhere I searched )
    It initially complained that it was not connected to the dictionnary.
    After I restarted the IDE, it did not complained anymore
    The only major difference I find between the Tutorial and my project is the file persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
      <persistence-unit name="LocalDevelopment~LocalDevelopment~employee_app~demo.vertomind.com">
        <jta-data-source>EMPLOYEE_DS</jta-data-source>
      </persistence-unit>
    <!--
    Trying to map the name used generated Errors
      <persistence-unit name="EMPLOYEE_PU">
      </persistence-unit>
       -->
    </persistence>
    \T,
    I feel like an idiot ...
    I created a new Connection employee_conn2 and now DDL generation worked ....
    Grrrrrrrrrrrr ...
    Edited by: tsmets on Aug 13, 2010 4:15 PM
    Edited by: tsmets on Aug 13, 2010 4:18 PM

  • Namespace error when reversing xml file

    Hi everybody,
    I am using ODI 11.1.1.5.0 and an Oracle 11g database.
    I have an xml file generated by a web service that I cannot reverse engineer in ODI.
    The xml file is called responseFile. xml on disk C.
    The content of the xml file is like this:
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    <n0:ZMODIFY_CLOCO_TASK_LOGResponse xmlns:n0="urn:sap-com:document:sap:rfc:functions">
    <LOG_MESSAGE>
    etc .......
    In topology manager, I created an XML data server:
    daya server Name: F_Response
    JDBC driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    JDBC url: jdbc:snps:xml?f=c:/responseFileDiesel.xml&s=RESPO
    For the physical schema I specified:
    SCHEMA: RESPO
    WORK SCHEMA: RESPO
    I used the value RESPO for the schema name because the documentation says: 'the schema name (variable s) must be the name of the relational schema where the xml file will b loaded.
    if this property is missing, a schema named after the first five letter of the xml file will automatically be created.'
    When testing the data server in Topolgy or reversing in Designer, I get the error:
    [2012-01-18T15:16:44.157+01:00] [odi] [ERROR] [] [oracle.odi.jdbc.driver.xml] [tid: 3320] [ecid: 0000JJlB4D0FS8T5qBL6iY1F3g1P0000o9,0] ODI-40837: An error occurred during the creation of the schema: ODI-40750: The model generated by the model mapper was not accepted by a validator: Model not accepted: ODI-40817: Namespace not found:
    What is that I do wrong? What is this xml's namespace? Should I use it for the JDBC url?
    I appreciate any help, I am completely blocked.
    thank you,
    Daniela
    Edited by: daniela.alexandru on Jan 18, 2012 4:02 PM

    Hi Daniela,
    The only time I've seen namespace errors was when using the incorrect driver, not XML in my case but the same ODI error.

  • Missing characters in XML-result

    Hi all,
    on 23-12-1999 Vadim posted the following message. He did not get a satisfactory answer and as i have the same problem when using dbms_output (both in SQL+ and with TOAD) i post this one again.
    The problem is that a character is missing and the text after this missing character starts on a new line. This way i can't use the XML.
    Thanks, Bart
    Hi, I'm trying to run an example from SQLUtility document to generate an XML from
    sqlString = 'SELECT * FROM SCOTT.EMP';
    Generated XML CLOB looks like the one below, being cut in the middle. Any suggestions are appreciated.
    Thanks, Vadim
    <?xml version="1.0"?>
    <ROWSET>
    <ROW num="1">
    <EMPNO>7369</EMPNO>
    <ENAME>SMI
    </ENAME>
    </ROW>
    </ROWSET>
    null

    Hi,
    The CLOB will have the correct result. It is probably the DBMS_OUTPUT which is cutting it out, since u will be using put_line cutting the XML documents at arbitrary points.
    is the lob itself in your case wrong?
    Murali

  • I saved a Pages doc yesterday and today I can't open it because I get a message that the doc is missing an index.xml file. Help!

    I saved a Pages doc yesterday and today I can't open it because I get a message that says "can't open doc because an index.xml file is missing."  Help!

    Pages v5 documents do not have an internal index.xml file. When you attempt to open one of these with the older Pages '09, you will get that dialog. Double-click the document icon, or right-click, and open with Pages v5 to access the document contents.

Maybe you are looking for

  • PDF attachments in Mail not showing up in Outlook

    I am using the Mail client on Snow Leopard to send a message with a pdf attachment. This attachment is not visible to recipients using Outlook 2010. Why? Windows Friendly Attachments setting is on. The PDF file was created by printing from Pages.

  • Cannot install drivers prope

    I recently bought a second hand SB 5. li've! Digital off someone, whenever i download and run the install i recieve the message that it cannot find my sound card. I however was able to install a driver which comes with windows XP which has worked, bu

  • Firefox allows random adds to run on my phone in the background.

    Maybe it's the upgrade I installed a few days ago, but now Firefox is allowing random adds to play in the background on my Android phone, and I can't stop them. The particular add that's been flaying is a commercial for Verison Wireless. I recall hav

  • I::001 Only available with the RFC library from 4.0C onwa

    Hello all! I'm using SAP .NET Connector for integration between .NET application and SAP System. When I try to work with standard document bapi methods like  BAPI_DOCUMENT_CHECKIN or BAPI_DOCUMENT_CHECKOUTVIEW, I get an error in out RETURN parameter

  • WCS 7.0.240.0 data export to Prime 1.2.1.012 ... HELP!!

    Hello Fellow Engineers, I'm trying to migrate old data from WCS 7.0 to Prime 1.2 ... I have already created the zip file from WCS and imported it into the defaultRepo on Prime.  I see it in the directory when I do a show repository defaultRepo so I h