Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: need help urgent

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default need help urgent

    HI
    i have no experience working backend side,but now my company asked me to work on backend
    so
    want to develope a proxy servlet which generates the response header and body in xml and implement
    an interface known as session lookup interface where it calls the proxyservlet on to url
    get a sessionid from url
    generate responses for sessioid in xml
    implement a sessionlookup interface which calls the servlet on same url where we got sessionid
    validation part is take care by rmi
    https://svc.abcdsef.com/auth/mproxy?sessionid=25536637
    get sessionid from this url and post back to same url with
    HTTP Method: GET

    Form/Query Parameters
    Name Data Type Req’d Length Description
    sessionid String Yes The user’s emeta session id

    Preconditions
    Type Name Description
    param Session-id-required The session id parameter is required.

    Responses
    Status: HTTP-200 (Okay)
    Reason: Success
    Response-Headers:
    Service-Ident: name-version
    Response Body:
    <?xml version="1.0" encoding="UTF-8"?>
    <credentials>
    <session-id>18132681</session-id>
    <roles>
    <role>SELECTDL</role>
    <role>SELECTRT</role>
    </roles>
    </credentials>

    Status: HTTP-412 (Precondition Failed)
    Reason: One or more preconditions failed.
    Response-Headers:
    Service-Ident: name-version
    Response Body: (see Common Status Response – type and name attributes given in Precondition section.)

    Status: HTTP-500 (Internal Server Error)
    Reason: An unexpected error occurred while processing the request
    Response-Headers:
    Content-Type: text/plain
    Service-Ident: name-version
    Response Body:
    [Error description]
    [Optional troubleshooting info]

    Note:


    Error Codes:

    Here are sample errors that should be returned by the service

    1. Session id Invalid

    <status type="param">
    <description>Precondition Failure</description>
    <map>
    <entry name=”invalid-session-id">
    <value>The session id parameter is invalid.</value>
    </entry>
    </map>
    </status>

    2. Session id Missing

    <status type="param">
    <description>Precondition Failure</description>
    <map>
    <entry name=”session-id-required">
    <value>The session id parameter is required.</value>
    </entry>
    </map>
    </status>

    3. Service Unavailable

    <status type="service">
    <description>Service Unavailable</description>
    <map>
    <entry name=”service-unavailable">
    <value>The back end eMeta services are unavailable.</value>
    </entry>
    </map>
    </status>

    Notes:


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,286
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default Re: need help urgent

    Honestly, what kind of responses are you expecting on getting to a post like this? You've violated just about every rule in the book, if there were a book on forum etiquette.

    See my signature on asking smart questions.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Help URGENT
    By javfifed in forum Java Theory & Questions
    Replies: 7
    Last Post: July 4th, 2010, 11:16 AM
  2. Urgent!!!!!!!!!!!!!!!!
    By dinesh03188 in forum JDBC & Databases
    Replies: 3
    Last Post: May 14th, 2010, 01:38 AM
  3. HELP URGENT!!
    By macx234 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 30th, 2010, 08:41 PM
  4. Need Urgent Help
    By sonai4u in forum Threads
    Replies: 2
    Last Post: February 13th, 2010, 07:24 PM
  5. Replies: 1
    Last Post: May 4th, 2009, 06:30 AM