tag:blogger.com,1999:blog-2427235520011315739.post6151998066067005203..comments2023-09-06T02:08:18.192+10:00Comments on Denis's Blog: Some XPath functions useful in BPELAnonymoushttp://www.blogger.com/profile/05849388591764685658noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-2427235520011315739.post-7868907599431542742015-04-09T19:01:46.778+10:002015-04-09T19:01:46.778+10:00Hi,
I have to get base64 encoded content from WS a...Hi,<br />I have to get base64 encoded content from WS and send it to another WS. WS returns message<br /><br /> <br /> <br /> <br />Test_001 <br />Text .... <br /> <br />iVBORw0KGgoAAAANSUhEUgAABU4AAAJMCAYAAAAlqjx9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAJswSURBVHhe7N15fBVVnv9//8eKwyHM2Oap2QEAAACgj6IitKtHi9PT09N0f38fPhwAAAAA4C2KitCuzs7Oyo40LE6vrq7S+fl5ms1m4QYAAAAAAN6aqAjtKnejOWFxmnN5eVm2q/loKgAAAADAkOUutCpNc1qLUxEREREREREREZH/axSnIiIiIiIiIiIiIhtJ6T84e1xlyXhQJgAAAABJRU5ErkJggg== <br /> <br /><br /><br />I have problem to assign content of Object element to input variable of WS.<br /><br />$WebServicePLResponse2.return/skt:Body/msc:MessageContainer/msc:Object[round($Counter)]<br />returns null and set all attributes<br /><br />$WebServicePLResponse2.return/skt:Body/msc:MessageContainer/msc:Object[round($Counter)]/text()<br />ends with exception<br /><br />string($WebServicePLResponse2.return/skt:Body/msc:MessageContainer/msc:Object[round($Counter)])<br />returns null<br /><br />bpel:getVariableData('WebServicePLResponse2','return')/skt:Body/msc:MessageContainer/msc:Object[round($Counter)]<br />returns null for base64 but works for XML content<br /><br />Please tell me how to get base64 encoded content from message.<br />I am using wso2bps-3.2.0 and Eclipse Version: Kepler Service Release 2, <br />buildId 4.3.2.M20140221-1700 with WSO2 BPEL plug-in 2.0.0<br /><br />Thank you in advanceAnonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-17908307145371502702015-03-17T03:00:31.918+11:002015-03-17T03:00:31.918+11:00Hi Denis!
You have written that its possible to gi...Hi Denis!<br />You have written that its possible to give regular expressions as parameters of contains() function. I've tried, but it seems that this function doesn't support use of regular expressions.Anonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-74164186067601815452015-01-16T20:12:55.575+11:002015-01-16T20:12:55.575+11:00That's greatThat's greatAnonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-60898203873627316822015-01-16T19:20:50.520+11:002015-01-16T19:20:50.520+11:00Hi, I wrote long message about problem with extrac...Hi, I wrote long message about problem with extracting XML from anyType element to string but then I found that is default element of simple type variable. So then I edited my message.Anonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-6845862795100162392015-01-16T17:03:35.083+11:002015-01-16T17:03:35.083+11:00Hi,
It seems I did not get your full message. I on...Hi,<br />It seems I did not get your full message. I only see it partially. Could you please send me your full request in plain text?Anonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-17608958749041737002015-01-15T00:19:11.174+11:002015-01-15T00:19:11.174+11:00Hi,
I have problem with substring functions. At fi...Hi,<br />I have problem with substring functions. At first I get message with element type=anyType.<br /><br /> <br /> <br /> <br /> <br /><br /><br /><br />output variable with message is<br /><br /><br /><br /> <br /> <br /> 0<br /> <br /> <br /><br />then BPEL assign do<br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br />returns<br /><br /><br /><br /> 0<br /><br /><br />or string($newMessageCountResponse.parameters) returns<br /><br />0<br /><br />I don't know how to get rid of with temporary-simple-type-wrapper. <br />Because even when variable newMessageCount is type string I cannot do substring.<br />Every substring function (for example substring($newMessageCount, 20, 1)) ends with <br /><br />I use WSO2 BPS 3.2.0<br /><br />Thank youAnonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-35457245051538228232014-01-28T20:17:56.377+11:002014-01-28T20:17:56.377+11:00Hi Anil,
I did not use BPS for over a year now. So...Hi Anil,<br />I did not use BPS for over a year now. So it's better if you can ask from WSO2 Community.Anonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-32981769350147275322014-01-21T15:53:26.026+11:002014-01-21T15:53:26.026+11:00Thank you Denis,But how can i give time at the run...Thank you Denis,But how can i give time at the run time.means while i am testing the data from ''TRY-IT'' EDITOR in BPS Server ,How would i give time dynamically in 'TRY-IT'' EDITOR in BPS Server,And even i need to escalate the same as Manager wise like" time over,escalating to your manager ", .Please guide me.Anonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-54592771800290235612014-01-20T23:35:57.423+11:002014-01-20T23:35:57.423+11:00Thank you Denis,But how can i give same at the run...Thank you Denis,But how can i give same at the run time.means while i am testing the data from ''TRY-IT'' EDITOR in BPS Server , How would i give time dynamically in 'TRY-IT'' EDITOR in BPS Server.Anonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-24669972163143723372014-01-20T21:32:49.240+11:002014-01-20T21:32:49.240+11:00Hi Anil,
You should have a look at "onAlarm&...Hi Anil,<br /><br />You should have a look at "onAlarm" construct. https://www.oasis-open.org/committees/download.php/23964/wsbpel-v2.0-primer.htm#_Toc166509708Anonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-68789802616966252382014-01-20T19:14:50.657+11:002014-01-20T19:14:50.657+11:00Hi Denis,First thank you for your postings..I have...Hi Denis,First thank you for your postings..I have one query can please help me.<br /><br />I have to write time based scheduling in BPEL, is this is possible in BPEL, how write to the time based properties in BPEL.Could you please explain me,<br /><br />Thanks in Advance<br /><br />AnilAnonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-7070207723620301912011-06-15T05:14:00.281+10:002011-06-15T05:14:00.281+10:00Hi Giuseppe,
This article will help you. The sampl...Hi Giuseppe,<br />This article will help you. The sample explained here use the same type of logic you mentioned in the first comment.<br /><br />http://wso2.org/library/articles/writing-simple-ws-bpel-process-wso2-bps-apache-ode<br /><br />Arrivederci :)<br />Denis WeerasiriAnonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-45301404988892607502011-06-15T05:10:24.683+10:002011-06-15T05:10:24.683+10:00Hi Giuseppe,
Based on your requirement,
XPath is ...Hi Giuseppe,<br />Based on your requirement, <br />XPath is need for <br /> 1. extract input parameters from incoming messages to bpel(like username, password etc)<br /> 2. create the request variables (to add username and password to the request message of the particular web service)<br /><br />So you can easily do this, without even using XPath functinos I've mentioned here.<br /><br />Arrivederci :)<br />Denis WeerasiriAnonymoushttps://www.blogger.com/profile/05849388591764685658noreply@blogger.comtag:blogger.com,1999:blog-2427235520011315739.post-70021322937209986022011-06-15T04:38:46.620+10:002011-06-15T04:38:46.620+10:00Hi Denis,
my name is Giuseppe and i come from Ital...Hi Denis,<br />my name is Giuseppe and i come from Italy. I arrived here by google when i was searching XPATH for BPEL.<br />Maybe you can help me :) !!<br />I'm developing simple web services on JBOSS 5.1 based on BPEL that run by Riftsaw.<br />My goal is:<br />1 Web services which takes in input a Username and provides it in output<br />1 Web services which takes in input previous username and a password, and provides them in output<br />1 Web services which takes in input previous username and password string, and return to output 'TRUE' of 'FALSE' if login parameters are verified.<br />I don't know how use XPATH for doing it. Actually i studied only the way for concat a string to the input by SayHello example, which located in riftsaw subfolder.<br /><br />Can you help me ???kinghomerhttps://www.blogger.com/profile/07207978500167161027noreply@blogger.com