Test String Contents

This is probably simple...
How can you check a String to see if it contains anything beside digits 0-9?
Thanks.

Look at the String class API. See if there's something like a "matches" method, and come up with what you would need to pass to that method.
http://java.sun.com/j2se/1.4.2/docs/api/index.html

Similar Messages

  • Testing JMS content conversion

    Hi Experts,
    I have a scenario MQ-->PI--ECC.
    MQ sends a flat file and there is JMS content conversion used in sender JMS channel. On MQ side channels are not yet setup. Now I need to test if JMS content conversion is working properly. I cannot test by triggering flat file from RWB.
    Is there a way I can trigger a file from any third party tools and test the content conversion. Do you have any suggestions to make this test possible.
    Thanks,
    Avinash.

    Hi Avinash
    One option is to create a temporary File/FTP sender channel and use it in the sender agreement replacing the JSM channel. In the File/FTP channel, use the MessageTransformBean to achieve content conversion. This way, you can test out the content conversion parameters, and once the JMS server is ready, you can just swap it.
    Rgds
    Eng Swee

  • Error during connection test for Content Producers in FPN

    Hi,
    I have a question regarding connection test for content producers in FPN. Please let me explain the scenario,
    The portal server (PS1) is in the network domain say "XYZ.com" and we are accessing the portal from different domain say "ABC.com" via browser. We need to configure another portal (PS2) which is in the network domain say "mno.XYZ.com" with PS1 using FPN. We have imported the certificates of portal PS1 (consumer) in PS2 (producer) portal server and done the required trust configurations using VA in PS2 portal server.
    Then we created a new content producer object for the PS2 portal (producer) in PS1 portal. But when we did the "Connection Tests" it gets failed with the following error message,
    "Could not retrieve the WSDL file; the handshake URL may not exist or may be invalid".
    Can any one please tell me why this error message is coming. Is it due to any network connection issue?
    Thanks,
    Gokul.

    Hi Ginger,
    somehow, yes :-) I deployed the iFlow for customer master replication. After creating a customer the trace looked different and terminated at the reverse proxy. So the simple connect somehow is not able to do the same...
    Cheers
    Florian

  • How to use ora:parseEscapedXML() Function with String Content

    Hello,
    I am receiving a ResponseMessage that returns a string, but the content of the string is actually XML. I have tried to use the ora:parseEscapedXML() function to parses the string (see XML Fragment below) to return structured XML data that can be assigned to typed BPEL variables. The documentation is very limited for this (I've looked in the Developer Guide draft that is available at the OraBPEL site).
    2 customer records from XML literal fragment copied from string result:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <recordset>
    <customer>
    <CustNum>AROUT</CustNum>
    <CustLName>Hardy</CustLName>
    <CustFname>Thomas</CustFname>
    <CustEmail>[email protected]</CustEmail>
    <CustAddress>120 Hanover Sq.</CustAddress>
    <CustCity>London</CustCity>
    <CustRegion></CustRegion>
    <CustPostalCode>WA1 1DP</CustPostalCode>
    <CustCountry>UK</CustCountry>
    </customer>
    <customer>
    <CustNum>BSBEV</CustNum>
    <CustLName>Ashworth</CustLName>
    <CustFname>Victoria</CustFname>
    <CustEmail>Victoria.Ashworth@B&apos;s.com</CustEmail>
    <CustAddress>Fauntleroy Circus</CustAddress>
    <CustCity>London</CustCity>
    <CustRegion></CustRegion>
    <CustPostalCode>EC2 5NT</CustPostalCode>
    <CustCountry>UK</CustCountry>
    </customer>
    The copy rule for assigning CustNum to accountnumber that fails:
    <copy>
    <from expression="ora:parseEscapedXML(bpws:getVariableData('DataService_OutputVariable','invokeSpecMsgReturn','/recordset/customer/CustNum'))"/>
    <to variable="outputVariable" part="payload" query="/client:QueryResult/client:customer/client:accountNumber"/>
    </copy>
    Any help would be greatly appreciated.
    Thanks,
    Sean

    Hello,
    I am attempting to provide more information in order to hopefully get some better guidance here.
    1) The BPEL process I built receives input from a client that is one of city name or region name or postal code or country name and returns a list of customer records with their AccountNumber, LastName, FirstName, Email, Address, City, Region, PostalCode and Country. The BPEL flow invokes a packaged integration Web Service that retuns the records in a string whose content is XML (see XML fragment below).
    2) The string content returned is vaiable based on the input (i.e. city name="London")
    Two customer records from XML literal fragment copied from string result:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <recordset>
    <customer>
    <CustNum>AROUT</CustNum>
    <CustLName>Hardy</CustLName>
    <CustFname>Thomas</CustFname>
    <CustEmail>[email protected]</CustEmail>
    <CustAddress>120 Hanover Sq.</CustAddress>
    <CustCity>London</CustCity>
    <CustRegion></CustRegion>
    <CustPostalCode>WA1 1DP</CustPostalCode>
    <CustCountry>UK</CustCountry>
    </customer>
    <customer>
    <CustNum>BSBEV</CustNum>
    <CustLName>Ashworth</CustLName>
    <CustFname>Victoria</CustFname>
    <CustEmail>Victoria.Ashworth@B&apos;s.com</CustEmail>
    <CustAddress>Fauntleroy Circus</CustAddress>
    <CustCity>London</CustCity>
    <CustRegion></CustRegion>
    <CustPostalCode>EC2 5NT</CustPostalCode>
    <CustCountry>UK</CustCountry>
    </customer>
    I want to <assign> each record from the packaged integration service result (the string whose content is XML) to a complexType variable defined within the BPEL Process WSDL (see example below).
    XML fragment from BPEL WSDL:
    <element name="QueryResult" type="client:recordType"/>>
    <complexType name="recordType">
    <sequence>
    <element name="customer" type="client:customerType" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="customerType">
    <sequence>
    <element name="accountNumber" type="string"/>
    <element name="lastName" type="string"/>      
    <element name="firstName" type="string"/>
    <element name="email" type="string"/>
    <element name="address" type="string"/>
    <element name="city" type="string"/>
    <element name="region" type="string"/>
    <element name="postalcode" type="string"/>
    <element name="country" type="string"/>
    </sequence>                         
    </complexType>
    I have read through the tutorial and reviwed the XPath Funtion example in the reference (C:\OraBPELPM_1\integration\bpelpm\orabpel\samples\references\XPathFunction), but I am stsill very unclear as to how to handle this. I would appreciate any and all help.
    Thanks,
    Sean

  • Error when I run report RSCMST to test the content server.

    when I run report "RSCMST" to test the my content server.    I get the error:
    header        HTTP/1.1 401 Authorization Required
                  date: Fri, 05 Dec 2008 20:20:45 GMT
                  server: Apache/1.3.41 (Unix) SAPCS/640
                  x-servertime: 20:20:45
                  x-query: create&pVersion=0046&contRep=ZTEST001&docId=020D3949CA03445AE10000000A14022B&compId=data&docPro ..
                  t=rud&accessMode=c&authId=CN%3DCPJ&expiration=20081205142027&secKey=MIH3BgkqhkiG9w0BBwKggekwgeYC
                  x-serverdate: 2008-12-05
                  x-pversion: 0046
                  x-errordescription: URI signature has expired
                  x-serverid: server="content01.ivo.com.cn";serverPort="1090"
                  x-servertype: SAP HTTP Content Server
                  content-length: 752
                  connection: close
                  content-type: text/plain
                  ~remote_addr:
                  ~uri_scheme_expanded: NONE
    want                 201
    bad           401
    time              17.974
    It seems that the "bad 401" means a http error.    I do not know how to configure it ?
    my content server uses the maxdb,  and http is apache, they are all running on redhat linux ese 5
    who can give me some advices?  thanks

    Victor,
            Looks like a web server authentication issue. I suggest you raise this issue in a basis/ web application server forum,
    Sojan

  • Error in Test Connection - Content Repository does not exist

    Hi, I have created a content repository which points to our own external HTTP content server which is a DMS through transaction OAC0.
    In transaction CSADMIN I can see our server's status as running, still it shows yellow icon "customizing missing" in CSADMIN and in transaction OAC0 whenver I click "Test Connection" it gives the message" Content Repository does not exist". CMS 106.
    Kindly help.
    Regards
    Neha

    Hi,
    We are using OACO as follows:
    Choose Tools ® Business documents, Environment ® Knowledge Provider® KPro® Content Repositories
    Enter the following fields in the u201CChange Content Repositories : Detailu201D :-
    1) Content Rep. :- ZO (Content Repository Name)
    2) Description :- Content Repository
    3) Storage type :- HTTP content server.
    4) Version no :- 0045
    5) HTTP svr:p :- IP or machine name of application server on which DMS has been deployed : Web port of the application server on which DMS has been deployed.
    1) Program :- sap/sapDocView.jsp
    Save the created Content Repository by clicking on u201CSaveu201D. We are working on SAP 4.7 versionon a SAP development server and the content repository has not been transported after creation. Will not transporting be causing this error ?
    Please reward points
    Thanks
    Vikranth

  • Error 401 when run report "RSCMST" to test my content server

    when I run report "RSCMST" to test the my content server. I get the error:
    header HTTP/1.1 401 Authorization Required
    date: Fri, 05 Dec 2008 20:20:45 GMT
    server: Apache/1.3.41 (Unix) SAPCS/640
    x-servertime: 20:20:45
    x-query: create&pVersion=0046&contRep=ZTEST001&docId=020D3949CA03445AE10000000A14022B&compId=data&docPro ..
    t=rud&accessMode=c&authId=CN%3DCPJ&expiration=20081205142027&secKey=MIH3BgkqhkiG9w0BBwKggekwgeYC
    x-serverdate: 2008-12-05
    x-pversion: 0046
    x-errordescription: URI signature has expired
    x-serverid: server="content01.ivo.com.cn";serverPort="1090"
    x-servertype: SAP HTTP Content Server
    content-length: 752
    connection: close
    content-type: text/plain
    ~remote_addr:
    ~uri_scheme_expanded: NONE
    want 201
    bad 401
    time 17.974
    It seems that the "bad 401" means a http error. I do not know how to configure it ?
    my content server uses the maxdb, and http is apache, they are all running on redhat linux ese 5
    who can give me some advices? thanks

    hello,
    I am also getting same problem with newly installed content server.
    I have defined connectivity through CSADMIN. but when I 'm running this report I 'm getting same
    time (-93) problem.
    Could you please tell me how you rectified time zone setting problem..
    would be great help..
    Regards
    Anju

  • Test string equals syntax in configure.ac

    Hi all, I recently started a project that uses autoconf, and many examples around the place use the following syntax for string equality tests:
    if test "x$str" = "xyes"; then ...
    I was wondering why this is used as opposed to
    if test "$str" = "yes"; then ...
    which seems a bit more elegant and in plain bash seems to work fine (even with empty strings etc). Anyone know the reason why it is usually done the first way and not the second?

    but autoconf was made for POSIX sh (not sure what that supports exactly), and so many developers try to be overly cautious. I know we are not with the linux-only product.s.
    it might also be a holdover from people writing tests without the quotes, like  if x$var = xyes; then ...
    if you write without the x and $var is an empty string, you'll get a syntax error

  • Unable to create a test  via Content Management via Content Administration

    I am unable to create a test or survey via Content Management via Content Administration because insufficient privileges message. I create the folder and enter the test information for creating a test and then I after I click apply. I get message “You have insufficient privileges for the current operation. Please contact your System Administrator”.
    The System Administrator viewed the profile being tied to the responsibility and thinks there is no problem. Somebody please!!!!!!!!!!!!!!
    Help……

    Hi, James.
    If you add the main "Learning Administrator" role (UMX|OTA_LRNG_ADMIN), it will include all child roles for the Administrator, including the Learning Content Administrator, Learning Catalog Administrator, Learning Enrollment Administrator, Learning Finance Administrator, Learning Resource Administrator, and Learning Setup Administrator. If you don't have all of these roles, there are functions you will not have access to under the Learning Administrator responsibilities.
    The "Learning Instructor - Update" role only allows users that have the Learning Instructor Self-Service responsibility to update enrollment statuses for Learners that have attended classes that they are set as a resource for and won't impact the Administrator functionality.
    Anne
    Edited by: anne2 on Jun 5, 2013 2:09 AM (Fixed code for Learning Administrator role - Just noticed it was listed as the Enrollment Administrator role instead of the main Learning Administrator role)

  • Test Connection - Content Repository does not exist

    Hi,
    I have created a content repository which points to our own external HTTP content server which is a DMS through transaction OAC0.
    In transaction CSADMIN I can see our server's status as running, still it shows yellow icon "customizing missing" in CSADMIN and in transaction OAC0 whenever I click "Test Connection" it gives the message" Content Repository does not exist". CMS 106.
    Kindly help.
    Regards
    Neha

    Hi,
    We are using OACO as follows:
    Choose Tools ® Business documents, Environment ® Knowledge Provider® KPro® Content Repositories
    Enter the following fields in the u201CChange Content Repositories : Detailu201D :-
    1) Content Rep. :- ZO (Content Repository Name)
    2) Description :- Content Repository
    3) Storage type :- HTTP content server.
    4) Version no :- 0045
    5) HTTP svr:p :- IP or machine name of application server on which DMS has been deployed : Web port of the application server on which DMS has been deployed.
    1) Program :- sap/sapDocView.jsp
    Save the created Content Repository by clicking on u201CSaveu201D. We are working on SAP 4.7 versionon a SAP development server and the content repository has not been transported after creation. Will not transporting be causing this error ?
    Please reward points
    Thanks
    Vikranth

  • How to reset SLDDSUSER's password to allow SLD Test from Content Admin.

    Hi SDN,
    I'm new to the Java side of SAP and I'm trying to set up a BI Java connection to a SAP Portal and I'm receiving error "Failed to delete JCO client connection 'BI_METADATA' on 'BIQ.SystemHome.lvrplsapbiq'"
    To troubleshoot this, I followed note 983156, which states:
    TEST WD JCo DESTINATIONS: If you want to check the WD JCo Destinations (http://<host>:<port>/index.html -> Web Dynpro -> Content Administrator -> Maintain Jco Destinations -> In the detailed navigation: System defined Content: BI_METADATA / BI_MODELDATA / WD_ALV_METADATA_DEST /WD_ALV_MODELDATA_DEST) with the "Test" button, make sure that the user with which you login to the Content Administrator page(e.g. j2ee_admin), has the RFC authorization on ABAP side (Role: SAP_BC_JSF_COMMUNICATION, Profile: S_BW_RFC and S_BI-WX_RFCA). Otherwise the test will fail, because SSO is used.
    However, when I enter the Content Administrator to try to test the above, the "Maintain JCo Destinations" button is greyed out and all I can do is "Check SLD connection", which fails because it uses the wrong password for user SLDDSUSER.
    Please tell me how to change the password the the above check uses so that I can re-run the check with the correct password.
    Any ideas?
    Many thanks,
    Arwel.

    Hi Kalyan and Balaji,
    Our SLD sits on the BI Development (BID) system and the problem we're having occurs when we try to install BI Java on the BI Test (BIQ) system. BI Java works fine on BID, but the installation is failinbg on BIQ with error "Failed to delete JCO client connection 'BI_METADATA' on 'BIQ.SystemHome.lvrplsapbiq'". I think the problem is down to BIQ not being able to connect to the SLD on BID, that's what note 983156 suggests.
    As per your advice, I have reset user SLDDSUSER's password in SU01 (ABAP) and also in the SLD Data Supplier and CTC areas of Visual Administrator (VA) on the BI Development box. I've alsoe reset the user's password in the CTC area of VA on the BI Test system.
    Unfortunately, the connection test to the SLD (on BID) from BIQ's Content Administrator still fails and user SLDDSUSER still locks out after three failed connection tests. this confirms that BIQ is trying to connect to the right SLD, but I do not know where else it can get its SLDDSUSER password from. I have reset it everywhere that I know it can be reset.
    Do you know of anywhere else that the Content Administrator may be getting a password for SLDDSUSER? I have tried to reset the password in <host>:<port>/useradmin, but my own account only has read-only access to that. Also, how do I tell whether UME is ABAP or Java?
    Thanks,
    Arwel.

  • [e-Tester]: Adding Content to Authentic Plugin ActiveX

    Hi everyone,
    Altova XMLSpry provides a free ActiveX plugin, which I am using in my webapplication (written using JSPs) to edit XML content.
    Has anyone tried e-Tester to enter content in this special ActiveX plugin? I can't seem to enter any text data (or sometimes, it appears in the wrong places, when I am playing it back)..
    Many thanks,
    Nuno Viana ([email protected])

    Hi,
    thanks for your reply!
    Basically, the Authentic Plugin is an ActiveX object, which is scrollable and contains a form with input-text fields, pull-down menus and clickable links which make the form itself to change length (adding or removing of new input fields dynamically).
    Well...I tried to record the writing of text in a couple of the input-text fields, as well as selecting appropriate options from the pull-down menus. I had to scroll-down the object itself since the embedded form inside the ActiveX control is larger than the MS IE windows's height.
    Anyway, I have used the "Windows Event Record" (as suggested by the manual) when clickin/entering text/choosing options...but when playing it back, I saw a couple of characters appearing in different input-fields, as if the (x,y) coordinates previously recorded were somehow wrong...and the characters were being actually entered in different places in the form instead of being added to the correct input text field...
    Thanks for any help.
    Nuno

  • [JS] [CS3] Test String

    translated with google.
    Hello,
    Is it possible to test whether the chaine01 is contained in the chaine02?
    Example:
    var chaine01 = 'ance';
    var chaine02 = 'Philou chant et dance sure de la musicque';
    is there a function or a command?
    Bonjour,
    Est-il possible de tester si la  chaine01 est contenu dans la chaine02?
    Exemple :
    var chaine01 = 'ance';
    var chaine02 = 'Philou chant et dance sure de la musicque';
    exist-il un fonction ou une commande?

    Great! Thank you very much!

  • Test String for date format

    Is there a function that reads a string and can return yes/no if the string matches a specified date format (example: mm/dd/yy)? I wish to avoid parsing the string character by character.
    Thanks,
    George

    BTW,
    I used the following example code available from this site. I was able to easily modify it to sovle my problem.
    try {
    SimpleDateFormat formatter =
    new SimpleDateFormat("EEEE, MMMM dd, yyyy");
    Date d = formatter.parse(
    "Tuesday, January 03, 1956");
    formatter = new SimpleDateFormat(
    "EE, MMM d, yy");
    d = formatter.parse("Tue, Jan 3, 56");
    formatter = new SimpleDateFormat(
    "EE, MM d, yy");
    d = formatter.parse("Tue, 01 3, 56");
    process(d);
    } catch (ParseException e) {
    On to the next challenge...
    George

  • Oopppss!!!! Deleted SMS test string andwant it back. No recent backup - Help!!

    I recently deleted an SMS message string and would like to get it back.  Not backed up.  Does the delete physically removed it from memory or does it simply remove the database pointers to it.  Any utilities that could be used?
    Post relates to: Treo 700p (Sprint)

    Hi..  Welcome to the Palm forums.  If you deleted a text msg string then it's like any computer data that is deleted. The pointers are deleted and it can no longer be seen. I would think that it can be recovered if you have the right utility to recover data and/or know how to do that.  FileZ is a good utility for palm os however I do not believe it will find files that have been deleted.  You would probably need to take the device to a data recovery specialist which would be rather expensive. 

Maybe you are looking for

  • Tables req to get date wise stock report

    Hi Pls advise, what are the tables req to get date wise stock report??? i don't want any t codes... i have to do with age analysis ,?? Anyone has answer? pls provide it. Edited by: UJ on Mar 3, 2010 8:54 AM

  • CKF in bps_wb (Web Interface)

    Hey All- I know with Enhanced layouts you can create calculated key figures based off of exsisting measures that you have in your planning area.  I'm using Web Interface (bps_wb) and I don't see where I can create CKF.  Is this even possible with Web

  • Deleting Duplicate Photos in LR5

    How do I delete duplicate photos?  I have hundreds of duplicates in the catelog, folders and collections.  I must have imported them without checking "Do not import suspected duplicates".  Now what?  Thanks.

  • HT2305 Can I use Apple Contacts on a PC?

    My friend has a PC and bought a iPod touch. I want him to be able to use Apple Contacts both on the Touch and the PC.Is this possible??

  • Report a user!!

    I want to report a user, one more time then just blocking, because skype have to erase that account! She is a he and blackmail people!! Soo what to do?? Please help!! Solved! Go to Solution.