Its urgent...How to implement functions in http request handler ?

Hello experts,
I have created http request handler class and  also created service in SICF.
service and handler class are connected. please guide me how to implement “info”, “get”, “create”, “delete” functions in request handler.

Hi,
It seems you go on your way of http basic programming where you need handle the request of info, get, etc. But here you have WDA framework, so you don't need do as the basic ways of http programming. SICF can handle the activated WDA applications, maybe you can call them SERVICES.
I suggest you go through WDA architecture, tutorials, ... and at last you can find a full demo 'LORD_MAINTAIN_COMP' by SE80.

Similar Messages

  • How to implement a persistent HTTP connection on client side...

    Sorry for the inconvenience everyone, but I could really use some help here since I am a total newbie to Java programming
    I am trying to implement a persistent HTTP connection on the client side with request pipelining. The way I understand it is that client requests will be sent to the server, which will reply to them back to back, and then the client will read them accordingly. But when I read the server responses, I get only the reply for the first request, and nothing further, when I actually expect it to give me as many responses as the number of requests I ussued. Here is a sample code illustrating what I am trying to do.
    ====================
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class HttpClient {
    public static String host = "www.somehost.com";
    public static int port = 80;
    public static String pathname = "/download.asp";
    public static String protocol = "http";
    public static ArrayList list;
    public static void main(String[] args) {
    Parser parser = new Parser();
    list = parser.getIDs();
    try {
    Socket socket = new Socket(host, port);
    InputStream from_server = socket.getInputStream();
    PrintWriter to_server = new PrintWriter(socket.getOutputStream());
    OutputStream to_file;
    to_file = new FileOutputStream("HTTP_response.txt", true);
    for(int i = 0; i < 3; i++)
    String s = (String)parser.getIDs().get(i);
    String filename = "/download.asp?id=" + s;
    to_server.print("GET " + filename + "\n\n");
    to_server.flush(); // Send it right now!
    //This response gives only  only the response to the first
    //request,....
    byte[] buffer = new byte[4096];
    int bytes_read;
    while((bytes_read = from_server.read(buffer)) != -1)
    to_file.write(buffer, 0, bytes_read);
    to_file.close();
    socket.close();
    catch (Exception e) {
    System.err.println(e);
    System.err.println("Usage: java HttpClient <URL> [<filename>]");
    }

    There are many things wrong with your code. Learn the HTTP protocol and you'll know what I mean.
    Here's a hint - you'r missing headers in your code.
    Some servers do not support keep-alive connections, nor do you request a keep-alive connection.
    Connection: keep-alive
    Use that header field and see what happends. Also, in your while-loop, you actually close the output file and the socket. Don't you think it may be hard for the server to respond to a client that closed the connection on it?
    1. You don't know HTTP
    2. You don't seem to know Java
    3. You don't seem to understand basic programming logic

  • How does Flash send outgoing HTTP request to server?

    Hello everyone,
    I would like to know how Flash sends outgoing HTTP requests.
    I would like to know when from the inside of a Flash SWF file
    request for another SWF or FLV file is made; how the Flash sends
    this request to server.
    Thank you very much and have a great day,
    Khoramdin

    Hello everyone,
    I would like to know how Flash sends outgoing HTTP requests.
    I would like to know when from the inside of a Flash SWF file
    request for another SWF or FLV file is made; how the Flash sends
    this request to server.
    Thank you very much and have a great day,
    Khoramdin

  • HTTP request handling at server

    I am in the process of developing a backend component that analyses the http requests. I have a few doubts:
    - If http POST method can have multiple entity-bodies, what is the value of top level Content-Length header ?
    - Is Content-Length header allowed with GET request ?

    These questions are not really in the scope of this forum. This isn't a "how does HTTP work" forum.
    That being said [_here's the spec,_|ftp://ftp.isi.edu/in-notes/rfc2616.txt] enjoy.

  • Its Urgent   How 2  Customized the Layout set LE_SHP_DELNOTE

    Hello Experts,
    as 'm new for smartform development will anyone  suggest me how  to customize smartform such as SAP defined form LE_SHP_DELNOTE in Delivery note. as it's SAP defined form so how can one customize it ..
    plz Help me its too urgent for me to have solution on it.
    Kind Regards..
    A v i

    Hi Avi,,,
    1)    Go to transaction Smartforms
    2)    Put the form name LE_SHP_DELNOTE
    3)    Copy the FORM , give ZLE_SHP_DELNOTE
           Then make the changes as Required.
    Regards
    Avi...

  • Its urgent  how to use calss file of jar located in lib folder

    how to use calss file of jar located in lib folder.
    i want to use RowSetDynaClass class which is in beanutil jar file which is in my lib folder .if i use that class in my jsp following error is coming.
    Class RowSetDynaClass not found.
    RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
    how to access class in jar file.
    please help

    You have to either refer to the class in its fully quallified name, or import it into the JSP:
    <%
      some.full.packagename.RowSetDynaClass resultSet = new some.full.packagename.RowSetDynaClass(rs,false);
      ...-or-
    <%@ page import="some.full.packagename.RowSetDynaClass" %>
    <%
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      ...As long as the class has public visibility and you have re-started the server/servlet context since you added the JAR.

  • PLz Help me its urgent, how to add new field in mm01 basic data screen

    Hi everyone,
         plz tell me how to add new field in mm01 basic data screen,i added that field in basic data screen but when i create a material the data for that field will not save in database table.
    Thanks,
    murali.

    Hi Murali,
    when created added a field on the screen by using user exit then after that you have add the field in main table where you will be getting these table in the userexit only, please make sure about this. And i am sure defenitly it will get updated in to the table.
    reward if useful.
    thanks
    abdulsamee.

  • Very urgent,  how to implement FTP in LAN

    Dear All,
    Im in developing a project for my college final year project submission im stuck up with , implementing FTP in LAN .
    Here what im doing is sending data thro FTP in LAN network . but i couldn do it .
    I need help from you to solve this query .
    Pls help me with method and ideas to finish it.

    Your post leaves much to our imagination.
    I assume you are looking to develop your own FTP service. I don't know if this should be peer-to-peer, or client-server. Do you need both components?
    Sun provides basic service classes in the sun.* package - though there is a warning not to use them, as they are not a supported component of Java - meaning the methods may change from update-to-update or the class may disappear.
    There are two types of FTP. Full-strength standard FTP and one based on UDP transport called TFTP.

  • HOW TO USE FUNCTION Deletion of Requests from the Change Log IN PRCSES CHAN

    Respected all
    i used Deletion of Requests from PSA from the prcess chain and found good results, now i have only one request at the psa and thus i am doing good space utililisation. but when i am using Deletion of Requests from the Change Log i am not getting any changes in the request of dso. kindly let me know how to use this 2nd function.
    thanks
    abhay

    Hi Mahodaya,
    As per SAp standards its good to delete the requestes that are no longer needed for the delta update and no longer used ffor inti from the change log table and the data is loaded already in to DSO.
    Goto RSPC
    Click on create New PC -> enter the PC name n long descp
    Next we need to define the start process for the PC.Maintain the start variant process.save n come back.
    for deletion of change log we have option in the Other BW Processes -> deletion of requestes from change log
    Once u select the option we get a dialoge box here we need to create the variant for the process enter the process variant n long descp. cick ok.
    Next in the maintenance screen for the deleting the request from change log table will appear.
    Enter the selection patterns to which the requestes should be deleted from the change log.
    In the maintenance screen, select one or more Data Store objects for which requests are to be deleted from the relevant change log tables under Data Store Object column and select theInfo Area of the corresponding Data Store Objects under Info Area
    If you select the first check box exclude selction pattern, this means that del of requests from change log table will be ignored.
    or
    We can delete the requests which are Older than N-number of days (or) date in the above screen. For this one, enter the number of days (or) date in the filed Older than .
    OR
    If we want to select the requests with a certain status then we can also do in the above screen. We can select the following status indicators from the above screen.
    Delete Successfully Updated Requests Only -This status will delete only requests which
    are successfully updated into corresponding Data Store objects.
    Delete Incorrect Requests that were not Updated - This status will delete only incorrect requests which are not successfully updated into the corresponding Data Store Objects.
    Delete Activation Requests only, No Load requests- This status will delete only the activation requests (requests that begin with ODSR_... ). No load requests are deleted.

  • How to send PUT, DELETE HTTP request in HttpURLConnection ?

    Hi all.
    I want to know that is it possible to send PUT, DELETE request (practically) through java.net.httpURLConnection to http based URL. I have read so many articles describing that how to send GET, POST, TRACE, OPTIONS request but still not finding any sample code which successfully perform PUT and DELETE request. Can any one give idea regarding that?
    Thanks

    Help_Me_Solve wrote:
    Hi all.
    I want to know that is it possible to send PUT, DELETE request (practically) through java.net.httpURLConnection to http based URL. I have read so many articles describing that how to send GET, POST, TRACE, OPTIONS request but still not finding any sample code which successfully perform PUT and DELETE request. Can any one give idea regarding that?
    ThanksIt's technically possible I am sure but 100% impractical because almost nobody uses an HTTP server for that purpose. I don't know what HTTP servers actually implement PUT and DELETE but you can be sure even in those that do the behaviour is off by default.
    If you need to do PUT/DELETE sort of operations you should be using FTP.

  • How to implement "Please wait your request is being processed" window ?

    Hi all,
    We are integrating BSP iviews in our portal. When the BSP applicaiton is being processed(eg. a form is submitted"), is it possible to show a small window like "Please wait your request is being processed" ? .
    Such a window appears when any operation is performed in the KM content.
    How to achieve such a functionality with the integrated BSP applications. How do I implement this functionality? What are the API's? Any sample code is available?
    Thanks and Regards,
    Gauri Gosavi.

    Hi,
    in KM iview there is a hidden DIV with this:
    <div id="htmlb_wait" style="z-index:99; display:none; visibility:hidden; left:0px; top:0px; width:0px; height:0px; position:absolute; overflow:hidden;">...</div>
    Now you can put it into your BSP page (as hidden). Now before every form submit (onClientClick for button, ...) just call a JS function, which will change the visibility of this div to visible. So the DIV appears and stays here until page refresh.
    Hope this helps a bit.
    Romano

  • How to display response of http request as a web page in ABAP?

    Hi all,
    In ABAP, we can use class <b>cl_http_client</b> to send a http requst and then got the response data as a XSTRING variable. Usually, the response data is the html source of a web page. How to display this web page within dynpro?
    I found we can use class <b>cl_gui_html_viewer</b> to display the web page of a URL or data in SAP web respository. Is there any way of using it to load response data in cl_http_client and display that web page?
    Thanks a lot.

    Welcome to SDN.
    1. use http_client->response->get_cdata( ).
    to get the response data in string format instead of xstring format.
    2. use FM CONVERT_STRING_TO_TABLE to covert the string to table of type W3HTML
    3. use method
    data: l_doc_url(255) type c.
          call method html_control->load_data
                      exporting
                         type         = 'text'
                         subtype      = 'html'
                      importing
                         assigned_url = l_doc_url
                      changing
                         data_table   = html_table.
    call method html_control->show_data
                      exporting
                         url       = l_doc_url.
    to load the html content and show it in cl_gui_html_viewer
    Regards
    Raja

  • How to encapsulate RMI in Http request ?

    Hello,
    I have an java applet that uses java RMI technology to communicate with the server. I would like to modify this architecture a little. Is it possible to wrappe RMI invocation in http web request. If yes how to do that ? Did you have samples of code ?
    Thanks a lot.

    RMI uses a specialised protocol which is more complex than it appears at first. It might be possible to perform RMI calls use a HTTP transport, but you would lose most of the value of using HTTP.
    There are libraries which allow you to turn method calls into HTTP Web Service request, like RMI does, but no RMI is used.

  • How to make a Plain HTTP-Request

    Hi folks,
    is it posible to post somthing like this with cl_http_client.
    POST /hapld/tos/kdwhapltos HTTP/1.1
    Host: www.pld-certify.ups.com
    Content-type: multipart/mixed; boundary=BOUNDARY
    Content-length: 1038
    --BOUNDARY
    Content-type: application/x-www-form-urlencoded
    Content-length: 140
    AppVersion=1.0&AcceptUPSLicenseAgreement=Yes&ResponseType=application/x-ups-pld&VersionNumber=V4R1&UserId=xxx&Password=xxx
    --BOUNDARY
    Content-type: application/x-ups-binary
    Content-length: 719
    020082 2.0 2002101700000000000010500 000000001*AA0A1754 US 1234567002000001*BA1z1234560100002352 00001+0000000000000010 +0000000000000000LBS01PRE10 …
    --BOUNDARY—
    Regards,
    Max

    Max,
    I'm under same situation creating the multipart/mixed post, how can be handled with ABAP?  I'm trying using mutipart() but I only get the message 'Internal Processing Error".  I'll appreciate any help.

  • ICF service with Multiple HTTP request handlers.

    Hi ,
    I have created a ICF service with "One HTTP request handler" using SICF transaction.
    it's working fine.
    After that  i have added anther "HTTP request handler".
    i have put  two External Break Points in two HTTP request handler classes.
    and i have debugged it.
    My problem is:
    The request is cached by first HTTP request handler.
    at the end it returns the response.
    it does not reached the second HTTP request handler.
    how can i forward my request to second HTTP request handler.
    please help me.
    lakshman

    Hi,
    Frankly I dont know too much on this topic but following links may help you:
    http://help.sap.com/saphelp_nw04/helpdata/en/25/dda73e5b7a424de10000000a114084/frameset.htm
    Troubleshooting ICF: http://help.sap.com/saphelp_nw04/helpdata/en/80/b2dd3a6dac703be10000000a11405a/content.htm
    Possibly experts in this forum will be able to help you:  Application Server->Internet Transaction Server (ITS)
    Regards,
    Gourav

Maybe you are looking for

  • E-mailing photos

    How do I e-mail an album of photos. I have AOL and Gmail, neither of which I can set as an e-mail preference (under iphoto>preferences>mail using). I know that I can e-mail an individual photo as an attachment on AOL or Gmail, but I want to send a co

  • HT4858 Why is the option of share via photo stream gone then?.

    On my iPad,150 photos selected. Less than the above limit. No video selected.

  • Photoshop / Indesign / Acrobat / - color match ?

    I'm printing a color chart using CS4, a Mac (10.5.7), and my inkjet (HP B8850) If Adobe and Apple made the color managment corectly, wich i assume they did, i should be able to print the same TIFF file correctly with the same colors in all the CS app

  • Printing problems help needed

    Hi, I got a photo printed at jessops today (because I do not have my own printer and am not familiar with professional printing labs), which turned out to be a complete disaster. The colours were too saturated and blotchy, the overall image was too b

  • While updating J1INBANK No records found.

    Dear All, We have made TDS remittance through J1INCHLN and while doing J1iNBANK no records found in table J_1IEWTCHLN for a particular company code. But the TDS Payment document is appearing in FB03. We are in ECC 6.0. If anybody knows please let me