CIDX Adapter - cannot even handle normal XML files

Hi folks,
We are very busy with getting the CIDX adapter up and running and we found out something which I simply cannot understand or believe ...
It seems that the CIDX adapter is NOT capable of dealing with any XML content that is laid out over multiple lines ... it doesn't even likes spaces between tags ... your XML content needs to be on 1 line ...
simply unbelievable ...
If you do provide an XML message on multiple lines then the thing crashes ...
We are exchanging XML messages for years now with partners all over the world but I haven't seen anybody exchanging XML content on 1 line ...
When the adapter generates a message then the 3 XML messages within the CIDX enveloppe are indeed all on 1 line ... Very helpfull and readable when you are looking at your message log files ...
Seriously ... this has to be a joke right ?
Steven

Hi Bhagyesh,
You are right ... the CIDX adapter does not seem to have a multi-line issue ...
Well it obviously did with my content but I suspect something went wrong in my copy-paste action.
I used a production message from Elemecia and extracted the 3 payloads but somehow I got non-visible non-allowed characters in my xml message.
I retried again with another payload and that worked fine ( as far as this issue concerns - I got an even more interesting issue but that is not in topic of this post )
So to make it clear - multi-line are supported by the CIDX adapter ... no issue here ...
Only the message logging is terrible ...
Bye,
Steven

