rss
SOATUBE
Oracle
Custom Search SOABYTE here

Tuesday, January 18, 2011

Delimited String to XML nodeset


















INPUT

  <?xml version="1.0" encoding="UTF-8" ?>
<ns1:process xmlns:ns1="http://xmlns.oracle.com/Application2_jws/delimitedstring/BPELProcess1" xmlns:wsa="http://www.w3.org/2005/08/addressing">
  <ns1:input>a,b,c,d,e</ns1:input>
  </ns1:process>

EXPECTED OUTPUT


<outputVariable>
<part name="payload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><processResponse xmlns="http://xmlns.oracle.com/Application2_jws/delimitedstring/BPELProcess1">
   <result>a</result>

<result>b</result>
<result>c</result>
<result>d</result>
<result>e</result>
</processResponse>

</part>
</outputVariable>

LOGIC

<assign name="Assign_1">
            <bpelx:copyList>
                <bpelx:from expression="oraext:create-nodeset-from-delimited-string('{http://xmlns.oracle.com/Application2_jws/delimitedstring/BPELProcess1}result',bpws:getVariableData('inputVariable','payload','/client:process/client:input'),',')"/>
                <bpelx:to variable="outputVariable" part="payload"
                          query="/client:processResponse/client:result"/>
            </bpelx:copyList>
        </assign>

16 comments:

Anonymous said...

I have tried using the same steps explained, but I am getting the error as:
XPath query string returns multiple nodes. The assign activity part and query are returning multiple nodes.
But I have used the Assign Copylist operation and my result element is unbounded

Unknown said...

Could you send me the project if not yet resolved..

teamfusion.oracle@gmail.com

k said...

I am also getting the error "XPath query string returns multiple nodes". My result element is unbounded. Please help.

Unknown said...

For the time being you can try alternate method http://www.soabyte.com/2010/09/convert-comma-delimited-data-to-xml.html .I will have to look into it..Please send the project if possible to soabyte@gmail.com

Vivek Garg said...

http://soawork.blogspot.in/2012/08/delimited-string-to-xml-in-soa-11g.html

Vivek Garg said...

Http://soawork.blogspot.com/

Go thourgh "Delimited to XML " post from this blog

glaobal said...

It will always be helpful to read articles from other authors and practice something from other sites marsbahis
trendbet
galabet

Yayınlayıcı said...

thanks admin great article Hacklink
Hacklink
Hacklink
Hacklink
Hacklink
Hacklink
Hacklink
SEO Fiyatları
Vezir Sosyal Medya

taksi said...

Good content. You write beautiful things.
hacklink
hacklink
vbet
vbet
sportsbet
sportsbet
mrbahis
korsan taksi
mrbahis

kralbet said...

Success Write content success. Thanks.
betpark
betturkey
canlı poker siteleri
canlı slot siteleri
betmatik
kıbrıs bahis siteleri
deneme bonusu

BaLua said...

elf bar
binance hesap açma
sms onay
JQZ2

peru said...

betmatik
kralbet
betpark
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
M4Q5

yağız said...

bilecik
gebze
ısparta
şırnak
alsancak
2DWHG

Sami said...

salt likit
salt likit
ZCWL

mehmet said...

ağrı
muş
mersin
afyon
uşak

A8N

burak said...

https://saglamproxy.com
metin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
Cİ7HD0

Post a Comment

 
Blogger Profile