camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shrish Srivastava (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-5826) Apache Camel 2.9 Splitter with tokenize dont work with namespaces
Date Wed, 28 Nov 2012 09:04:58 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shrish Srivastava updated CAMEL-5826:
-------------------------------------

    Description: 
when trying to tokenize a stream having namespaces, no tokens are produced with inheritNamespaceTagName
property.

-------------------------------------------------------------------

<route id="hrp.connectorsCtxt.sddRcvFile2">
<from
                           uri="file:C:\Temp\esb\sdd\in?recursive=true&amp;preMove=.processing&amp;move=../.processed"
/>
                    <camel:split streaming="true">
                           <tokenize token="suiviDemande" inheritNamespaceTagName="suivisDemandes"
xml="true"/>
                           <log message="${header.CamelSplitIndex} : ${in.body}" />
                    </camel:split>
             </route>

-------------------------------------------------------------------


  was:
when trying to tokenize a stream having namespaces, no tokens are produced with inheritNamespaceTagName
property.

-------------------------------------------------------------------

<route id="hrp.connectorsCtxt.sddRcvFile2">
<from
                           uri="file:C:\Temp\esb\sdd\in?recursive=true&amp;preMove=.processing&amp;move=../.processed"
/>
                    <camel:split streaming="true">
                           <tokenize token="suiviDemande" inheritNamespaceTagName="suivisDemandes"
xml="true"/>
                           <log message="${header.CamelSplitIndex} : ${in.body}" />
                    </camel:split>
             </route>

-------------------------------------------------------------------

Following is my xml file ,whcih we are trying to Tokenize.
------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:suivisDemandes xmlns="urn:orange.sopra.com:domain:v2-00"
	xmlns:ns2="urn:orange.sopra.com:ws:hrs:V1U00">
	<ns2:suiviDemande>
		<referenceEchange>
			<idOrigine>
				<basicat>FRH</basicat>
				<refDmde>7F42F</refDmde>
			</idOrigine>
			<emetteur>FRH</emetteur>
			<tsEchange>2012-07-31T18:32:52.612+02:00</tsEchange>
		</referenceEchange>
		<flux>
			<etat>
				<codeEtat>editionDraft</codeEtat>
				<rang>0</rang>
				<description>la demande a été enregistrée</description>
				<titulaire>
					<cuid>AHNA5444</cuid>
					<prenom>Herve</prenom>
					<nom>Nicolo</nom>
				</titulaire>
				<tsEtat>2012-07-31T18:32:52.612+02:00</tsEtat>
			</etat>
		</flux>
		<caracteristiques>
			<liens>
				<lien>
					<url>FormRH/request/gestionFormAction.do?requestId=521263</url>
					<type>Relatif</type>
				</lien>
			</liens>
			<acteurs>
				<demandeur>
					<cuid>AHNA5444</cuid>
					<prenom>Herve</prenom>
					<nom>Nicolo</nom>
				</demandeur>
				<concerne>
					<cuid>AHNA5444</cuid>
					<prenom>Herve</prenom>
					<nom>NICOLO</nom>
				</concerne>
			</acteurs>
			<donnees>
				<codeForm>REM_08</codeForm>
				<filiereRH>false</filiereRH>
				<desc>Demande d'acompte ou avance sur salaire</desc>
				<descdetail>Demande d'acompte ou avance sur salaire</descdetail>
			</donnees>
		</caracteristiques>
	</ns2:suiviDemande>
</ns2:suivisDemandes>
------------------------------------------------------------------------------




    
> Apache Camel 2.9 Splitter with tokenize dont work with namespaces
> -----------------------------------------------------------------
>
>                 Key: CAMEL-5826
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5826
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-stax
>         Environment: Windows
>            Reporter: Shrish Srivastava
>            Assignee: Rich Newcomb
>            Priority: Critical
>
> when trying to tokenize a stream having namespaces, no tokens are produced with inheritNamespaceTagName
property.
> -------------------------------------------------------------------
> <route id="hrp.connectorsCtxt.sddRcvFile2">
> <from
>                            uri="file:C:\Temp\esb\sdd\in?recursive=true&amp;preMove=.processing&amp;move=../.processed"
/>
>                     <camel:split streaming="true">
>                            <tokenize token="suiviDemande" inheritNamespaceTagName="suivisDemandes"
xml="true"/>
>                            <log message="${header.CamelSplitIndex} : ${in.body}" />
>                     </camel:split>
>              </route>
> -------------------------------------------------------------------

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message