Similar Messages

  • Hi since sunday,my imessages are not working..i cannot even send normal sms to iphone users..is there any problems in the software ? pls advice

    Hi since sunday,my imessages are not working..i cannot even send normal sms to iphone users..is there any problems in the software ? pls advice

    Found the rootcause. The battery was damaged and unable to have enough power to keep the device alive. After changing the device problem is solved.

  • Handle multiple xml files as input?

    I have a java parser which uses JDOM and translates xml file to a flat file. Currently it handles one file at a time. I want to handle if there are multiple such files. Have anyone of you encountered that?
    Could you please help? Thanks.....

    How about multiple xml files as argument and let your Java class handle them one by one?
    Or probably even better: it should be possible to get all the names of the xml files in a directory and let you class handle those one by one. Like this you don't need the arguments and just process all the xml files in maybe a dedicated directory.
    Kind regards,
    Hans.

  • Is this a good way for loading and handling an xml file?

    I'm new to xml files, but it seems to me that a good way to handle them may be this:
    - create an xmltype table with a unique xmltype column
    - load the xml file in the xmltype column of the table
    - writing a procedure for scanning the whole column of the table by using the extractvalue built-in function for inserting the different nodes of the xml file (just loaded) in the final tables (to link correctly the father and son tags with foreign keys)
    Does it seem to you a good way to load the nodes of a xml file in a relation database?
    Thanks!

    Is this the 10gR2 Express Edition you mentioned over in How to load a XML file into a table or a different version?

  • FTP adapter converting "&" to "&" while creating XML file.

    Hi
    Using a BPEL process: I am fetching data from a DB and placing that data into a XML file on target. One of the fields (Type:Varchar2) contains "&" ampersand character.When this data is being put in an XML, the target file contains "&" instead of "&".
    Please note: This seems to be happening only when the XML file is created on target; Because I can see that during the transformation as well as in the input variable to FTPPut adapter "&" is shown as "&" only (and not "&").
    Please let me know in what way can we avoid this conversion of "&" to "&" on the target XML file".
    Thanks for the help!
    Regards,
    Achal Mundra
    Edited by: rameshchandra on Nov 5, 2012 11:53 PM

    Thanks Anuj.
    I actually needed that the target file should also be without any namespace references or XML headers(e.g. <?xml version="1.0" encoding="UTF-8" ?>). We have got the following data as the input to the FTP adapter :
    +<TempStringToRemoveNS_Var>+
    +<RadiantDocument CreationSource="CompanyName" CreationTimestamp="2012-11-06T05:12:39.009-08:00" Name="Org Hierarchy Import" Version="1.8">+
    +<OrgHierarchyList>+
    +<OrgHierarchy Name="ABC" LongName="NewLongName" ParentOrgHierarchyName="XYZ" OrgHierarchyLevelName="Region"/>+
    +</OrgHierarchyList>+
    +</RadiantDocument>+
    +</TempStringToRemoveNS_Var>+
    We need the target XML file to have data exactly as below:
    +<RadiantDocument Name="Org Hierarchy Import" CreationSource="CompanyName" CreationTimestamp="2011-02-28T02:48:32" Version="1.8">+
    +<OrgHierarchyList>+
    +<OrgHierarchy Name="ABC" LongName="NewLongName" ParentOrgHierarchyName="XYZ" OrgHierarchyLevelName="Region"/>+
    +</OrgHierarchyList>+
    +</RadiantDocument>+
    Hence, it should not have any parent node or XML header or namespace.
    Your suggestion would be really helpful.
    Regards,
    Achal

  • Correct adapter to use for an XML file

    Hi,
    My current scenario for our business partner is that we are sending them an 850 and 856 then an XML file.
    For 850 and 856, we are using AS2 adapter. For the XML file, could I still use the same adapter?  Or I need to use File adapter instead?
    My scenario for the xml file is that an IDoc is converted to an XML file.  This XML file is then sent to the business partner.
    Please advise.
    Thanks very much.
    Regards,
    Lex

    Hi VJ,
    I just found out that I could also use the AS2 adapter to send the xml file to the trading partner.
    Thanks for your kind response.
    Regards,
    Lex

  • Handling large xml files using tree

    hi,
    I have an issue with a tree having xml data as the
    dataprovider. The front end makes a http service call to a servlet
    at a server to get the string representation of an xml file . The
    string format is changed to xml in the flex front end and made to
    display as a tree. Everything works fine when the xml data is small
    but as xml data grows in size the handling of data into the tree is
    very slow and the application does not respond sometimes..Can
    anyone tell me how i could get this issues solved or is there a
    better way to solve it. Or is there a way that the tree gets
    displayed only when all the nodes or loaded properly and there are
    no lags while user tries to navigate through it..
    Thanks in advance...

    Hi,
    Did you get a reply for this? If so,can you pl share it with me too?
    i need to send a XML +also need to set 2 parameters over Http Post to a servlet...
    Thanks,
    -uday.
    [email protected]

  • ITunes library is empty, even after importing xml file

    HI! I found the article and a couple of threads here about restoring the iTunes library and followed the steps but it hasn't worked.
    This morning I tried to open iTunes and a box came up saying 'importing iTunes library', then the box went away, iTunes opened and everything was blank. I found the article about restoring the library which said to find the iTunes folder and drag the old files to the trash then import the xml file which I did but iTunes is still blank. I've tried importing the libraries in the 'previous iTunes Libraries' files but nothing is working. The files seem to be there, including the songs I've bought recently...but how to get them back into the library?
    I didn't upgrade to 8.0....

    Hi - we actually found the problem - for some reason Realplayer was set as a default to play all media files. Went to Preferences, set iTunes as default and restarted and presto - the library was there... Hope that helps!!

  • Cannot parse node in XML file

    I have the following xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <model:test xmlns:model="bla">
      <Bounds>
        <Left>0.0</Left>
        <Top>0.0</Top>
        <Width>0.0</Width>
        <Height>0.0</Height>
      </Bounds>
    </model:test>Now I try to parse this using the below code:
        DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
        domFactory.setNamespaceAware(true);
        DocumentBuilder builder = null;
        try {
          builder = domFactory.newDocumentBuilder();
        } catch (ParserConfigurationException e) {
          e.printStackTrace();
        try {
          doc = builder.parse(new File(pathToData));
        } catch (SAXException e) {
          e.printStackTrace();
        } catch (IOException e) {
          e.printStackTrace();
        NodeList nodes = doc.getElementsByTagNameNS("model","test");
        Node node = nodes.item(0);
        if(node == null) {
          System.out.println("is null");
        System.out.println(nodes.getLength());  But the null test evaluates to true and it prints:
    is null
    I don't get any exceptions and also specify:
    domFactory.setNamespaceAware(true);
    so why is the node null?

    The problem is here:
    NodeList nodes = doc.getElementsByTagNameNS("model","test");"model" has absolutely no meaning in the DOM, it's simply a short name for the full URI of the namespace you use ("bla" in your example). You need to use this instead:
        NodeList nodes = doc.getElementsByTagNameNS("bla","test");To demonstrate the fact, the following XML would be effectively equivalent to the one you posted
    <?xml version="1.0" encoding="UTF-8"?>
    <foobar:test xmlns:foobar="bla">
      <Bounds>
        <Left>0.0</Left>
        <Top>0.0</Top>
        <Width>0.0</Width>
        <Height>0.0</Height>
      </Bounds>
    </foobar:test>

  • Photoshop Elements V12.1 crashes when trying to save file. Mac OS 10.6.8 on MacBookPro. App has worked before. Cannot even save a new file with a simple change.

    How to bring Photoshop Elements V12.1 back to working condition. Tried shutting down MacBookPro. Starting up. Launch Elements. Open a new file. Add text. Save file. App crashes. This is repeatable with different attempts. The app is useless at this point. Any ideas?

    Well, FWIW, PSE 12 isn't supposed to be compatible with 10.6, although the editor does work for most people.
    Go to the editor's preferences>general, click this button and restart the editor:

  • File Adapter : read XML file with data validation and file rejection ?

    Hello,
    In order to read a XML file with the file adapter, I have defined a XSD that I have imported to my project.
    Now the File Adapter reads the file correctly but it does not give an error when:
    - the data types are not valid. Ex: dateTime is expected in a node and a string is provided
    - the XML file has invalid attributes.
    How can I manage error handling for XML files ?
    Should I write my own Java XPath function to validate the file after is processed ? (here is an example for doing this : http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21058568.html)
    Thanks.

    one option is to specify validateXML on the partnerlink (that describes the file adapter endpoint) such as shown here
    <partnerLinkBinding name="StarLoanService">
    <property name="wsdlLocation"> http://<hostname>:9700/orabpel/default/StarLoan/StarLoan?wsdl</property>
    <property name="validateXML">true</property>
    </partnerLinkBinding>
    hth clemens

  • Use XML files stored in directory of Application server as a input for XI ?

    I have a scenario that there is a xml file stored in sap application server for example /inf/ERQ/XML/XXX.xml which i want to use it as an input for XI. I know that there is an adapter in XI for getting xml file stored in normal path but in my situation it's in application server of SAP so i don't know how to do this.
    Any solution or example for this? Thank you in advance.
    Best regards

    Hi,
    We can read this file through FILE adapter with FTP protocol, before that i think need permission from basis for access.  Configure source(according to xml format) and target structure according to your requirement.  But one thing should remember in XI/PI sour/target XML formats should contain Message type name & namespace name else it can't work.
    Find below link for more information.
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)

  • Translation of excel file to an xml file

    hello
    does any one know how do I translate an Excel File to enter to the XI as XML file?
    (XI 3.0 version, SP21)
    Thanks
    Kfir

    Module acts as a special function that is used by an Adapter to provide the additional functionality to the Adapter.
    By using File Adapter we can only read .xml files and .txt files (using File Content Conversion). 
    If we want to read an excel sheet, it is not possible by using the normal File Adapter.
    For this purpose we are developing a module & Deploying it into the sap j2ee server and we will specify the module name in module tab of Communication channel.
    Then this module will read excel sheet and convert that into an xml format which XI can understand.
    Thanks.

  • How open and edit the coherence.xml file?

    How can I open and edit the coherence.xml file?
    I cannot find the coherence.xml file in the coherence.jar package.
    Thank you,
    June

    If you are intent on changing the coherence.xml file, then you could use the JAR command (that comes with Java) to extract the coherence.xml file from coherence.jar and the later repackage the coherence.jar file using the udpated coherence.xml file, e.g.:
    C:\java\opt\coherence-331\lib>jar -xvf coherence.jar tangosol-coherence.xmlextracted: tangosol-coherence.xml>
    Instead of using JAR, on Windows you can associate the .JAR, .WAR and .EAR extensions with WinZip and use it to access / modify the contents of JAR files.
    However, the suggested approach is as follows, and does not include any changes to the tangosol.jar file:
    The tangosol-coherence-override-dev.xml file can be found in the coherence.jar file. After editing this file (in this case to define a unique value for the port system-property value for the multicast listener), save the file and add it to the server's classpath. When the server is executed, the values in the tangosol-coherence-override-dev.xml file will override any corresponding settings in the tangosol-coherence.xml file.Peace,
    Cameron Purdy | Oracle Coherence

  • How to trigger web service automatically when xml file generated at static

    Hi Experts,
    I have developed web service to read content from XML file.
    I need to setup like whenever new xml file generated on static location (eg:E:\xml_files) generated web service should trigger automatically.
    My requirement:
    1) XML FIle content: have 3 tags with nultiple records.
    2) Configured Weblogic Apploication server on JDev 11g
    3) Developed Java code to read XML content and store it in Oracle Database.
    4) created web service and called java class.
    above 4 points, which I did already.
    I appreciate if any one help me out, when ever new file created on static location, web service should triggered automatically and stored the data in to data oracle DB.
    Thanks,
    Phani

    Hope you are looking for a SOA Suite/OSB solution for this.
    If SOA Suite - You can configure a JCA File Read adapter to read off the XML file and then use a mediator/composite to invoke your WS.
    If OSB - You can configure a File read transport or a JCA Adapter to read off the XML file and then use a route node/service callout to invoke your WS.

Maybe you are looking for