Formatting date in bpel ,any thoughts?

Both Input,Output fields are of type Date.
Input Date is Julian Date
I will get Input date as YYYY/MM/DD. I want to format and send- output date as YYYY-MM-DD
I tried below ways, its not working
<client:OutputDate>
<xsl:value-of select="translate(/client:process/client:Order/client:Order/client:InputDate,'/','-')"/>
</client:OutputDate>
<client:OutputDate>
<xsl:value-of select='xpath20:format-dateTime(client:process/client:Order/client:Order/client:InputDate,"[Y0001]-[M01]-[D01]")'/>
</client:OutputDate>
Thanks
Edited by: user13374451 on Sep 17, 2010 4:17 AM
Edited by: user13374451 on Sep 17, 2010 9:11 AM
Edited by: user13374451 on Sep 20, 2010 8:39 PM

Thanks Pavan,
I tried your option, it does not work. I tested by giving YYYY/MM/DD and I get SOAP Exception, if I give YYYY-MM-DD and test it works. But i will get YYYY/MM/DD format from erp system.
<xsl:value-of select='xpath20:format-dateTime(translate(client:process/client:Order/client:Order/client:DateRequestedJulian,"/","-"),"[Y0001]-[M01]-[D01]")'/>
Error:
javax.xml.soap.SOAPException: Error parsing envelope: most likely due to an invalid SOAP message.: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
Cause: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
<xsl:value-of select='xp20:format-dateTime(translate(client:process/client:Order/client:Order/client:DateRequestedJulian,"/","-"),"[Y0001]-[M01]-[D01]")'/>
Error:
javax.xml.soap.SOAPException: Error parsing envelope: most likely due to an invalid SOAP message.: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
Cause: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
everything works fine only when I give date in YYYY/MM/DD, I get SOAP Exception
However, if I use xp20 or xpath20 I get Exception. and when I use xpath20 I get ERROR in XSL design mode.
I am using SOA 11G
user 792775 ,user13374451

