Rename particular XML Tag

Hi Indesign Experts,
          I'm confused a lot in the below issue. I'm have a indesign document. In the xml structure, If i select a element, and trying to rename the selected item's markupTag.name, it's changing all the elements with the selected elements name....
I use the below code to run after selecting an xml Element.
app.selection[0].markupTag.name="test";
But the output look like the below.
But I want onlu to rename the selected xmlelement.
Any idea to perform this?
Thanks and Regards,
Vel.

Hi,
       Thanks a lot Jeff...
        I'm doing a huge program with lot of tasks. While doing that,my mind didn't strike to check if the tag is not already exist, then only to create new tag...  Thanks for all of the indesigner experts for their replies...
I used the following codes with ur idea.
                    var renamewith = textbox1.text;
                    try
                        alert(app.activeDocument.xmlTags.item(renamewith).name);
                        if(app.activeDocument.xmlTags.item(renamewith).name)
                           var testTag = app.activeDocument.xmlTags.item(renamewith);
                    catch(e)
                        var testTag = app.activeDocument.xmlTags.add({name: renamewith});
With Regards,
Vel.

Similar Messages

  • Rename an XML tag using javascript

    Dear adobe experts,
    I have a requirement to rename XML tags, in the interface for an adobe form, using javascript.
    the XML looks like this:
    <ELEMENT>
         <DATA>
              <ROW_IID>0</ROW_IID>
              <PARENT>0</PARENT>
              <CHILD>0</CHILD>
         </DATA>
         <DATA>
              <ROW_IID>1</ROW_IID>
              <PARENT>0</PARENT>
              <CHILD>0</CHILD>
         </DATA>
    </ELEMENT>
    and the result should look something like this:
    <ELEMENT>
         <CHAIR>
              <ROW_IID>0</ROW_IID>
              <PARENT>0</PARENT>
              <CHILD>0</CHILD>
         </CHAIR>
         <TABLE>
              <ROW_IID>0</ROW_IID>
              <PARENT>0</PARENT>
              <CHILD>0</CHILD>
         </TABLE>
    </ELEMENT>
    Is this possible and how can I do this? I was hoping that something like renameNode() (for instance) is also possible in the javascript set for adobe forms.
    If it's not possible I'm going to have to create new nodes, put the data from the existing node in the new node and remove the original node. This will be a lot more work and just renaming is easier :-).
    Kind regards,
    Niels

    Hi,
           Thanks a lot Jeff...
            I'm doing a huge program with lot of tasks. While doing that,my mind didn't strike to check if the tag is not already exist, then only to create new tag...  Thanks for all of the indesigner experts for their replies...
    I used the following codes with ur idea.
                        var renamewith = textbox1.text;
                        try
                            alert(app.activeDocument.xmlTags.item(renamewith).name);
                            if(app.activeDocument.xmlTags.item(renamewith).name)
                               var testTag = app.activeDocument.xmlTags.item(renamewith);
                        catch(e)
                            var testTag = app.activeDocument.xmlTags.add({name: renamewith});
    With Regards,
    Vel.

  • How to filter particular xml tag value using -DBMS_XMLGEN / DBMS_XMLSTORE

    Hi,
    I am using dbms_xmlgen and dbms_xmlstore package to extract xml datafile tag value from file server to oracle database table.
    I have used the below pl/sql program to extract the xml tag values to oracle relational table.Its working fine for me.
    But I would like to extract the values based on particular filter condition.
    The following xml program I have 3 rows I would like extract the xml data based on the following condition .
    Filter condition
    ==============
    the tag <STATE_ABBREVIATION> value shuold be 'CA' and the <CITY> tag value should be Palo_Alto then I will store the ZIPCODE
    ZIP_CODE_EXTN,STATE_ABBREVIATION tag values in the Oracle Relational table.
    The below pl/sql program storing all the three rows but I required the values based on the filter condition that I mentioned earlier.
    Kindly assist me what are the steps that I need to change in this program.?
    XML Program file content.
    ======================
    <ZIPCODES>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>94301</ZIPCODE>
    <ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
    <CITY>Palo_Alto</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>95302</ZIPCODE>
    <ZIP_CODE_EXTN>9279</ZIP_CODE_EXTN>
    <CITY>LA</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>TX</STATE_ABBREVIATION>
    <ZIPCODE>75038</ZIPCODE>
    <ZIP_CODE_EXTN>7837</ZIP_CODE_EXTN>
    <CITY>DALLAS</CITY>
    </mappings>
    </ZIPCODES>
    PL/SQL Program for XML extract.
    ==========
    declare
    charString varchar2(80);
    finalStr varchar2(4000) := null;
    rowsp number;
    insCtx DBMS_XMLStore.ctxType;
    ctx dbms_xmlgen.ctxHandle;
    v_FileHandle UTL_FILE.FILE_TYPE;
    begin
    v_FileHandle := utl_file.fopen('XMLTEST','XML_NEW_CITIES.XML','r') ;
    loop
    BEGIN
    utl_file.get_line(v_FileHandle, charString);
    exception
    when no_data_found then
    utl_file.fclose(v_FileHandle);
    exit;
    END;
    dbms_output.put_line(charString);
    if finalStr is not null then
    finalStr := finalStr || charString;
    else
    finalStr := charString;
    end if;
    end loop;
    insCtx := DBMS_XMLStore.newContext('SYS.ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'mappings');
    DBMS_XMLStore.clearUpdateColumnList(insCtx);
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIPCODE');
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIP_CODE_EXT N');
    DBMS_XMLStore.setUpdateColumn(insCtx,'STATE_ABBREV IATION');
    rowsp := dbms_xmlstore.insertXML(insCtx,finalstr);
    end;
    Thanks,
    nat

    Thanks for your reply. :)
    Its working fine in the DBMS_XMLSTORE package. Here I have given the code
    CREATE OR REPLACE TYPE typ_dummy AS  OBJECT
    ( "@ENO"   NUMBER,
      "@ENAME" VARCHAR2(100),
      eno      NUMBER,
      ename    VARCHAR2(100));
    CREATE TABLE EMP
      empno    VARCHAR2(25),
      sal      NUMBER,
      hiredate DATE,
      typ      TYP_DUMMY
    DECLARE
      insCtx DBMS_XMLStore.ctxType;
      rows NUMBER;
      xmldoc CLOB :=
        '<ROWSET>
           <ROW num="1">
             <SAL>1800</SAL>
             <EMPNO>739</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
               <TYP ENO="739" ENAME="Nazurullah">
               <ENO> 1 </ENO>
               <ENAME> ALDRIN </ENAME>
               </TYP>
           </ROW>
           <ROW>
             <SAL>18000</SAL>
             <EMPNO>7369</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP ENO="7369" ENAME="PEPPIN" />
           </ROW>
           <ROW>
             <SAL>37000</SAL>
             <EMPNO>20701</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP>
               <ENO> 20701 </ENO>
               <ENAME> VENKATACHALAM </ENAME>
             </TYP>
           </ROW>
         </ROWSET>';
    BEGIN
      insCtx := DBMS_XMLStore.newContext('emp'); -- get saved context
      -- Now insert the doc.
      -- This will only insert into EMPNO, SAL and HIREDATE columns
      rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
      -- Close the context
      DBMS_XMLStore.closeContext(insCtx);
    END;
    SELECT * FROM emp;
    EMPNO        SAL HIREDATE          TYP(@ENO, @ENAME, ENO, ENAME)
    739         1800 27-AUG-96     TYP_DUMMY(739, 'Nazurullah', 1, ' ALDRIN ')
    7369       18000 27-AUG-96     TYP_DUMMY(7369, 'PEPPIN', NULL, NULL)
    20701      37000 27-AUG-96     TYP_DUMMY(NULL, NULL, 20701, ' VENKATACHALAM ')

  • Getting characters in a particular xml tag type during Sax parsing.

    How do I get the text within a certain XML tag using the parser. I can use the parser which will get me all the text in all the tags, but how do I get the ones I need only.
    For example:
    <channel id="south-east.bbc1.bbc.co.uk">
        <display-name lang="en">BBC1</display-name>
        <display-name>1</display-name>
      </channel>
      <programme start="20040217233500" stop="20040218000500 +0000" channel="south-east.bbc1.bbc.co.uk">
        <title lang="en">Film 2004 with Jonathan Ross</title>
      </programme>how do I get the text 'Film 2004 with Jonathan Ross' without getting the others?

    Well, the SAX parser just gives you the start/end tag
    information to a handler, right? So if you just use
    the SAX parser to get one item, then you could do it
    by running thru the entire XML file to get that item
    then get another item. Clearly this isn't the best
    way to do it.... The handler should put the data for
    the whole document into some data structure, or use
    DocumentBuilder to get a Document object. I see. Yes, that is not the way to use SAX. It's kind of an inside out way of doing things. If you using SAX you should know everything that you want before parsing and grab all of them in one fell swoop.
    If you want to get an in memory representation, the JDOM package is a whole lot eaiser to use than DOM.

  • How to read value within XML Tag data using IO Stream in Java

    We have xml data into a Stream and we need to extract values again into a Stream from the particular XML tag <Data> inside the Stream. PFB the sample XML which will be contained inside the stream and can someone help us to hint the java code for this. We require it using the IO API only and we need to look <DATA> for the begining of the stream and </DATA> as the end of the stream.
    Please note that input is stream and output require also is a stream.
    <?xml version = "1.0" encoding="UTF-8" ?>
    <GenericDataEnvelope>
    <DataFormat>PlainText</DataFormat>
    <Name>1111</Name>
    <Security>NA</Security>
    <senderName>abc</senderName>
    <Protocol>HTTP</Protocol>
    <Data>
    SElQRlhDVElQRlBCTktERUZGMDYxMDAyMDc0MzUyMDAwMTA2MTAwMjA3NDM1MlRDSEFTVVMzMzAw
    MDAwMDAwMDAwMTc4LDEyMDAwMTc4MTIKezQ6TVQxMDM6CjoyMDowMDYwMDQ5MjQxMDA2NzcwCjoy
    M0I6Q1JFRAo6MjNFOlNEVkEKOjMyQTowNjEwMDVDQUQwLDAxCjozM0I6RVVSMCwwMQo6MzY6MSwz
    TNzcwQU5WLVJFTlRFIE9DVCAwNgowLDAxLzEsMTcxOQo6NzFBOlNIQQo6NzI6L1JFQy84NDM2MTU3
    MTA2Ci19ClRJUEYK
    </Data>
    <DataType>INVOICE</DataType>
    </GenericDataEnvelope>

    The example you've showed is valid and it is also text.
    Think seriously about this ... for example, do you have a rule that says </DATA> can't appear in the binary data?
    But in any case I can't see the problem. If you want to use IO classes directly, just read lines until you see <DATA>, then read data until it ends with </DATA>, and remove that.
    But I would certainly use SAX myself until proven otherwise that it won't work..

  • Rename or Tag Element for particular Xml Element.

    hi,
    How to rename or Tag Element for particular Xml Element using Java Script.
    eg)label to labels
    Thanks in advance
    Smile

    Hi,
           Thanks a lot Jeff...
            I'm doing a huge program with lot of tasks. While doing that,my mind didn't strike to check if the tag is not already exist, then only to create new tag...  Thanks for all of the indesigner experts for their replies...
    I used the following codes with ur idea.
                        var renamewith = textbox1.text;
                        try
                            alert(app.activeDocument.xmlTags.item(renamewith).name);
                            if(app.activeDocument.xmlTags.item(renamewith).name)
                               var testTag = app.activeDocument.xmlTags.item(renamewith);
                        catch(e)
                            var testTag = app.activeDocument.xmlTags.add({name: renamewith});
    With Regards,
    Vel.

  • Renaming XML tags via Javascript

    I currently have a script that finds certain paragraph styles and renames them. For example:
    var myDoc=app.activeDocument;
          var myStyle=myDoc.paragraphStyles.itemByName("SIDEBAR B HEAD");
          myStyle.name="SIDEBAR RATING HEAD"
    I'd like to do the same thing with some XML tag names, preferably as part of the same script. I'm sure it's fairly easy, but for some reason I can't find any info on how to call out XML tags!
    I've looked through the InDesign CS4 Scripting Tutorial and Adobe Introduction to Scripting, but at this point I feel like I'm wasting my time on a simple problem. Can anyone help out an amateur?
    Thanks in advance,
    Matt

    Or
    You can use this function for multiple rename tag
    var myDoc = app.activeDocument;
    RenamXMLTag("Old", "New");
    RenamXMLTag("Old", "New");
    function RenamXMLTag(Old, New)
         if(myDoc.xmlTags.itemByName(Old).isValid)
         myDoc.xmlTags.itemByName(Old).name = New;
    Shonky

  • Need help in extracting value from an xml tag.

    Hi ALL,
    Good Morning to all, i have problem in fetching a value from a xml tag. I have created a xml schema based on the schema i have created a xmltype table and inserted a value to the table. When i am trying to fetch a value from a particular tag i am unable to do so.. Kindly help me to solve this. Here by i am posting all the workings i have done...
    I am using the following client:
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jan 31 11:44:59 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ////////////////////////////////// XML Schema ///////////////////////
    begin
    dbms_xmlschema.registerSchema(
    'http://www.oradev.com/chipsxml.xsd',
    '<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.oradev.com/chipsxml.xsd"
    xmlns:samp="http://www.oradev.com/chipsxml.xsd"
    version="1.0">
    <element name="Field1">
    <complexType>
    <sequence>
         <element name="UTI">
              <complexType>
              <sequence>
              <element name = "U01" type = "string"/>
              <element name = "U02" type = "string"/>
              <element name = "U03" type = "string"/>
              <element name = "U03a" type = "string"/>
              <element name = "U03b" type = "string"/>          
              <element name = "U03c" type = "string"/>          
              <element name = "U04" type = "string"/>                    
              <element name = "U05" type = "string"/>                    
              </sequence>
              </complexType>
         </element>
    </sequence>
    </complexType>
    </element>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end;
    ////////////////////////// Table which has multiple Column //////////////////////////
    CREATE TABLE chipsxmltable1 (
    id number, XMLDATA XmlType)
    XMLTYPE XMLDATA STORE AS OBJECT RELATIONAL
    XMLSCHEMA "http://www.oradev.com/chipsxml.xsd"
    ELEMENT "Field1";
    ///////////////////////////////// Insert Query in chipsxmltable //////////////////////////
    INSERT INTO chipsxmltable VALUES(
    xmltype.createxml('<?xml version="1.0"?>
    <samp:Field1 xmlns:samp="http://www.oradev.com/chipsxml.xsd" >
    <UTI>
    <U01>No</U01>
    <U02>Y</U02>
    <U03>Y</U03>
    <U03a>Y</U03a>
    <U03b>Y</U03b>
    <U03c>Y</U03c>     
    <U04>Y</U04>
    <U05>Y</U05>          
    </UTI>
    </samp:Field1>'));
    To show the data as a field with structure:
    1. Query:
    Select * from chipsxmltable1;
    Output:
    ID XMLDATA
    1 <?xml version="1.0"?>
    <samp:Field1 xmlns:samp="http://www.oradev.com/chipsxml.xsd">
    <UTI>
    <U01>No</U01>
    <U02>No</U02>
    <U03>Y</U03>
    <U03a>Y</U03a>
    <U03b>Y</U03b>
    <U03c>Y</U03c>
    <U04>Y</U04>
    <U05>Y</U05>
    </UTI>
    </samp:Field1>
    2. Query: (Both the query displays the same Output)
         SELECT X.xmldata.getClobVal() "XMLDATA" FROM chipsxmltable1 X;
         select extract(XMLDATA, '/Field1').getstringval() "XMLDATA" from chipsxmltable1 x;
    Output:
    XMLDATA
    <?xml version="1.0"?>
    <samp:Field1 xmlns:samp="http://www.oradev.com/chipsxml.xsd">
    <UTI>
    <U01>No</U01>
    <U02>No</U02>
    <U03>Y</U03>
    <U03a>Y</U03a>
    <U03b>Y</U03b>
    <U03c>Y</U03c>
    <U04>Y</U04>
    <U05>Y</U05>
    </UTI>
    </samp:Field1>
    To show the data as a single string without structure using "getstringval()":
    3. Query
         select extract(XMLDATA, '//text()').getstringval() "CHIPS - XML" from chipsxmltable1 x;
    OUtput:
    CHIPS - XML
    NoNoYYYYYY
    To show the data as a single string without structure using "getclobval()":
    4.Query
         select extract(XMLDATA, '//text()').getClobVal() "CHIPS - XML" from chipsxmltable1 x;
    Output:
    CHIPS - XML
    NoNoYYYYYY
    To show the data in a particular tag with/Without structure (Which is not working) using "EXTRACT" function:
    6.Query:
         select extract(XMLDATA, '/Field1/text()').getstringval() "XMLDATA" from chipsxmltable1 x;
         select extract(XMLDATA, '/Field1/UTI').getstringval() "XMLDATA" from chipsxmltable1 x;
         select extract(XMLDATA, '/Field1/UTI/U01').getstringval() "XMLDATA" from chipsxmltable1 x;
         select extract(XMLDATA, '/Field1/UTI/U01/text()').getstringval() "XMLDATA" from chipsxmltable1 x;
    Output:
    CHIPS - XML
    The above queries are not fetching the value.
    To show the data in a particular tag with/Without structure (Which is not working) using "EXTRACTVALUE" function:
    7. Query:
         select extractValue(XMLDATA, '/Field1/UTI') "XMLDATA" from chipsxmltable1 x;
         select extractValue(XMLDATA, '/Field1/UTI/U01') "XMLDATA" from chipsxmltable1 x;
    Output:
    X
    The above queries are not fetching the value.
    My question is:
    How to fetch values from xml tag when the value are inserted through xml schema?
    Apologies if the description is not clear. Kindly let me know if further details are needed. Many thanks for your help.
    Very best regards,
    Godwin Jebakumar C.V.

    Hi,
    You need to declare the namespace of each element used in the XPath expression, like this :
    SQL> select extractvalue( XMLDATA
      2                     , '/samp:Field1/UTI/U01'
      3                     , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
      4  from chipsxmltable1 x
      5  ;
    XMLDATA
    No
    SQL> select extract( XMLDATA
      2                , '/samp:Field1/UTI'
      3                , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
      4                ).getstringval() "XMLDATA"
      5  from chipsxmltable1 x
      6  ;
    XMLDATA
    <UTI>
      <U01>No</U01>
      <U02>Y</U02>
      <U03>Y</U03>
      <U03a>Y</U03a>
      <U03b>Y</U03b>
      <U03c>Y</U03c>
      <U04>Y</U04>
      <U05>Y</U05>
    </UTI>
    Please see EXTRACT and EXTRACTVALUE documentation :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions051.htm#i1006712
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions052.htm#SQLRF06173
    BTW, "XMLDATA" is a pseudo-column used by Oracle. I don't know if it'll ever cause any conflict but maybe you should rename your column.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256
    Regards.

  • How can i find and replace xml tags?

    Hi, i am using xml in my workflow and want to be able to remove certain tags if they contain particular text.
    here is an example of my xml structure…
    <entry>
        <name>DEFAULT</name>
        <tel>DEFAULT</tel>
        <address>DEFAULT</address>
    </entry>
    I am using this initial structure to set the paragraph styles to be followed when the xml data is imported.
    This leaves DEFAULT in place wherever an entry doesn't have any content for that field.
    I want to be able to import my XML then run a script that removes any tags that include DEFAULT, - I need the entire xml tag to be removed not just the text, if i do a normal find and replace it will only remove the text not the tags which is causing problems with styling. I also want to remove the end of para/return (^p) that i've placed at the end of the line. So it would be the same as opening up story editor and removing the content + tags + hard return in there, but i want to automate the process…
    So i think this is what i need to search for in each case
    "<name>DEFAULT</name>^p"
    and i want to replace it with nothing ""
    Can this be done through scripting (ideally javascript)?
    I have a little knowledge of javascript but am not sure how to search and target that kind of string in indesign...
    using indesign cs5
    many thanks

    Hi,
    Script should do it in two steps:
    1. find all occurences of i.e. ">DEFAULT<"
    2. remove whole paragraph which is a found_text's container.
    For example this way -JS - (a textFrame filled with your text should be selected) :
    var mStory = app.selection[0].parentStory;
    app.findTextPreferences =  null;
    app.findTextPreferences.findWhat = ">DEFAULT<";
    var myF = mStory.findText();
    var count = myF.length;
    while (count--)
         myF[count].paragraphs[0].remove();
    rgds

  • JDev Extensions: Register only a particular XML file with custom Editor?

    Hi Guys,
    I have extended the Editor class and created my own Editor - MyCustomEditor. Below is the part of 'extension.xml', where I am registering any XML document with this editor.
    <editors xmlns="http://xmlns.oracle.com/ide/extension">
    <!-- Register our custom editor -->
    <editor id="myCustomEditor.design"
    label="My Design"
    editor-class="oracle.xxx.xxx.MyCustomEditor" >
    <node-type class="oracle.bali.xml.addin.XMLSourceNode" />
    </editor>
    </editors>
    But my actual requirement is to register my custom (design) editor to a particular XML file which has a fixed name, lets say MyApplicationFile.xml. I don't want this Custom Editor for any other XML document. How can I achieve this?
    Thanks,
    Rajesh.

    No JDev version??
    Here is what you can try.
    1. Subclass XMLSourceNode to CustomXMLSourceNode. Mention this class in editor tag.
    2. In addition to <editor> you may need to have <xml-recognizer> along with <include-filenames>MyApplicationFile.xml</include-filenames>.

  • Xml tag defaults to Final Cut Pro file

    I seem to be noticing that anything that is downloaded onto my Mac with an xml tag, ends up defaulting to a Final Cut Pro file. This has occurred on everything from music files, docs and pics, past and present.
    Where and How do i change that (fix/correct) for all current and future files?
    mac Mini Intel Duo   Mac OS X (10.4.9)  

    Maxplanar, Thanks!!
    never thought to just rename to .mov, it's always the simplest thing! i recently learnt about .dmg to .iso in certain cases, i never thought a simple suffix change like this would be the solution, just assumed FCP quicktime files were FC read only!
    Many Thanks for the help, it should all be straightforward from now on!! as straightforward as any typical PAL > NTSC Conversion is anyway!!
    Cheers!
    Tj

  • InDesign crashes when I add xml tag

    I have some groups (image + text) inside text.
    When I try to add xml tags with a grep query InDesign crashes.
    If I try to manually add xml tag to the text in a group, for example "evitare l'umidità", InDesign give me a message error.
    I think it's a bug
    Here there is the document Dropbox - ProblemaTag.idml
    Thanks
    Ivan

    I haven't done a Book in CS6 yet, but I'm starting to wonder if there might be some sort of bug (not extremely likely, but....) that's new. We had another post yesterday where ID crashed when trying to move a particular file into the chapter 5 position.
    Can you add this file first, then move it to the correct spot after the other files are added?

  • SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)

    Hi,
    Curretly I am trying to test a Webservice on ECC 5.0, Oracle, Windows.
    Below is the error that I am facing.
    SOAP Runtime: SOAP Runtime exception: 111 occurred in method XP_READ_TAG of class CL_SOAP_XP at position 1
    SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)
    In dev_rfc0:
    ERROR 03:20:57: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE
    STATUSCODE() Received return code 404 ( Not found )
    ERROR 03:20:57: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE
    PART~INITFOR_DESERIALIZE() A SOAP Runtime Core Exception
    occurred in method XP_READ_TAG of class CL_SOAP_XP at position id
    1 with internal error id 111 and error text Unallowed RFC-XML Tag
    (SOAP_EINVALDOC) (fault location is 1 ).
    I have looked up on sdn, and also looked at note 919886.
    I have read several posts regarding creation of RFC Destination in sm59 of Type G, to get over this issue.
    But RFC Destination of type G is not available in ECC 5.0
    Is the error because of incorrect URL mentioned in logical port,
    I am unable to ping the host name mentioned in URL, looks like that machine is not in the network.
    does it mean the wsdl is not located at that particular host.
    Any suggestions would be greatly appreciated.
    Regards,
    Vishnu.

    Hi Anton,
    The complete error message in dev_rfc0:
    INFO 02:15:12: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT
    ->IF_SOAP_TRANSPORT_BINDING~SEND() Try to send message ( DEST =
    ,PATH = ,URL = http://hostname:portno/ ,SOAP Action =
    "ROI_R3_DF.roiSAPCreateOrder" )
    INFO 02:15:12: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT
    ->IF_SOAP_TRANSPORT_BINDING~SEND() Message sent
    INFO 02:15:12: SOAP Transport binding CL_SOAP_HTTP_TPBND_ROOT
    ->IF_SOAP_TRANSPORT_BINDING~RECEIVE() Try to receive message
    ERROR 02:15:12: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE
    STATUSCODE() Received return code 404 ( Not found )
    ERROR 02:15:12: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE
    PART~INITFOR_DESERIALIZE() A SOAP Runtime Core Exception
    occurred in method XP_READ_TAG of class CL_SOAP_XP at position id
    1 with internal error id 111 and error text Unallowed RFC-XML Tag
    (SOAP_EINVALDOC) (fault location is 1 ).
    After reading your post about the return code 404, I am in a dilemma whether, services in icman are unavailable or
    the services at the location of the wsdl in the other server.
    If you could clarify, it would be great.
    Thanks a lot.
    Vishnu.

  • Way to find XML Tag name from RDF

    Hi
    Is there some way by which simply looking at fields in RDF, we can find out what XML Tag will be used by the data shown by it. Actually I am using a RDF's output for my XML report. Finding XML tag for a particular field is difficult job.
    Thanks for your help.
    Regards
    Varun

    Got It :-) Just check the data source of field and that is the XML tag. Thanks

  • Oracle code+simple XML tags

    Hi ,
    I wrote a shell script which contains " Oracle SQL query + simple XML tags".
    the code was executing successfully.But My problem is to create a document based on the code.Don't mind any one please help me to preparingn the document..
    Can I post the code here?? Is it right place to post my code.? Because I am new member to this forum..Please let me know...
    I'll post the code as per ur suggestion..
    Thank you..

    dbuser=SCOTT/TIGER
    dbname=PRODDB
    connect_string=$dbuser@$dbname
    tableowner="DEVPS"
    TABLEOWNER=$(echo $tableowner | tr '[a-z]' '[A-Z]')
    #. ${MMHOME}/rfx/etc/config.env
    OUT_DIR=/ifiles/inbox/data
    # Set it to number of CPU on the server
    MAX_THREAD=12
    TASK_RUNNING=0
    PROGRAM_NAME='Out_Source'
    get_partname()
      sqlplus -s $connect_string <<!
      set pages 0
      set feedback off
      set heading off
      SELECT PARTITION_NAME, PARTITION_POSITION
          FROM  DBA_TAB_PARTITIONS
           WHERE TABLE_NAME='EMP'
          ORDER BY PARTITION_POSITION;
      exit;
    create_part_flow()
    cat > dats/outFlow_${PROGRAM_NAME}_$1.xml - <<EOF1
    export PROGRAM_NAME="item_sale_$1"
    . \${MMHOME}/config.env
    . \${LIB_DIR}/lib.ksh
    message "Program started ..."
    \${ITEM_EXE} \${ITEM_OPTIONS} << EOF
    <FLOW name="output.flow">
      \${DBREAD}
        <PROPERTY name="query">
          <![CDATA[
    SELECT <stmt>
          ]]>
        </PROPERTY>
        <OPERATOR type="convert">
             <PROPERTY name="convertspec">
                <![CDATA[
                   <CONVERTSPECS>
                      <CONVERT destfield="EMP_SAL" sourcefield="EMP_SAL" newtype="int16">
                         <CONVERTFUNCTION name="int16_from_dfloat"/>
                         <TYPEPROPERTY name="nullable" value="false"/>
                      </CONVERT>
                   </CONVERTSPECS>
                ]]>
             </PROPERTY>
             <OUTPUT name="tmp.v"/>
       </OPERATOR>
       </OPERATOR>
       <OPERATOR type="export">
        <INPUT name="tmp.v"/>
        <PROPERTY name="outputfile" value="\${DATA_DIR}/sao0_irt_i_$1.dat"/>
        <PROPERTY name="schemafile" value="\${SCHEMA_DIR}/item_on_off.schema"/>
      </OPERATOR>
    </FLOW>
    EOF
    checkerror -e $? -m "Program failed - check \${ERR_FILE}"
    # Remove the status file
    if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
    message "Program completed successfully"
    # cleanup and exit
    rmse_terminate 0
    EOF1
    create_nopart_flow()
    cat > outFlow_${PROGRAM_NAME}.xml - <<EOF
    <FLOW name="output.flow">
      <OPERATOR type="oraread">
        <PROPERTY name="query">
          <![CDATA[
               <![CDATA[
    SELECT <STmt>
         ]]>
        </PROPERTY>
        <OUTPUT name="tmp.v"/>
      </OPERATOR>
      <OPERATOR type="export">
        <INPUT name="tmp.v"/>
        <PROPERTY name="outputfile" value="sao0_irt_i_$1.dat"/>
      </OPERATOR>
    </FLOW>
    EOF
    create_full_flow()
    cat > dats/item_sale.xml << EOF1
    export PROGRAM_NAME="item_sale"
    . \${MMHOME}/config.env
    . \${LIB_DIR}/lib.ksh
    ON_SALE_OUTPUT_FILE=\${DATA_DIR}/smo0_onseffdt_.txt
    ON_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_on_sale.schema
    OFF_SALE_OUTPUT_FILE=\${DATA_DIR}/sm0_ofseffdt_.txt
    OFF_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_off_sale.schema
    #export RFX_DEBUG=1
    # input files:
    ONOFF_DATE=\${DATA_DIR}/dm0_onseffdt_ofseffdt.dat
    ONOFF_DATE_SCHEMA=\${SCHEMA_DIR}/item_on_off.schema
    message "Program started ..."
    \${RETL_EXE} \${RETL_OPTIONS} << EOF
    <FLOW name="Store_Source.flw">
       <OPERATOR  type="import">
          <PROPERTY  name="inputfile" value="\${ONOFF_DATE}"/>
          <PROPERTY  name="schemafile" value="\${ONOFF_DATE_SCHEMA}"/>
           <OPERATOR type="copy">
             <OUTPUT name="on_off_sale.v"/>
           </OPERATOR>
       </OPERATOR>
    <!--START_INS_C2.1-->
       <OPERATOR type="copy">
          <INPUT  name="on_off_sale.v"/>
          <OUTPUT name="on_sale_out.v"/>
          <OUTPUT name="off_sale_out.v"/>
       </OPERATOR>
    <!--END_INS_C2.1-->
       <OPERATOR type="fieldmod">
          <INPUT name="on_sale_out.v"/>
    <!--START_DIS_C2.1
          <PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
    END_DIS_C2.1-->
    <!--START_INS_C2.1-->
          <PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=ONSALE_DATE"/>
    <!--END_INS_C2.1-->
          <OPERATOR type="export">
             <PROPERTY name="outputfile" value="\${ON_SALE_OUTPUT_FILE}"/>
             <PROPERTY name="schemafile" value="\${ON_SALE_OUTPUT_SCHEMA}"/>
          </OPERATOR>
       </OPERATOR>
       <OPERATOR type="fieldmod">
          <INPUT    name="off_sale_out.v"/>
    <!--START_DIS_C2.1
          <PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
    END_DIS_C2.1-->
    <!--START_INS_C2.1-->
          <PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=OFFSALE_DATE"/>
    <!--END_INS_C2.1-->
          <OPERATOR type="export">
             <PROPERTY name="outputfile" value="\${OFF_SALE_OUTPUT_FILE}"/>
             <PROPERTY name="schemafile" value="\${OFF_SALE_OUTPUT_SCHEMA}"/>
          </OPERATOR>
       </OPERATOR>
    </FLOW>
    EOF
    checkerror -e 0 -m "Program failed - check ${ERR_FILE}"
    # Remove the status file
    if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
    message "Program completed successfully"
    # cleanup and exit
    rmse_terminate 0
    EOF1
    # Remove all individual xml files
    rm outFlow_${PROGRAM_NAME}*.xml
    NO_OF_PART=`get_partname $TABLEOWNER |wc -l`
    if [ ${NO_OF_PART} -eq 0 ]; then
      echo Table not partitioned
      create_nopart_flow
      time retl -c ${1} -f outFlow_${PROGRAM_NAME}.xml
    else
      echo Table partitioned
      get_partname $TABLEOWNER |while read PARTNAME THREAD_SEQ
      do
         echo PartName: $PARTNAME   POS: $THREAD_SEQ
         create_part_flow $THREAD_SEQ  ${PARTNAME}
         time /app/rms/scripts/rms_retl_aip.sh outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml&
         echo Running outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml ....
         sleep 1
         #TASKS_RUNNING=`ps -ef|grep retl|grep -v java|grep -v grep|wc -l`
         TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
        echo Running: ${TASKS_RUNNING} Max: ${MAX_THREAD}
         while [ "${TASKS_RUNNING}" -ge "${MAX_THREAD}" ]; do
            sleep 2
            TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
         done
      done
      wait
      #Concatenate all files
      cat ${OUT_DIR}/dm0_src_i_*.dat > ${OUT_DIR}/sm0_onseffdt_ofseffdt.dat
      if [ $? -eq 0 ]; then
         rm  ${OUT_DIR}/sm0_src_i_*.dat
      fi
      create_full_flow
      time dats/item.sh item_sale.xml
    fi

Maybe you are looking for

  • XDCAM Plugin?

    Does anyone know when the announced plugin from Sony for XDCAM for FCP X 10.0.1 will be released? And where it will be located? Thanks

  • Cannot edit Lightroom 2 photo in Elements 9

    I am using OS 10.6.5. I have  Lightroom 2.7 installed and I just purchased Photoshop Elements 9. I am  trying to edit my Lightroom photos in Elements by going to the Menu,  selecting Photos and then the selecting Edit In, but I am not able to select

  • Utf8 Support pliz?

    Hi, I do not  mind subscribing for paid membership for forms, it looks great, but it lacks some basic features, its 21st century and it onyl supports latin1? I am getting following error when I test my for in the web : "The field contains unsupported

  • Cursor behavior

    Once upon a time, my cursor would snap to the default button in a dialog window. I can't remember when or why that stopped, but I'd like to have that feature again. Any suggestions on a way to do this?

  • SUS domain in catalogs is wrong

    We have recently purchased a Mac server for using the SUS to update our Macs, but we have run into a problem. Originally the problem was that when any computer tried to update with the server, it would quickly run through the catalog and say no updat