How to make httpconnection and get the xml response using httpconnection in post method.

Hello

I am new to the blackberry web work,

I want to make httpconnection using the post method and also pass a parameter related to my url.

This function returns xml data.

How can I perform this task.

Please help me if anyone has a solution...

I have soved that problem myself.

Tags: BlackBerry Developers

Similar Questions

  • Download the file and get the XML response

    Hello
    When you download a file by using the method of the FileReference download, is there a way to retrieve information from the server other than the event "full." I need more information other than complete without HTTP error.

    For example, I download a zip file, do some processing on the zip file (check some information in the zip file), then I want to send some XML to the applicant actionscript... as Manager 'result' of HTTPService. Is this possible?

    : server script name:
    get Filedata (zip file) of the mission
    write Filedata to disk
    do things to zip the contents of the file
    spit XML (the XML would be consumed by actionscript)

    I was not able to find a way to do it using FileReference.

    Well, I'm a fool the answer was there in the docs...

    The FileReference object will be sending an uploadCompleteData event you can listen, and when it fires use the property data to extract the server response

    ...
    _fileRef.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA, onUploadCompleteData);

    var mUploadURLRequest:URLRequest = new URLRequest (_uploadURL);

    _fileRef.upload (mUploadURLRequest);

    private void onUploadCompleteData (e: DataEvent): void
    {
    var data: Object = e.data;
    trace (ObjectUtil.toString (data));
    }

  • How can I find and replace the xml tags?

    Hi, I am using xml in my workflow and want to be able to remove some tags if they contained particular text.

    Here is an example of the xml struct...

    < Entry >

    < name > DEFAULT < / name >

    < such > default < / such >

    DEFAULT < address > < / address >

    < / Entry >

    I use this initial structure to define paragraph styles to follow when you import the xml data.

    This leaves DEFAULT in place everywhere where an entry is not any content of this field.

    I want to be able to import my XML and then run a script that deletes tags that include by DEFAULT, - I need to the xml tag to remove not only the text, if I do a normal find and replace will remove only the text not the tags that is causing problems with style. I also want to remove the end of para/return (^ p) that I placed at the end of the line. So it would be the same opening editor mode and removing content, tags + hard back in there, but I want to automate the process...

    So I think that's what I'm looking for in each case

    "< name > DEFAULT < / name > ^ p.

    and I want to replace it with nothing.

    Is this possible in a script (ideally javascript)?

    I have a little knowledge of javascript, but don't know how to search for and target this kind of string in indesign...

    using indesign cs5

    Thank you very much

    Hello

    Script should do it in two steps:

    1 find all occurrences of that is ' > by DEFAULT.<>

    2 delete the whole paragraph which is a found_text container.

    For example, in this way - JS - (a textFrame filled your text must be selected):

    var mStory = app.selection[0].parentStory;
    app.findTextPreferences =  null;
    app.findTextPreferences.findWhat = ">DEFAULT<";
    var myF = mStory.findText();
    var count = myF.length;
    while (count--)
         myF[count].paragraphs[0].remove();
    

    Rgds

  • Watch the video on the Pearl Flip 8220 smart blackBerry phones, how to make horizontal and fill the entire screen?

    I have movies on my flip. When I look at a screen remains vertical and small. Is there a way to make the horizontal screen and use the full screen? Thank you.

    After some trial and error, I discovered, you must use the blackberry Media Manager to transfer your movies and when you move the film selected your file to your phone, you must select the option 'optimize '. When I did this it turned the film 1/4 turn so I could watch it on full screen. To make the small of DVD movies to the mpg4, I use a program called "convert M2 to Smartphone". It works well.

  • How to set up and test the Profibus network, using the number of piece OR interface master/slave 780161-01

    I bought this card of NEITHER. I've been in contact with Comsoft which apparently is the developer of this Council. I used the Configurator II to try to build the network. The GSD file for my slave is entered. I can also see the GSD file for the master. There seems to be no obvious way to test the bus of the configuration tool. I tried the Express VI provided by Comsoft. Nothing happens. I have a purchased with endings installed profibus cable. I know that the works of cable as a another division has an another Profibus master that works with this cable how to configure correctly for you? How to test?

    Thank you

    Rick

    The problem has been resolved. In the configuration tool, after the slave device is connected to the network, all of the attributes listed under it must also be dragged over and placed in the list that appears. Never seen this step in the documentation. Once this has been done the configuration tool could initialize and find the slave.

    Rick

  • How can I pause and resume the analog output using DAQmx?

    I use a DAQ hardware to produce an analog waveform.  I would like simply to break the output of the wave and then resume where it left off.  I use DAQmx and LabVIEW 2011.

    I've seen examples that use a digital or analog break trigger, but I would take a break in the software only.  How can I do this?

    -Joe

    Hi Joe!

    I spent some time thinking about it and I realized that you can technically use a fundamental mission of the analog output, as you previously wrote that runs continuously. However, the generated output samples are controlled by the sample clock pulses, and can be manipulated to fit our needs "suspension."

    To do this, we will need another counter task that generates a pulse train (see our examples of shipping under material input and output > DAQmx > generating digital pulses > generate dig Pulse Train - Continuous.vi) that stops and starts the user to choose. This can be in another quite VI or controlled by software. We will use this as the task of our output sample clock.

    Then, the task of the AO, wire a constant to the sample clock source and select ' DevX/CtrXInternalOutput"based on the counter that you specified in the task of counter. You will need to choose "I/o name of filtration" and check the box that says "include advanced terminals' and right-click of the constant. See picture attached as a reference. In this way, the task of the AO is constantly running, but it generates only actually all data when the meter running task.

    Let me know if you have any questions!

    Have a great day!

  • Analysis of query and get the list of used tables

    Hi all

    I need to parse the sql query (simple & complex as well) and for a list of the tables used in the query.

    And need to validate the fact that list the tables against a whitelist that is kept in the file.

    I tried to write my own parser, because there are many ways to write complex queries, I'm unable to cover all scenarios.

    I need help, is there other ways to get the list of tables used in a query?

    Thank you

    Manon...

    In general you would add a condition 1 = 2 just to restrict the display of the entire table. Then should not be causing any noticeable performance degradation. You can even use ROWNUM< 2.="" that="" will="" do="" a="" count="" stopkey.="" which="" could="" be="">

    SQL > select * from emp where rownum<>

    no selected line

    SQL > select * from table (dbms_xplan.display_cursor);

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    SQL_ID, 97f4bd002xfy0, number of children 0
    -------------------------------------
    Select * from emp where rownum<>

    Hash value of plan: 4269703525

    ---------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    ---------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |      |       |       |     2 (100) |          |
    |*  1 |  COUNT STOPKEY |      |       |       |            |          |
    |   2.   TABLE ACCESS FULL | EMP |     1.    38.     2 (0) | 00:00:01 |
    ---------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 Filter (ROWNUM<>

    19 selected lines.

    But its always good to bench mark it yourself.

  • Find ' [' and get the substring entered using regexp_substr()]

    Hello

    Select regexp_substr ("what a great day for (I YOU [ME] and HIM ',' [: ALNUM:] * [^ \ ()] *') double;")
    As a result:
    SQL > what a great day for

    [but why this model does not work for ']' when I replace ' ([' with ']'?)
    Select regexp_substr ("what a great day for (I YOU [ME] and HIM ',' [: ALNUM:] * [^ \]] *') double;")
    As a result:
    SQL > W

    ' {[I need to get a substring before or ' (',' [',' {', '}])', ']', or '}' in a string to give, this model works for '(',') ', ' {', '}' but not ' [' or ']'
    What should be the boss? If ' [: ALNUM:] * [^ \ ()] *' is not correct?

    Can anyone help?

    Thank you
    Fiona

    Hi, Fiona,

    Have you seen this part of my last post?

    Frank Kulash wrote:
    ... If you want to use a literal hook closing ('] ') then it must be the first thing in the list attached hook (not counting the ^, if you use it, you are)

    In a regular expression, if you want to say: "the set of all characters * except * ' {' and '}'", so it does not matter if you say

    [^{}]
    

    or

    [^}{]
    

    Most of the people (you and me included) seem to like the first better way, but the results are the same. It deosn to matter if the ' {' is listed before the '}', or if they are in reverse order. The Analyzer don't think you want to say something else anyway.

    However, the parser will treat this expression

    [^[]]
    

    different than

    [^][]
    

    The first:

    [^[]]
    

    is interpreted as

    '['          ||     -- Any character from this set:
       '^'          ||     --     all characters except
       '['          ||     --     left-bracket
    ']'          ||     -- (end of set description)
    ']'               -- followed immediately by a right-bracket
    

    You want to support the right to part of the whole. The only way that the parser will know that the right-braket marks not the end of the game is to put the right first overall support, in other words, it must be the first character inside the pair of brackets that delimited the game, immediately after the ' ^' character, like this:

    '['          ||     -- Any character from this set:
       '^'          ||     --     all characters except
       ']'          ||     --     right-bracket or
       '['          ||     --     left-bracket
    ']'               -- (end of set description)
    

    or, as you're more likely to write it:

    select      'What a good day for (YOU [ME] and {HIM}) and others'     AS orig_txt
    ,     REGEXP_REPLACE ( 'What a good day for (YOU [ME] and {HIM}) and others'
                     , '\[[^][]*\]'
                     )                         AS new_txt
    from      dual
    ;
    

    Output:

    ORIG_TXT
    ---------------------------------------------------
    NEW_TXT
    -----------------------------------------------
    What a good day for (YOU [ME] and {HIM}) and others
    What a good day for (YOU  and {HIM}) and others
    
  • How to back up and restore the unit VCO (Postgres)

    Hello

    Is there an official KB on how to back up and restore the VCO device using the Postgres?  How similar to save the VCSA (http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2034505)

    Thank you

    WARNING: what follows is not a KB official and is totally not supported! Use it at your own risk!

    Backing up/restoring the Postgres database in vCO device 5.1 is similar to the backup/restore of VCSA as described in the article above, with the following differences:

    • location of the database->/var/lib/pgsql/data
    • EMB_DB_INSTANCE,EMB_DB_USER, EMB_DB_PASSWORD-> take a look at the /opt/vmo/appliance/dbd/create_db.sql file

    Hope this helps,

    Ilian

  • How to get the XML from the Request of Java object before sending. SOAP Web services

    I'm building Java request to Online Web Services and we'll call it application A . I got the WSDL forms the second part of the file in order to communicate with their application and we'll call it application B .

    Of the WSDL file generate the Java required classes that are Requests and Responses . classes Application A will send some request object after setting the parameters required and with the exception of response object of application B .

    The connection is established and the two applications A and B communicate with each other.

    Question:

    Of application A How can I get the xml data (or text file) for the request object before sending it to application B ?

    As described the connection is passing Java object such as request and I know that in some point this request will be converted to xml file. How to get it?

    -EDIT-

    Missing important information which can be confusing.

    I'm generated the Java rating were generated using the Axis framework

    The problem is solved by, add the following statements in the bindingStub class that was automatically generated from the WSDL file to the web-services you are trying to access.

       String request = _call.getMessageContext().getRequestMessage().getSOAPPartAsString(); 
     String response = _call.getMessageContext().getResponseMessage().getSOAPPartAsString();
    

    These statements should be placed after the following method call _call.invoke otherwise you will get NullPointerException .

    _callis a variable of type org.apache.axis.client.Cal and it is automatically generated byAxis

  • seems that I bought the wrong size stock photo because it shows the low resolution 20 x 30... How can I return it and get the right kind of photo?

    How can I return it and get the right size stock photo that actually works to post 20 x 30

    Hi Debbie,.

    Once that the photos were allowed, they cannot be removed or not allowed.

    Thus, you must make sure that the image you need for your projects. You can also check the size of the images before their approval.

    Hope that answers your question.

    ~ David

  • ++ HOW TO GET THE XML FOR THE PRINTING OF QUOTATION?

    Summary: -.

    The customer must change a rtf in R12.
    To check this, they need generate the XML data file in order to pass through the RTF in order to generate the PDF file.

    In other modules (such as check printing), the client can get the XML data file through the output of the simultaneous query. However, quoting is not
    provided, they need to know how they can get the XML data file.

    I have already posted this in the forum citing and was asked to publish it with the XML editor team.


    Please notify.

    Best regards
    Saket

    Published by: sakesing on March 11, 2009 19:10

    Published by: sakesing on March 11, 2009 19:11

    Do the metalink Doc ID: 364547.1
    Title: Troubleshooting Oracle XML Publisher for Oracle Applications 11i

    Works the same way for R12.xx

    go to section 3.3

    HTH

    Shaun S.

  • How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    What do you exactly mean by "get the slide to set up go to the right and continue"? Can you give us a little more context and detail?

  • How do I trouble and get rid of the error Code: rundll32.exe on my MacBook Pro?

    How do I trouble and get rid of the error Code: rundll32.exe on my MacBook Pro?  The heading reads as follows: of "http://Mac support1. com ".  I can't remove it from Safari.  It is also IMMEDIATELY said 'call APPLE to 1-844-335-2242 '.  I asked that this number.  Any help would be greatly appreciated.

    Choose force quit from the Apple menu, close Safari and then run it with the SHIFT key is pressed. If the message reappears, disconnect the computer from the Internet and close the tab Popup came.

    (138334)

  • For the power level icon is missing from my taskbar. How do I find and get it again showing the taskbar?

    For the power level icon is missing from my taskbar.  How do I find and get it again showing the taskbar?  I've tried the suggestions help and read the FAQ, but in vain.

    Hi Dee Gilles,

    Welcome to the Microsoft community. According to the description, power icon is missing from the taskbar.

    ·         Did you do changes on the computer before the show?

    I'll help you with this problem. I suggest you follow these methods.

    Method 1: Follow the steps in the article.

    Icons of programs that are pinned in the taskbar may be missing or is not correctly displayed on Windows 7 computers

    Method 2: Scan the System File Checker (SFC) to repair corrupted files.

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

Maybe you are looking for

  • missing 'save the current image' by export

    How is that possible?  FCP: 10.2.3. After re-instal what OS on my iMac is suddenly missing export fincutpro the "Save current frame" in the menu: But the same FCC 10.2.3 on my MCB. does not have this option! I want it on my iMac again. What should do

  • How to install a start button on your new computer Windows 8.

    In the latest versions of Windows, we had a start button for quick reference on our computer programs. Windows 8, this feature has been removed and replaced with the splash screen. For those of us who are not ready for this jump, you can add similar

  • Microsoft SQL Server 2005 Express Service Pack 4 error code 2B2F

    I have a laptop with windows 7 and Office 2007. This download is still important for me to have?

  • 600EX-RT

    Can I set the flash to the subject on my RT 600EX distance to get f/stop?

  • stop the noninstalling endless updates coming

    Why these darned updates keep coming?  They do not install, but they want to say, I can't put my computer in mode 'sleep' while it tries to install and stop then every time.  How to stop the process?