Similar Messages

  • I am no longer able to turn off cellular data usage for individual apps.  When I turn most of them off, they just automatically reset themselves to allow data usage.  Any thoughts?

    I am no longer able to turn off cellular data usage for individual apps. 
    When I turn most of them off, they just automatically reset themselves to allow data usage.
    Any thoughts?

    I am definately having the same problem and cannot believe there are no answers or even support that this problem exists.  I never have to post on forumns, I read what is usually readilly availiable for the craziest of problems. 
    Anyways, the problem is just that, I can toggle off a individual app's setting of cellular data availability, but it changes right back on rescreening.  After restarting, resetting etc, it seems that the big Apple Apps are the biggest offenders.  Music is a very important one, Podcasts can kill you very quickly, app store, Photos, Facetime, Stocks?!?!?!
    When one searches for solutions I have to see hundreds of links to "How great is ios7, you can turn off cellular data for individual apps FOR DUMMIES!".  I am a dedicated apple fool since the Apple IIe (long time), but when they run afowl it is usually really bad.  Why offer an on/off switch if the setting is always on?
    I am writing just to add support to the existence of this problem, not so much for people to offer ideas of solutions as I now believe it is in the coding.
    Thank you

  • My resume will not load on Apple's career site. I've tried PDF format and Docx. When I hit upload and go back to my profile, nothing is there. Any thoughts?

    My resume will not load on Apple's career site. I've tried PDF format and Docx. When I hit upload and go back to my profile, nothing is there. Any thoughts?

    Hi Mac Attack,
    My computer will not disconnect from the internet.  It seems to find a clone router and continues even when I shut down and unplug my my own home iy
    Your main question was 'chopped' in the title. Please reply in the body of a reply box with the full question and anything you have tried. And no, the long report was not helpful .
    If the same website is opening each time you launch a browser (Safari?) hold down the shift key as you launch to prevent previous pages from opening.
    Have a look at your settings in Safari > Preferences. Especially General and Privacy.
    Reset Safari to remove cookies and other stored data.
    System Preferences > General
    Have a look at your settings in System Preferences >  Security & Privacy.
    Call back with more questions.
    Regards,
    Ian

  • I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    You're welcome. As to checking speed go to http://speedtest.net/ and it will choose the closest server for you. BTW, whatever you do, don't click on the robot icon that says "Start Scan" or MacKeeper below that. Only use the speed test in the middle that has the button BEGIN TEST on it. It will run a download speed test first and then an upload speed test. The download test will give a much faster response.

  • I have an iphone5 that is eating up data time and I can't figure out why? Any thoughts?

    I have an iphone5 that is eating up data time and I can't figure out why? Any thoughts? I have closed everyting I can, even took the phone to Verizon and they are not sure what is going on.   My company email is active and pushes to the phone....I use Safari regularly to look up stuff for personal and work use.  I am on Facebook but have turned it off in notifications.  Four phones and a hotspot on the account....we have 6g and have never come close to it, until lately and it's my phone that's eating up the gigs.  So what the heck is going on?

    Go to Settings/Cellular and you can see how much data each app is using. You can Reset Statistics, then track all of the apps data usage.

  • Using ACT as database/calendar with iPhone 3GS.  On intial sync, i Phone picked up everything but won't sync with new data added to ACT.  Any thoughts and tk in advance

    Using ACT 10 as calander/data base.  When intial syncing with iPhone 3 GS it picked up all contacts and dates.  It is not picking up any changes / additions to the data base or calendar in any following syncs.  Any thoughts?  Tks in advance

    This is normal and is how Apple handles photos.
    There are NOT duplicate photos.
    Just as a song is in your itunes library and you can access that exact same song from a playlist,  all  photos synced to iphone are in the photo library and those exact same photos (NOT duplicates) can be accessed from the individual albums.
    It is working exactly as it should.

  • Date search with any format in oracle

    Hi Friends
    i have Problem with the date format In Db i have column with message (VARCHAR2)
    like.
    Admin~Assigned ~01-08-2013 03:12:35~ [email protected]
    Admin~Assigned ~01-AUG-2013 03:12:35~TEXT [email protected]
    Admin~Assigned ~01-JAN-13 03:12:35~text [email protected]
    Admin~Assigned ~01-07-13 03:12:35~TEXT [email protected]
    I enter only date in varchar2 any format '01-AUG-2013' .it will give the all output.
    How do i do that. Pls help me
    Thanks

    I had to deal with crappy data like yours many times. And its always a pain. We always expect for a magical generic solution. But there is never one such solution
    This is the best I have got.
    Lets consider this is your table.
    SQL> select *
      2    from t;
    STR
    Admin~Assigned~01-08-2013 03:12:[email protected]
    Admin~Assigned~01-AUG-2013 03:12:[email protected]
    Admin~Assigned~01-JAN-13 03:12:[email protected]
    Admin~Assigned~01-07-13 03:12:[email protected]
    We can split your data into columns like this.
    SQL> select regexp_substr(str, '[^~]+', 1, 1) col1
      2       , regexp_substr(str, '[^~]+', 1, 2) col2
      3       , regexp_substr(str, '[^~]+', 1, 3) col3
      4       , regexp_substr(str, '[^~]+', 1, 4) col4
      5       , regexp_substr(str, '[^~]+', 1, 5) col5
      6       , regexp_substr(str, '[^~]+', 1, 6) col6
      7    from t
      8  /
    COL1                 COL2                 COL3                 COL4                 COL5              COL6
    Admin                Assigned             01-08-2013 03:12:35  TEXTMGMT             INSERT            [email protected]
    Admin                Assigned             01-AUG-2013 03:12:35 TEXTMGMT             UPDATE            [email protected]
    Admin                Assigned             01-JAN-13 03:12:35   textMGMT             DELETE            [email protected]
    Admin                Assigned             01-07-13 03:12:35    TEXTMGMT             INSERT            [email protected]
    Now the problem is you have the date value (COL3) in various format. That's messed up. To convert a string into a date format the first thing you need to know is the format of the string. Basically how the string is represented as date. Without knowing that there is no way you can convert a string to date. Said that now you need to device a method to convert string input having various date formats into a date value.
    Below is a function that does that. But the problem is that you need to define the possible date formats in that. I have defined 10 date formats (No magic there ).
    SQL> create or replace function convert_as_date
      2  (
      3    p_date_string varchar2
      4  ) return date
      5  as
      6    type l_dt_fmt_tbl is table of varchar2(100) index by pls_integer;
      7    l_dt_fmt_list l_dt_fmt_tbl;
      8    l_ret_dt date;
      9
    10    function check_date_format
    11    (
    12       p_str varchar2
    13     , p_fmt varchar2
    14    ) return date
    15    is
    16      l_dt date;
    17    begin
    18      l_dt := to_date(p_str, p_fmt);
    19      return l_dt;
    20    exception
    21      when others then
    22        return null;
    23    end;
    24  begin
    25    l_dt_fmt_list(1)  := 'dd-mm-yyyy hh24:mi:ss';
    26    l_dt_fmt_list(2)  := 'mm-dd-yyyy hh24:mi:ss';
    27    l_dt_fmt_list(3)  := 'dd-mm-rr hh24:mi:ss';
    28    l_dt_fmt_list(4)  := 'dd-mon-yyyy hh24:mi:ss';
    29    l_dt_fmt_list(5)  := 'mon-dd-yyyy hh24:mi:ss';
    30    l_dt_fmt_list(6)  := 'dd-mm-yyyy';
    31    l_dt_fmt_list(7)  := 'dd-mon-yyyy';
    32    l_dt_fmt_list(8)  := 'yyyy-mm-dd hh24:mi:ss';
    33    l_dt_fmt_list(9)  := 'yyyy-mon-dd hh24:mi:ss';
    34    l_dt_fmt_list(10) := 'yyyy-dd-mm';
    35
    36    for i in 1..l_dt_fmt_list.count
    37    loop
    38      l_ret_dt := check_date_format (p_date_string, l_dt_fmt_list(i));
    39      exit when l_ret_dt is not null;
    40    end loop;
    41
    42    if l_ret_dt is null then
    43      raise_application_error(-20001, 'Invalid date: Specified format not supported');
    44    end if;
    45
    46    return l_ret_dt;
    47  end;
    48  /
    Function created.
    Once you have this you can do the following.
    SQL> var input_val varchar2(100)
    SQL> exec :input_val :=  '01-AUG-2013 03:12:35';
    PL/SQL procedure successfully completed.
    SQL> with my_tbl
      2  as
      3  (
      4  select regexp_substr(str, '[^~]+', 1, 1) col1
      5       , regexp_substr(str, '[^~]+', 1, 2) col2
      6       , regexp_substr(str, '[^~]+', 1, 3) col3
      7       , regexp_substr(str, '[^~]+', 1, 4) col4
      8       , regexp_substr(str, '[^~]+', 1, 5) col5
      9       , regexp_substr(str, '[^~]+', 1, 6) col6
    10    from t
    11  )
    12  select *
    13    from my_tbl
    14   where convert_as_date(col3) = convert_as_date(:input_val);
    COL1                 COL2                 COL3                 COL4                 COL5              COL6
    Admin                Assigned             01-08-2013 03:12:35  TEXTMGMT             INSERT            [email protected]
    Admin                Assigned             01-AUG-2013 03:12:35 TEXTMGMT             UPDATE            [email protected]

  • I have a JVC GY-HM100U and when I try to get the video files (MP4 format) off of the the SD card I get the error message OSStatus error -12909...any thoughts?

    I have a JVC GY-HM100U and when I try to get the video files (MP4 format) off of the the SD card I get the error message OSStatus error -12909...any thoughts?

    To be more precise: You MUST shoot in mov. Then drag the Clip bins from the card to you hard drive. Then drag the clips to FCP timeline and FCP asks you if you want to change to the right codec and of course you say YES. Now you can start editing. Can not be more simple. This camera was specially designed for use with FCP.

  • I can not sync my Iphone 4s with Itunes.  I get a "required file can not be found" error.  I went the apple stroe yesterday and they said a file may be corrupt.  I have uninstalled and re-installed Itunes so it is up to date.  ANy thoughts?

    I can not sync my Iphone 4s with Itunes.  I get a "required file can not be found" error.  I went the apple stroe yesterday and they said a file may be corrupt.  I have uninstalled and re-installed Itunes so it is up to date.  ANy thoughts?

    Anybody?

  • Everytime I try to back-up my data on iCloud I get a message saying I don't have enough storage space.  Yet, in settings it says I have 4.4 GB of storage available.  Any thoughts?

    Everytime I try to back-up my data on iCloud I get a message saying I don't have enough storage space.  Yet, in settings it says I have 4.4 GB of storage available.  Any thoughts?

    Welcome to the Apple Community.
    What size does it say your next back up will be.

  • When attempting to format my new internal Hitachi 500 GB hard drive I get an I/o error and the drive is reading as a 3.4 TB drive in disk utility.  Any thoughts?

    I have a 2007 MacBook. 2 years ago I upgrade the HD to a 500 GB 7200 RPM Hitachi. That drive just failed so I purchased another from the same store. When attempting to reload the OS the drive was not showing up as an option when asked to select a destination drive for the OS. I then exited the install and opened disk utility. Disk utility lists the capacity of the drive as 3.4 TB and when attempting to partition the drive it gives an input/output error. So I tried the hard drive from my other MacBook which already has an OS on it and it works fine. I surmised that the drive was faulty and had the store exchange it for another of a different model, but same specs. Second drive is doing the exact same thing. I figured there must be something wrong internally with the logic board so I tried using my other MacBook to load the OS and it's giving me the same exact error. Now I'm wondering what the deal is. When using the original 160 GB HD that came in the machine it works fine but the brand new one doesn't work. Any thoughts?

    I have a 2007 MacBook. 2 years ago I upgrade the HD to a 500 GB 7200 RPM Hitachi. That drive just failed so I purchased another from the same store. When attempting to reload the OS the drive was not showing up as an option when asked to select a destination drive for the OS. I then exited the install and opened disk utility. Disk utility lists the capacity of the drive as 3.4 TB and when attempting to partition the drive it gives an input/output error. So I tried the hard drive from my other MacBook which already has an OS on it and it works fine. I surmised that the drive was faulty and had the store exchange it for another of a different model, but same specs. Second drive is doing the exact same thing. I figured there must be something wrong internally with the logic board so I tried using my other MacBook to load the OS and it's giving me the same exact error. Now I'm wondering what the deal is. When using the original 160 GB HD that came in the machine it works fine but the brand new one doesn't work. Any thoughts?

  • Transfered date from dying I4 to a replacement I4 and photos didn't transfer.  Well, my background one did.  ANy thoughts?

    I received a replacement I4 and did the backup before going to the new phone to restore. Everything transferred except for photos.  Cannot find photos in itunes.  Any thoughts on where they may be

    I understand the inconvenience you are experiencing when working with Office 2013.
    If you have any feedback about Office 2013 product, click the and submit to Microsoft.
    Microsoft will decide how to fix the problem for all customers.
    For the activation mechanism, it intends to protect customers of their rights and interests.
    For a retail version of Office, if it was purchased with a disk, Microsoft account is not necessary during the installation.
    For volume license of Office, refer to the following link to deploy Office suites can be much efficient:
    http://technet.microsoft.com/en-us/library/cc178982.aspx
    For the problem Office 2013 keep crashing, check the following link to check:
    http://support.microsoft.com/kb/2813143/en-us
    http://support.microsoft.com/kb/2758592/en-us
    Thanks,
    Tyor Wang
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no
    help.
    If you have any feedback on our support, please click
    here

  • Can't connect my external hard drive to my Mac Book Pro. Any thoughts?

    I have a 2.0 TB WD Mybookessential as an external hard drive to my Mac Book Pro and I'm getting a "The disk you inserted was not readable by this computer" message every time I try to remount it. Any thoughts?

    Thanks for the suggestion, Cattus, it is in fact a formatted disk with a lot of valuable data, so I do not want to reformat the disk.
    I followed your advice, however the repair failed because of an "invalid B-tree node size".
    This is the log:
    2011-12-27 17:03:33 +0000: Error: Filesystem verify or repair failed.2011-12-27 17:03:33 +0000:
    2011-12-27 17:03:33 +0000: Disk Utility stopped repairing “disk1s2” because the following error was encountered:
    Filesystem verify or repair failed.
    2011-12-27 17:03:33 +0000:
    2011-12-27 17:06:35 +0000:           Name :           WD My Book 1110 Media
              Type :           Disk
              Partition Map Scheme :           GUID Partition Table
              Disk Identifier :           disk1
              Media Name :           WD My Book 1110 Media
              Media Type :           Generic
              Connection Bus :           USB
              USB Serial Number :           574D415A4131363338333935
              Device Tree :           /PCI0/EHC1@1D,7/@2:0
              Writable :           Yes
              Ejectable :           Yes
              Mac OS 9 Drivers Installed :           No
              Location :           External
              Total Capacity :           1.8 TB (1,999,696,297,984 Bytes)
              S.M.A.R.T. Status :           Not Supported
              Disk Number :           1
              Partition Number :           0
    2011-12-27 17:06:35 +0000:
    2011-12-27 18:22:01 +0000: Verify and Repair volume “disk1s2”
    Starting repair tool:  2011-12-27 18:22:01 +0000
    2011-12-27 18:22:01 +0000: Checking Journaled HFS Plus volume.
    2011-12-27 18:22:15 +0000: Invalid B-tree node size
    2011-12-27 18:22:15 +0000: Volume check failed.
    2011-12-27 18:22:15 +0000: Error: Filesystem verify or repair failed.2011-12-27 18:22:15 +0000:
    2011-12-27 18:22:15 +0000: Disk Utility stopped repairing “disk1s2” because the following error was encountered:
    Filesystem verify or repair failed.
    2011-12-27 18:22:15 +0000:
    2011-12-27 18:31:57 +0000:           Name :           WD My Book 1110 Media
              Type :           Disk
              Partition Map Scheme :           GUID Partition Table
              Disk Identifier :           disk1
              Media Name :           WD My Book 1110 Media
              Media Type :           Generic
              Connection Bus :           USB
              USB Serial Number :           574D415A4131363338333935
              Device Tree :           /PCI0/EHC1@1D,7/@2:0
              Writable :           Yes
              Ejectable :           Yes
              Mac OS 9 Drivers Installed :           No
              Location :           External
              Total Capacity :           1.8 TB (1,999,696,297,984 Bytes)
              S.M.A.R.T. Status :           Not Supported
              Disk Number :           1
              Partition Number :           0
    2011-12-27 18:31:57 +0000:

  • My hard drive desktop suddenly will no longer hold or maintain the icons in place when I shut down and restart.  The icons all change positions, alphabetically.  Just started happening.  Any thoughts?

    My hard drive desktop suddenly will no longer hold or maintain the icons in place when I shut down and restart.  The icons all change positions, alphabetically.  Just started happening.  I prefer the icons to a list format.  Concerned this might be a symptom of a larger problem.  Any thoughts?
    revmandan

    It's normal for the icons at the top level of the startup disk to revert to the same arrangement every time the Finder is relaunched. If it's important to you to arrange those icons in a persistent way, proceed as follows.
    Back up all data.
    Open the Info window on the startup disk (labeled "Macintosh HD" unless you gave it another name.) Click the lock icon in the lower right corner of the dialog and authenticate.
    In the Sharing & Permissions section, click the plus-sign button to add an entry to the access list. Give yourself "Read and Write" access. This will be a temporary change. Leave the dialog open.
    Open the Finder window and arrange the icons as you wish, then close the window.
    In the Info dialog, use the minus-sign button to delete the entry you just added to the access list. Don't change anything else. When you're done, it should be the same as when you started. Close the Info dialog.

  • Sort data Date wise(YYYY-MM-Date) in BPEL output

    HI,
    Can any one help me, how to write code for sort data Date wise(YYYY-MM-Date) .
    I pass the input as Name from the service wsdl(Exposed Services) and its call the third party service(External References) , its return the output like below one,
    Name:Vodafone
    Pole:INdia
    End Date:2012-05-12
    Name:Airtel
    Pole:USA
    End Date:2012-05-13
    Name:Uninor
    Pole:Canda
    End Date:2020-10-13
    Name:Celltell
    Pole:INdia
    End Date:2011-03-21
    Above o/p in Random way, but i need this one in sort data date wise.
    Finally i need output based on the latest End Date..
    like,
    Name:Uninor
    Pole:Canda
    End Date:2020-10-13
    Name:Airtel
    Pole:USA
    End Date:2012-05-13
    Name:Vodafone
    Pole:INdia
    End Date:2012-05-12
    Name:Celltell
    Pole:INdia
    End Date:2011-03-21.
    Could you please help me the format of code, and where to i implement this one. its very urgrnt.
    Regards,
    Harsih

    Hi
    Sukanya,
    Thanks for ur quick replyy, i fetch data from external reference onlyy. If i fetch data from DB what u said its exactly right.
    Re: Sort data Date wise(YYYY-MM-Date) in BPEL output 

Maybe you are looking for