Trouble with XML tags

I have tagged individual elements of text within a text box with tags from an imported xml file. When I import another xml file with the exact same tags but different content two of my tagged elements won't update. I have tried untagging and retagging and I can't get it to update with the new content. Another bit of info is that I have another text box with some of the same tags in it and that one will update just fine. Can anyone tell me what I am missing?
Thanks.
Chad

Rather than using collection attribute (which requires a runtime expression) instead use the name attribute.
Also, if you aren't going to use the variable "booId" in scriptlet code/expressions, you can leave out the "type" attribute.
Probably the scope attribute as well.
That all boils down to:
<logic:iterate id="booId" name="arrayListOfDeptnos">
  <html:link action="/getme" paramId="theNum" paramProperty="deptNo" paramName="booId">
    <bean:write name="booId" property="deptNo"/>
  </html:link>
</logic:iterate>And for completeness, the same thing using some JSTL code:
<c:forEach var="booId" items="${requestScope.namearrayListOfDeptnos}">
  <html:link action="/getme" paramId="theNum" paramProperty="deptNo" paramName="booId">
    <c:out value="${booId.deptNo}"/>
  </html:link>
</c:forEach>Cheers,
evnafets

Similar Messages

  • Report for editing the word document with xml tags

    Hi all,
    My requirement is to edit the contents of the word document in the presentation server through report programming and save that document  in the presentation server.
    For eg if my word document contains many xml  tags with spaces < EDI_DS40 >, i would like to remove the spaces and i want it to be lyk <EDI_DS40>.Then say if i wanted to make some modification (addition, deletion,replacing with some text) in the text in some nth line of the document how can dis be dione.
    Is there any function module or bapi which serves this purpose.
    Can anyone pls guide me on dis.
    Thanks & Regards,
    Revathi.

    Hi,
    just to let you know I have sorted this.
    http://macintoshhowto.com/leopard/how-to-merge-pdf-files-with-preview-in-leopard .html
    Thanks.

  • Conversion of text with xml tags to text without xml tags

    Hi all,
    We have a requirement wherein we have to discard xml tags in a text string.
    The scenario is that we have got the text from the fm READ_TEXT which contains xml tags also.
    we need to populate this text sans the xml tags  into the data segment of a iDOC.
    The text returned by the FM is " <s><<H>INVOICING INSTRUCTIONS:</><s> Invoices referencing a Boyne "
    Helpfull ans will be rewarded
    TIA

    Use the function module:
    SOTR_TAGS_REMOVE_FROM_STRING
    sorry for duplicate post:
    Check this thread:
    Need help getting rid of those <ASX:ABAP> tags from the generated XML file!
    Re: XI 2.0 Inbound message to XI has XML Tags Stripped out
    as well
    Regards,
    ravi

  • Trouble with struts tags

    Hi,
    I am new to struts and am getting confused with the tags.
    I have few doubts.
    My Actionform would be -
    public class AForm extends ActionForm {
        //~ Instance fields ********************************************************
        String deptNo;
        String dName;
        String loc;
        //~ Methods ****************************************************************
         * This function
         * @param deptNo DOCUMENT ME!
        public void setDeptNo(String deptNo) {
            this.deptNo = deptNo;
         * This function
         * @return DOCUMENT ME!
        public String getDeptNo() {
            return deptNo;
        }In my action class I say -
    selectSql = "SELECT DEPTNO FROM DEPT";
                    pStmt = conn.prepareStatement(selectSql);
                    theResultSet = pStmt.executeQuery();
                    ArrayList _arrayList = new ArrayList();
                     while (theResultSet.next()) {
                        AForm theAForm = new AForm();
                        theAForm.setDeptNo(theResultSet.getString("DEPTNO"));
                        _arrayList.add(theAForm);
                    req.setAttribute("arrayListOfDeptnos", _arrayList);My question is -
    How do I get this arraylist in the JSP and iterate through it? Should I code in this way? Is there an more elegant way to do it??
    My JSP page
    <%   
              java.util.ArrayList ss = (java.util.ArrayList)request.getAttribute("arrayListOfDeptnos");
              if(ss!=null){
        %>
          <logic:iterate id="booId" scope="request" collection="<%=ss%>" type="mypackage27.AForm">
            <html:link action="/getme" paramId="theNum" paramProperty="deptNo" paramName="booId">
              <bean:write name="booId" property="deptNo"/>
            </html:link>
          </logic:iterate>
          <%  
        %>I know this must be very trivial ...

    Rather than using collection attribute (which requires a runtime expression) instead use the name attribute.
    Also, if you aren't going to use the variable "booId" in scriptlet code/expressions, you can leave out the "type" attribute.
    Probably the scope attribute as well.
    That all boils down to:
    <logic:iterate id="booId" name="arrayListOfDeptnos">
      <html:link action="/getme" paramId="theNum" paramProperty="deptNo" paramName="booId">
        <bean:write name="booId" property="deptNo"/>
      </html:link>
    </logic:iterate>And for completeness, the same thing using some JSTL code:
    <c:forEach var="booId" items="${requestScope.namearrayListOfDeptnos}">
      <html:link action="/getme" paramId="theNum" paramProperty="deptNo" paramName="booId">
        <c:out value="${booId.deptNo}"/>
      </html:link>
    </c:forEach>Cheers,
    evnafets

  • Trouble with MergeFormat tags appearing in Word doc

    Hello! I have been living with this problem for ages, and
    just manually deleting them. But, I now have a new coworker who
    does not get the same problem when we single-source the same
    project to Word.
    When I create a single-source Word document, before each
    topic heading in the newly generated Word doc, I get a tag like
    this: { XE "GPA:setting up" \MERGEFORMAT} I get one for each index
    entry for the topic. I do not generate an index when I generate
    printed docs. I'm trying to figure out where to get rid of these.
    It looks like a Word setting. My coworker and I have looked at all
    of our options in both Robo and Word, and can't seem to find which
    one made hers go away.
    I use RH7 and Word 2003.
    Any ideas? Thank you for your help in advance.

    Sorry - I think I figured it out. I have to look at
    formatting (Show/Hide Formatting) when I use Word, she does not. I
    see now that the index entry tags don't print when you print the
    Word docs (so I don't need to delete them) - but they are ugly to
    look at as you are editing! Not sure if there is any other way to
    view all other formatting marks without those. As long as I don't
    have to delete them all anymore, and they don't appear in the
    printed docs, I'm happy.
    Thanks anyway.

  • Having trouble with xml package in "Building Oracle Xml Applications"

    I have modified the xml package found in Building Oracle XML Applications chapter 5 to exclude everything but the CLOB function, see Package below. When compiling the package body I am getting the following error.
    SQL> @xml_body
    35 /
    Warning: Package Body created with compilation errors.
    SQL> show errors
    Errors for PACKAGE BODY XML:
    LINE/COL ERROR
    19/5 PL/SQL: Statement ignored
    19/15 PLS-00382: expression is of wrong type
    SQL>
    The error occurs at this line in the xml_body package.
    retDoc := xmlparser.getDocument(parser);
    I am new to Oracle and any help would be appreciated.
    CREATE OR REPLACE PACKAGE xml AS
    -- Parse and return an XML document
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument;
    -- Free the memory used by an XML document
    PROCEDURE freeDocument(doc xmldom.DOMDocument);
    END;
    CREATE OR REPLACE PACKAGE BODY xml AS
    parse_error EXCEPTION;
    PRAGMA EXCEPTION_INIT(parse_error,-20100);
    -- Parse functions parse an XML document and return a handle to
    -- the in-memory DOM Document representation of the parsed XML.
    -- Call freeDocument() when you're done using the document returned
    -- by the function.
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument IS
    retDoc xmldom.DOMDocument;
    parser xmlparser.Parser;
    BEGIN
    IF xml IS NULL THEN RETURN NULL; END IF;
    parser := xmlparser.newParser;
    xmlparser.parseCLOB(parser,xml);
    retDoc := xmlparser.getDocument(parser);
    xmlparser.freeParser(parser);
    RETURN retDoc;
    EXCEPTION
    WHEN parse_error THEN
    xmlparser.freeParser(parser);
    RETURN retDoc;
    END;
    -- Free the Java objects associated with an in-memory DOM tree
    PROCEDURE freeDocument(doc xmldom.DOMDocument) IS
    BEGIN
    xmldom.freeDocument(doc);
    END;
    END;
    null

    I have modified the xml package found in Building Oracle XML Applications chapter 5 to exclude everything but the CLOB function, see Package below. When compiling the package body I am getting the following error.
    SQL> @xml_body
    35 /
    Warning: Package Body created with compilation errors.
    SQL> show errors
    Errors for PACKAGE BODY XML:
    LINE/COL ERROR
    19/5 PL/SQL: Statement ignored
    19/15 PLS-00382: expression is of wrong type
    SQL>
    The error occurs at this line in the xml_body package.
    retDoc := xmlparser.getDocument(parser);
    I am new to Oracle and any help would be appreciated.
    CREATE OR REPLACE PACKAGE xml AS
    -- Parse and return an XML document
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument;
    -- Free the memory used by an XML document
    PROCEDURE freeDocument(doc xmldom.DOMDocument);
    END;
    CREATE OR REPLACE PACKAGE BODY xml AS
    parse_error EXCEPTION;
    PRAGMA EXCEPTION_INIT(parse_error,-20100);
    -- Parse functions parse an XML document and return a handle to
    -- the in-memory DOM Document representation of the parsed XML.
    -- Call freeDocument() when you're done using the document returned
    -- by the function.
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument IS
    retDoc xmldom.DOMDocument;
    parser xmlparser.Parser;
    BEGIN
    IF xml IS NULL THEN RETURN NULL; END IF;
    parser := xmlparser.newParser;
    xmlparser.parseCLOB(parser,xml);
    retDoc := xmlparser.getDocument(parser);
    xmlparser.freeParser(parser);
    RETURN retDoc;
    EXCEPTION
    WHEN parse_error THEN
    xmlparser.freeParser(parser);
    RETURN retDoc;
    END;
    -- Free the Java objects associated with an in-memory DOM tree
    PROCEDURE freeDocument(doc xmldom.DOMDocument) IS
    BEGIN
    xmldom.freeDocument(doc);
    END;
    END;
    null

  • Problem with XML Tags

    Hi All,
    The XML PI is expecting is 
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_TAC xmlns:ns0="urn://BLSWebsite/CreateServiceOrder">
    <TAC>
         <TACHEADER>
              <FILETYPE>ZNSMORDER</FILETYPE>
              <FILEID>090730.12014</FILEID>
              <VERSION>1.0</VERSION>
         </TACHEADER>
         <ZNSMORDER>
              <HEADER>
                   <NOTIFICATIONNO>na03909302</NOTIFICATIONNO>
                   <CUSTOMERNO>8510656</CUSTOMERNO>
                   <CEDROP>CE847452</CEDROP>
                   <COMMENTS>Need copy of hppc v7r3 so can upgrade site from v7r1...
                   Have a great day,
                   Randy</COMMENTS>
                   <REQUIREDBY>00/00/0000</REQUIREDBY>
                   <DETAIL>
                        <PARTNUMBER>P30152P1182P004</PARTNUMBER>
                        <QUANTITY>1</QUANTITY>
                        <PRICE>0.00</PRICE>
                        <SYSTEMID>L31907D 645U</SYSTEMID>
                   </DETAIL>
              </HEADER>
         </ZNSMORDER>
    </TAC>
    </ns0:MT_TAC>
    but the XML We are recieving from third party is
    <?xml version="1.0"?>
    <TAC>
         <TACHEADER>
              <FILETYPE>ZNSMORDER</FILETYPE>
              <FILEID>090730.12014</FILEID>
              <VERSION>1.0</VERSION>
         </TACHEADER>
         <ZNSMORDER>
              <HEADER>
                   <NOTIFICATIONNO>na03909302</NOTIFICATIONNO>
                   <CUSTOMERNO>8510656</CUSTOMERNO>
                   <CEDROP>CE847452</CEDROP>
                   <COMMENTS>Need copy of hppc v7r3 so can upgrade site from v7r1...
                   Have a great day,
                   Randy</COMMENTS>
                   <REQUIREDBY>00/00/0000</REQUIREDBY>
                   <DETAIL>
                        <PARTNUMBER>P30152P1182P004</PARTNUMBER>
                        <QUANTITY>1</QUANTITY>
                        <PRICE>0.00</PRICE>
                        <SYSTEMID>L31907D 645U</SYSTEMID>
                   </DETAIL>
              </HEADER>
         </ZNSMORDER>
    </TAC>
    The initial tags are missing so the messsage fails in XI so i there any possible way to recieve what they are sending and add the tags reuired by SAP-PI by some method in XI. Please help on this

    Hi,
    open your message type in integration repository and remove the namespace from it
    + you also need to change the message type name from MT_TAC to TAC
    and remove the TAC tag from the data type
    then it will work
    Regards,
    Michal Krawczyk
    Edited by: Michal Krawczyk on Aug 7, 2009 9:58 AM

  • Trouble with Meta Tags

    I manually add the tags meta name="description" and meta
    name="keywords" to the html code in RH7. Then when I save the file
    it strips out the quote marks around the words "description" and
    "keywords". Then when I compile as WebHelp the tags are completely
    removed. What is up with this? Surely there must be a way to use
    these common tags in RH.

    Hi Esch
    You might try making the following changes. Note that
    Dreamweaver likely added its own Meta tag to state what the editor
    was. RoboHelp does something similar. So perhaps change the
    RoboHelp meta tag to reflect Dreamweaver. Sort of "fooling"
    RoboHelp into thinking Dreamweaver created the topic. You would
    also probably want to remove any other RoboHelp specific tags just
    in case. (I think there are two or three others. Maybe more.)
    My thought here is that if you could trick RoboHelp into
    believing Dreamweaver created the page it would leave it alone.
    Assuming, of course, that your observation is spot on with RoboHelp
    leaving the tags alone.
    Cheers... Rick

  • Help me with XML tag !!!

    i want to build an interated application
    Example : when user press 1 button (soft key on mobile phone) , it will direct to a page . And press 2 to go to another page.
    I have tried to use SimpleBind,SimpleMatch,SimpleTask
    But i don't know how to recognine the event that the key was pressed and how to get it (how to compare with the value represent to 1 button).
    I think that i should use the tag SimpleSwitch,SimpleCase to compare the value but it require the name of the formfield ,and i don't know get(set) the name of the event that the 1 button was pressed .
    Thank.
    F.Redondo

    you can add <SimpleAction target="http://host/..." type="accept" .../> to assign the action to the primary button and <SimpleAction target="http://host/..." type="options" .../> to assign the secondary key

  • SAP PI 7.31 / Sender SOAP Channel Issue with XML tag Main/@versionMajor has incorrect value 000; expected value is 003

    Hi PI Experts,
    We are on SAP PI 7.31 SP 10.
    We are in the process of integrating ARIBA P2P solution using SOAP Adapter as sender to connect Ariba with our PI system.
    We have configured all required components in ESR and ID(Most of them are content provided by Ariba).When we try to post a message into PI using SOAP UI we are ending with below error.

    http://<host name> : <port name> /XISOAPAdapter/MessageServlet?channel= <party name> : <service name> : <channel name>
    For the above issue we had configured SOAP Sender channel as above,and the URL we are using to hit PI is as above screenshot.
    We have followed the note on this topic with out any luck.
    1378872
    We are not sure where is problem.As the issue is not reaching to PI not able to see the messages in SXMB_MONI.
    and in the SXMB_ADM PI has been configured as Integration Server.
    I had even tried to change the message protocol as XI3.0 in SOAP sender channel and noluck.
    I have tried to ximessage=true query also in URL and noticed that not working.This is clear that the message we are trying to send from Ariba is not compatible with XI3.0 protocol,Ariba is not having any option to change at their end as it is a cloud application and many customers have been using same with out any issues.
    We have tried maintain the Java System properties in NWA as XPI.Adapter.Version.Major = 3 but no luck.
    Can some one provide us the solution to get rid of this issue?

  • Checking .txt file with valid XML tags

    hey guys,
    I've a .txt file which conatins info with XML tags. I've to check whether the file contains valid tags or not!
    a tag should start with "<" and end with ">", there shouldn't be space between characters after "<" e.g.
    a tag should be like "<name>" or "</name>" not "< name>" or  "< /name>" nor "<name" or "</name"nor "name>" or  "/name>"Here is an example of a well formed XML document:
    <root>
    Some text <nextTag> more text  <secondTag> stuff </secondTag> </nextTag> more text again
    </root>Here is an example of XML .txt file:
    <students >
         <student>
              <name> John </name>
              <name> Doe </name>
              <address> 98 Pine St.</address>
         </stdnt>
    </students>I also have to make sure that no text appears before and after the root tag! Please help me, i'm trying to figure out but my alogrithm just doesn't work! Thanks in advance!!!

    What's the purpose of those requirements? If you
    wanted to check whether the file was well-formed XML
    then you would just need to run it through an XML
    parser. But some of the things you plan to reject are
    actually well-formed XML. I don't see the point of
    that.basically, it's my assignment. In the assignment our task is to check the .txt files to make sure that all XML tags are valid. The problems i mentioned in my first post, i've figured those out, eventually. There're few other things which i've to also make sure for example no text appearing before and after the root tag
    Can someone please tell me how i can check following cases:
    text<root> or </root> text  (both are invalid XML files)

  • Excel Output problem with XML Publisher Report

    Hi Experts,
    I am working on XML Publisher report with EBS 11i and database 9i. My XML Report output type is EXCEL, i have below issue with the output.
    I have column 'quantity' with xml tag <?QUANTITY?>.
    In the XML file it's showing the value '028' for quantity, but when i open the output in EXCEL, it's showing up '28', removing leading zero. I want to show the data in EXCEL also '028'. Could somebody help me how to print the XML Tag value as it is in EXCEL output.
    Thanks in advance.

    Hi, try using this in your template.
    <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?QUANTITY?></fo:bidi-override>

  • Replace the XML Tags which are in binary format in 4.6C Version

    Hi Experts,
    I have an issue. I am working on 4.6 c version of sap. I have a requirement to send  ftp of an xml file. I created an internal table which has components of table type too ( For Line items ). After appending a record of sales order into the table I am using   SDIXML_DATA_TO_DOM ( To attach the to the document ) and SDIXML_DOM_TO_XML ( To convert the document contents into XML ( Binary Format ).
           CLASS cl_ixml DEFINITION LOAD.
          g_ixml = cl_ixml=>create( ).
          CHECK NOT g_ixml IS INITIAL.
          m_document = g_ixml->create_document( ).
          CHECK NOT m_document IS INITIAL.
          CALL FUNCTION 'SDIXML_DATA_TO_DOM'
            EXPORTING
              NAME               = 'xmldata'   " data in character format
              DATAOBJECT         = xmldata[]
           IMPORTING
             DATA_AS_DOM        = l_dom
           CHANGING
             DOCUMENT           = m_document
           EXCEPTIONS
             ILLEGAL_NAME       = 1
             OTHERS             = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          CHECK NOT l_dom IS INITIAL.
          w_rc = m_document->append_child( new_child = l_dom ).
          IF w_rc IS INITIAL.
          WRITE 'OK'.
          ELSE.
          WRITE: 'ERR ='.
          ENDIF.
          CALL FUNCTION 'SDIXML_DOM_TO_XML'
            EXPORTING
              DOCUMENT            = m_document
            PRETTY_PRINT        = ' '
            IMPORTING
              XML_AS_STRING       = w_string
              SIZE                = w_size
            TABLES
              XML_AS_TABLE        = it_xml   " Final XML data ( with xml tags ( xml tags are the field names of internal table ) ) in bin
            EXCEPTIONS
              NO_DOCUMENT         = 1
              OTHERS              = 2
          IF SY-SUBRC = 0.
          WRITE 'OK'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
          WRITE: 'ERR =',
          sy-subrc.
          ENDIF.
    So, it_xml has the binary format of XML data.
    Now the requirement is that I need to get rid of some XML tags in the final internal table XML data. Because by default, at the start of the the table row the <item> and </item> tags are inserted. This is automatically done in the Function module
    SDIXML_DOM_TO_XML.
    I want to find out the binary string of <item> and </item> and replace them by null binary string. I know how to replace the character strings but not for binary strings in 4.6 C.
    It is little bit urget. I would appreciate the quicker answer.

    Hi,
    check this program , I think this will help you
    TYPE-POOLS: ixml.
    TYPES: BEGIN OF xml_line,
    data(256) TYPE x,
    END OF xml_line.
    data : itab like catsdb occurs 100 with header line.
    data : file_location type STRING.
    data : file_name like sy-datum.
    data : file_create type STRING.
    file_name = sy-datum .
    file_location = 'C:\xml\'.
    concatenate file_location file_name into file_create.
    concatenate file_create '.XML' into file_create.
    DATA: l_xml_table TYPE TABLE OF xml_line,
    l_xml_size TYPE i,
    l_rc TYPE i.
    select * from catsdb into table itab.
    append itab .
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    PE_BIN_FILESIZE = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    I_TAB_CONVERTED_DATA = l_xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
    bin_filesize = l_xml_size
    filename = file_create
    filetype = 'BIN'
    CHANGING
    data_tab = l_xml_table
    EXCEPTIONS
    OTHERS = 24.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    write : 'INTERNAL TABLE DATA IS SUCCESSFULLY DOWNLOADED TO LOCATION', file_create .
    Thanks.

  • Extracting value from XML tags in Java

    Hi all,
    I need to extract the value from a string (XML Format). Eg. <Name>Ray</Name> and displaying Name: Ray
    The string value is like any other String class object except that it is format with XML tags. I have quite a few examples that shows how a value can be read from a .xml file but none that describe how to get a value from a String object.
    Thanks in advance.

                         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         DocumentBuilder parser = factory.newDocumentBuilder();
         Document document = parser.parse("Your XML Goes here ");

  • Query trouble with DI Server

    Hello everybody,
    I'm trying to execute SQL with DI Server. This is my SOAP-command:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header>
        <SessionID>63089993-AC37-4225-845D-D9722A50D5A7</SessionID>
      </env:Header>
      <env:Body>
        <dis:ExecuteSQL xmlns:dis="http://www.sap.com/SBO/DIS">
          <DoQuery>SELECT NULL AS Cat1Name, NULL AS Cat2Name, NULL AS Cat3Name, NULL AS Cat4Name,
              NULL AS Cat1Code, NULL AS Cat2Code, NULL AS Cat3Code, NULL AS Cat4Code
              FROM OITM
              WHERE 0 = 1 /* Dummy query to circumvent problems with XML-tag */
              UNION
              SELECT Cat1Name, Cat2Name, Cat3Name, Cat4Name, Cat1Code, Cat2Code, Cat3Code, Cat4Code
              FROM (
                SELECT cat1.Name AS Cat1Name, cat2.Name AS Cat2Name, cat3.Name AS Cat3Name, cat4.Name AS Cat4Name,
                cat1.Code AS Cat1Code, cat2.Code AS Cat2Code, cat3.Code AS Cat3Code, cat4.Code AS Cat4Code
                FROM @CATEGORY_4 cat4
                JOIN @CATEGORY_3 cat3 ON cat3.Code = cat4.U_Category_3
                JOIN @CATEGORY_2 cat2 ON cat2.Code = cat3.U_Category_2
                JOIN @CATEGORY_1 cat1 ON cat1.Code = cat2.U_Category_1
              UNION
                SELECT cat1.Name AS Cat1Name, cat2.Name AS Cat2Name, cat3.Name AS Cat3Name, NULL AS Cat4Name,
                  cat1.Code AS Cat1Code, cat2.Code AS Cat2Code, cat3.Code AS Cat3Code, NULL AS Cat4Code
                FROM @CATEGORY_3 cat3
                JOIN @CATEGORY_2 cat2 ON cat2.Code = cat3.U_Category_2
                JOIN @CATEGORY_1 cat1 ON cat1.Code = cat2.U_Category_1
              UNION
                SELECT cat1.Name AS Cat1Name, cat2.Name AS Cat2Name, NULL AS Cat3Name, NULL AS Cat4Name,
                  cat1.Code AS Cat1Code, cat2.Code AS Cat2Code, NULL AS Cat3Code, NULL AS Cat4Code
                FROM @CATEGORY_2 cat2 JOIN @CATEGORY_1 cat1 ON cat1.Code = cat2.U_Category_1
              UNION
                SELECT cat1.Name AS Cat1Name, NULL AS Cat2Name, NULL AS Cat3Name, NULL AS Cat4Name,
                  cat1.Code AS Cat1Code, NULL AS Cat2Code, NULL AS Cat3Code, NULL AS Cat4Code
                FROM @CATEGORY_1 cat1
              ) TMP
              WHERE ISNULL(Cat1Code, '') = '101'
              OR ISNULL(Cat2Code, '') = '101'
              OR ISNULL(Cat3Code, '') = '101'
              OR ISNULL(Cat4Code, '') = '101'
              OR '101' = ''</DoQuery>
        </dis:ExecuteSQL>
      </env:Body>
    </env:Envelope>
    When I run the SQL-bit in SQL Server 2005, all is fine. When I run this with DI Server, I get this response:
    <?xml version="1.0"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Body>
        <env:Fault>
          <env:Code>
            <env:Value>env:Receiver</env:Value>
            <env:Subcode>
              <env:Value>229</env:Value>
            </env:Subcode>
          </env:Code>
          <env:Reason>
            <env:Text xml:lang="en">Failed to execute command</env:Text>
          </env:Reason>
          <env:Detail>
            <Statement>..The Query..</Statement>
            <Command>ExecuteSQL</Command>
            <SessionID>63089993-AC37-4225-845D-D9722A50D5A7</SessionID>
          </env:Detail>
        </env:Fault>
      </env:Body>
    </env:Envelope>
    Is this query too complex for the DI server to handle? Is it the subquery? Is it the unions?
    Thanks for your time!
    Vincent

    I have tried other queries in my application and they all don't seem to work anymore.
    I recently upgraded from PL39 to PL42. Has there been a change in the SOAP schema again?

Maybe you are looking for