Problem in copy a string to a message parameter

Hi all,
I have a problem in copy a static string into a message as its parameter.
I use the default function in creating the copy rules...
<copy xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
     <from expression="string(WS1-PSC4-KUY2)">
     </from>
     <to variable="geo_in" part="parameters" query="/ns0:GetLocationByIP/ns0:LicenseKey"/>
</copy>
as the string is a liscence key to use this web service.
However, the string is not copied to anywhere of the outgoing message.
If I use the default type 'literal' and copy to the variable parameter,
it looks like this...
<copy xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
     <from>
                              WS1-PSC4-KUY2
                    </from>
     <to variable="geo_in" part="parameters" query="/ns0:GetLocationByIP/ns0:LicenseKey"/>
</copy>
it gives me an error...
[bpelc] BPEL source validation failed, the errors are:
[bpelc]
[bpelc] [Error]: Element 'from' must have no character [children], because the types content type is element-only.
[bpelc] [Description]: in line 43 of "C:\eclipse\workspace\ip_locate\ip_locate.bpel", Element 'from' must have no character [children], because the types content type is element-only..
[bpelc] [Potential fix]: .
[bpelc] .
Could anybody give me a hint on what's going wrong?

This is my actual code
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class TestingDate {
      * @param args
     public static void main(String[] args) {
          // TODO Auto-generated method stub
          String dateFormat="EEEE, MMM d h:mm a";
          Date test=new Date(2007,0,19, 19, 31);
          System.out.println(" original date is "+test);
          String stringResult=DateToString(test,dateFormat);
          System.out.println("Date to string is "+stringResult);
          Date dateResult=stringToDate(stringResult,dateFormat);
          System.out.println(" String to date is "+dateResult);
          String stringResult2=DateToString(dateResult,dateFormat);
          System.out.println(" Date to string  is "+stringResult2);
public static String DateToString(Date test, String dateFormat) {
         String result = null;
         try {
              DateFormat myDateFormat = new SimpleDateFormat(dateFormat);
                 result = myDateFormat.format(test);
                 //System.out.println(" reslut date is "+result);
          } catch (Exception e) {
               System.out.println(" Exception is "+e);
          return result;
public static Date stringToDate(String strDate,String dateFormat1){
     Date result1=null;
     try {
          DateFormat myDateFormat = new SimpleDateFormat(dateFormat1);
          result1=myDateFormat.parse(strDate);
     catch(Exception e){
          System.out.println(" exception is "+e);
     return result1;
}I am facing problem in getting the actual date. Please suggest the solution.

Similar Messages

  • How do I copy an entire string of text messages to email?

    I want to save a long string of text messages and export to email.
    On first try I can press "edit" select a few messages (worked for up to 14) and press "forward" to get them into email
    How do I copy the whole lengthy string of many texts?
    The copy/paste function would be tedious and take forever.
    On my iPhone, it allows one transfer, then no more will be allowed unless I reboot, then only one allowed again.
    Is there an easy way to load ALL texts (pref
    with time/date stamps)?
    Thank You

    Press and hold on a message, tap More > Select the messages you want > Tap the arrow > copy everything out of the new message that appears

  • How can I copy and forward a string of text messages from a Iphone 5s to an email address

    How can I copy and forward a string of text messages from an IPhone 5S to an Email address?

    You can find my blog post on the same.
    http://www.pointtobenoted.com/blog/technology/mobile/how-to-copy-messages-from-i message/
    The 6 steps process is listed step by step.
    Hope this helps.
    http://www.pointtobenoted.com/

  • HT201287 How can I copy a long string of txt messages?

    I am looking to manage a long string of txt messages. Is there a way to copy them in bulk verses one at a time?

    One method would be to use 3rd party software. The following is one example but there may be better/cheaper or even free options: http://www.wideanglesoftware.com/touchcopy/

  • Consolidate Problem. Copying files failed. The File name was invalid.

    Hi to everyone,
    My system is 10.5.8, iTunes 9.2.1 (4)
    I tried to consolidate my iTunes library to an external HD. After about 100GB of copied music, I got the message : Copying files failed. The File name was invalid.
    Now everytime I try again to consolidate, I get immediately this message. I am looking everywhere for a solution, and I only find the same problem for Windows iTunes users.
    Actually I found very useful this thread:
    http://discussions.apple.com/thread.jspa?threadID=1708372,
    which talks about with which order iTunes consolidates the media, so by digging a little in the folders to find which track has the problem and make the fix. It says that consolidate start copy the files by the date added order. So I can go in my new iTunes media folder and find the latest added track, then go back in iTunes, sort by date added the songs and locate the next song, to make the fix. However in my case, all previous and next songs (by date added), have been copied in the new locations.
    I am stuck. I have a remaining 300GB of music to consolidate and dont know how to proceed.
    Any help would be much appreciated..

    Finaly, I managed to solve it by myself...,
    following the help I found from the post of the thread I mentioned on my question...
    What was the problem that made things more difficult in my case, is that a big amount of songs have been added at the same time, with just a few seconds time distance. So it was tougher to locate what was the last imported song, and where iTunes consolidation had stopped. Actually I had groups of about 100 songs with the same timestamp of date added and the consolidation was following the rule of the "date added" but not exactly with the order the songs was showing in the iTuned library. So I started checking all the songs very close to the last added in the media folder one by one with the "show in finder" command, and then I managed to found what was the one with the problem.
    Regarding the problematic file, that was a midi file that had been imported in my iTunes.
    I hope this will help anyone else that might have the same problem as me in the future.

  • Problem with copying files between OS 9 to OS 10.4.9

    We have updated 2 computers to 10.4.9 after som minor problems its working fine the only problem we still have is that we cannot copy files from our older Mac running OS 9.2.2 to the macs running 10.4.9 if we copy 1 file its working when we want to copy a folder or more files the connection got lost we get a message the connection with the file server unexpectedly broken. We also have a Xserve running OS 10.4.6 coping files to the Xserve is not a problem and is running just fine.
    We can copy files or take files from the OS 10.4.9 macs to the Mac with OS 9.2.2 this is no problem just copying a bit slower then to the Xserve.
    All the computers are in a netwerk with cat5 cables and was working just fine before the updates to 10.4.9
    Regards Pepijn

    Welcome to Apple Discussions!
    Copying from 9 to 10.4.9 is not recommended unless Mac OS X is under control of the copying. Mac OS 9 has no familiarity with the file permissions of Mac OS X and thus if you make a mistake, you could seriously damage the permissions of Mac OS X. Others have found problems transferring from 9 to 10.4.9 where not with prior versions of Mac OS X. I say it is about time, because of the risks involved but for others their workflow depends on it they are having to relearn how to go the other direction. I've found if the risk is not taken account for, you can make Mac OS X unbootable. My suggestion is to either do all your networking and file transfer for Mac OS X from Mac OS X, or upgrade the software you have to Mac OS X native equivalent software. See my FAQ on migrating to X*:
    http://www.macmaps.com/macosxnative.html
    * Links to my pages may give me compensation.

  • Copy and paste - can't copy parts of a SMS message

     I'm getting really frustrated with the copy part of copy/paste within a SMS. In the SMS - If I tap on any number or word = nothing happens (if nothing is underlined), If I tap on a number underlined = I get the option to phone or skype?? If I double click = nothing happens, If I do a long press I the options to:COPY MESSAGE TEXTFORWARD MESSAGECOPY MESSAGE TO SIM CARDDELETE MESSAGEVIEW MESSAGE DE TAILSADD STAR  If I want to copy some text (e.g. phone number, address, anything else) but not the whole SMS I cannot find a way to do it. Anyone else having this problem with SMS messages? Sometimes you need to extract info from the SMS to paste into an entry box on a website for example or to add to contacts etc. Can anyone help?  

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    Unfortunately, it's not possible to copy parts of a text message in the pre installed messaging application. But if you press a number, you can open it with the phone application and copy the number from the dialer. And if you want to copy an URL, you can open the page and copy it from the URL-field.
    If you want parts from a text message, my best suggestion would be to copy the text into a notepad or similar and edit the text. Thereby, you can copy it with the text you want included.

  • Converting String to SOAP Message

    Hi,
    I have a problem in conveting a String to SOAPMessage.Can anybody help in suggesting a way. or atleast make me known wether it is possible to do this or not.
    -vyas

    I don't think you can "convert" a String to a SOAP message. If you read the SOAP specification, http://www.www.w3.org/TR/2001/WD-soap12-part1-20011217/, you'll find that you'll have to decide where you want your String to go. If it is xml-formatted, a subelement of the SOAP body element would be a good place for it. If it is not an xml-formatted String, you will have to send it as an attachment.
    Sun's JAX-RPC or JAXM is a good place to start.

  • Problem in copy 2 WORD files to a new WORD file

    Hi
    I have a problem in copy 2 WORD files to a new WORD file -
    i.e. the text of the new WORD file suppose to be composed from the text of the 2 original WORD files.
    Unfotunately I get a new WORD file which i can't open, or a file which contains strange simbols in it.
    So far i succeded in copy one WORD file to a new WORD file , using - FileOutputStream and FileInputStream, the code is:
    import java.io.*;
    public class IOStreamDemo {
    public static void main(String[] args)throws IOException {
    InputStream in2 = new FileInputStream("fruit.doc");
    OutputStream out2 = new FileOutputStream("dst2.doc");
    // Transfer bytes from in2 to dst
    byte[] buf2 = new byte[1024];
    int len2;
    while ((len2 = in2.read(buf2)) > 0) {
    out2.write(buf2, 0, len2);
    in2.close();
    out2.close();
    Does sombody know how to do it properly?
    Thanks

    dear friend
    I just create two word file one is fruit.doc and other
    is dst2.doc
    after that i write some lines in fruit.doc
    then I just execute your code.
    after that I open dst2.doc
    then I found it as exact copy of fruit.doc
    I doesn't get any junk text.
    Your code is working absolutely fine.No it is not. Add som styling, headers, index etc to the docuements, and then try to run the code. It's not possible to just append two word documents. You have to parse the files and read relevant information, and then create a new valid document with that information.
    /Kaj

  • Problem when exporting to Vimeo I get message "The share operation has failed. Quicktime error: -50" The file only gets to 8% before this happens any idea how to fix I have a movie deadline to meet!

    Hi all,
    Finished editing a short movie.
    Then went to share on vimeo but got this message - see also screenshot when I tried to export to desktop.
    Problem when exporting to Vimeo I get message "The share operation has failed. Quicktime error: -50" The file only gets to 8%.
    Have tried deleting my render files for the project and also another fix mentioned of deleting any black space files on the edit itself but neither work?
    Just upgraded to OS Mavericks could this be causing it? If so how to downgrade?
    thanks
    Louis B

    Thanks for your help both, I called Apple tech support and spoke to a really helpful chap called Andrea who helped me out. Now got my Master file sorted and am trying Vimeo upload again.
    Just to clarify points for people out there with the same issue:
    First steps
    - Ensure background rendering is turned off in preferences
    - Delete project and events render files
    - If upgraded to Mavericks then go to FCPX in finder under applications hit buttons 'CMD' and 'I' together and tick the 'prevent App Nap' box.
    Next Steps
    I had already done all of this when Apple Tech spoke to me so we discussed the message 'Quicktime -50' and what it meant. It wasnt a purely generic error message but was not detailed enough to point to one specific issue. This problem had occurred in previous years (so Mavericks not wholly to blame) and patches were issued over the years by Apple to help resolve some of the problems.
    The message essentially is indicating that there is a problem somewhere with the media in some way shape or form.
    My export went to 8% then failed. Apple's answer was that the project settings were corrupted in some way.
    So what they suggested (so simple I could kick myself) was to select all the media files by 'CMD + A' then copy them 'CMD + C' then create and open a new project timeline, and then paste in 'CMD + V'.
    Then we tried export again this time to a master file with some settings detailed by Apple.
    The difference now was it got to 40% then failed but due to a different reason 'error -1 frame 10124 error'
    At last we get past the project issues and into the event media issues, it seems that when I loaded the compact flash last night, the iMac kept ejecting the reader so had to copy files over quickly and seems that some of the file clip I used although showed on the viewer, didn't seem to have loaded all the correct media, so selecting this clip frame 10124 on the viewer I found that it showed as red on the frame row which implied an issue. So I simply bladed it off and deleted it.
    Then I reran the export to Master file and it worked, though jumping from 40% to 100% complete was a shock to me!
    Now am trying the export to Vimeo - hope this helps some of you out there. Worst case pick up the phone to Apple and speak to the Final Cut Pro guys they can help.
    best wishes,
    Louis B

  • Problem with iChat changing my custom away message after 30 minutes

    Lately, I've been having a big problem with iChat changing any custom away message that I put up to "Away" after 30 minutes or so. Is there anything I can do to make it stop? Another issue I'm having is that sometimes when people on my buddy list change their away message, it doesn't show up on iChat unless I go offline and then sign back on. Any idea why it's doing that, and what I can do to get it to stop?
    Thanks.
    - Danielle
    G3 iMac   Mac OS X (10.3.9)  

    Hi ienjoyanime,
    Go to the General Section of iChat Preferences.
    Does it say you are set to Go to Away when you log off/QUit iChat ?
    is the computer going to Sleep at this point ?
    10:59 PM Saturday; April 1, 2006

  • I have been exporting lightroom webgaleries to my iweb site without any problem.  Suddenly I get the error message "finder can't complete the operation because some data can't be read or written" - error code -36 - thoughts?

    i have been exporting lightroom web galleries to my iweb site without any problem.  Suddenly I get the error message "finder can't complete the operation because some data can't be read or written" - error code -36 - and the move to the sites folder on my idisk fails..... thoughts?

    Try this community: MobileMe on my Mac: MobileMe: Apple Support Communities.
    And you can continue to use iWeb for some time to come. The following will explain:
    It's now confirmed that iWeb and iDVD have been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. HOWEVER, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    I found that if I published my site to a folder on my hard drive and then uploaded with a 3rd party FTP client subscriptions to slideshows and the RSS feed were broken.  If I published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    In addition the iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on.
    HOWEVER, the iLife 11 boxed version that is still currently available at the online Apple Store (Store button at the top of the page) and those copies still on the shelves of retailers will include iWeb and iDVD.

  • Problem on copy with hp printer m127

    hi
    sorry! my english is not good
    i have a printer hp m127 and i have problem on copy with this printer
    when i copy a A4 paper from feeder or glass don't print about 1 inch of botton of page but when i scan this page, it's correct and when i print scaned document, it's correct too
    I do'nt know why this problem exists
    thanks alot
    This question was solved.
    View Solution.

    Hi @hamidjoon , and welcome to the HP Forums!
    I see you are having copy issues.  I'd like to help!
    Before we get started, I need a little info:
     I am linking a few HP Support documents below that will show you how to find which operating system you are using. Also, if you're using Windows, please include whether your operating system is 32-bit or 64-bit.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please let me know what you find.  Thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Problem with conversion of strings like THISStr - this_str capitalization

    Problem with conversion of strings like. THISStr -> this_str
    Can anybody pass on the reverse code. I have one, but its faulty.
    public static String convertFromPolycaps(String str) {
              Pattern pattern = Pattern.compile("\\p{Upper}+");
              Matcher matcher = pattern.matcher(str);
              StringBuffer result = new StringBuffer();
              // We do manual replacement so we can change case
              boolean notFirst = false;
              int grpP = 0, grpA = 0;
              String last = "";
              String now = "";
              while (matcher.find()) {
                   grpA = matcher.end();
                   if (notFirst) {
                        now = matcher.group().substring(0).toLowerCase();
                        if (grpA - grpP > 1) {
                             matcher.appendReplacement(result, now);
                             result =
                                  new StringBuffer(
                                       result.substring(0, (result.length() - 1))
                                            + "_"
                                            + result.substring(result.length() - 1));
                        } else {
                             matcher.appendReplacement(result, "_" + now);
                   } else {
                        matcher.appendReplacement(result, matcher.group().substring(0).toLowerCase());
                        notFirst = true;
                   grpP = matcher.end();
                   ////index++;
                   last = now;
              matcher.appendTail(result);
              System.err.println(str + " : " + result.toString());
              return result.toString();
         }succesfully converts :
    AccountNmnc : account_nmnc
    CustNameJ : cust_name_j
    Resume : resume
    BeneBrCode : bene_br_code
    ApprovedPerson : approved_person
    but fails for:
    GLCode : glcode
    VISHALErrCode : vishalerr_code
    GHASUNNAcNo : ghasunnac_no

    Can anybody pass on the reverse code. I have one, but
    its faulty.Post it, I'm sure we can fix it...

  • Hi, I have a problem that I receive lots of Spam messages from my office, which are of no use for me. I am not in a position to bar the message from the service provider due to official constrains. I want to know if I can bar the message on Iphone

    Hi, I have a problem that I receive lots of Spam messages from my office, I cannot bar the spam text from service provider due to official constrain.
    I just want to know if there is any mechanisme where i can bar the message from a specific sender. I know there are some apps like Iblacklist available but we do not find it in any Iphone which is not jailbreak. I was just thinking of developing some code for it.

    No. You can't. Filtering would have to be done at the server level.

Maybe you are looking for

  • Playlist as text

    Just wanted to double check:  (because I have trouble believing)     There is no way to display an Ipad playlist as text?

  • What cause searching network problem after updating iphone 6 from iOS 8.1.2 TO iOS 8.1.3?

    what cause searching network problem after updating iphone 6 from iOS 8.1.2 TO iOS 8.1.3?

  • Problem about lightbox with tooltips

    I create a slideshow. There is lightbox on a slideshow. I want to create 6 tooltips in the lightbox but other slideshow will show tooltips after I drag tooltips on the lightbox. I want to show 6 tooltips which are only in one slideshow. How to do it?

  • Support for export keyword for templates in sunCC ?

    Hello Currently sunCC says "OutputTemplate.hh", line 16: Warning: Export ignored -- not yet implemented.if I try to use export to export my templates. Is sunCC going to support export keyword, like Comeau and Intel compilers ? When will export be imp

  • Solaris 10 shutdown

    Hello. I have Oracle installed on 2 Solaris 10 machines and when i shutdown the primary i want it to signal to the standby to perform a switchover. A switchover involves the standby and the now "shutting down" primary exchanging a token. So i edited