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.

View Poll Results: can any one tell me about the java code web services, what says that code , i can't understand the j

Voters
1. You may not vote on this poll
  • java code webservices

    0 0%
  • understand me the java code web services

    1 100.00%
Results 1 to 6 of 6

Thread: can any one tell me about the java code web services, what says that code , i can't understand the java code

  1. #1
    Junior Member tom258's Avatar
    Join Date
    Nov 2012
    Location
    charlote, U.S
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs down can any one tell me about the java code web services, what says that code , i can't understand the java code

    please what says the java code web services , what is the output of this code, please any one can define me

    thanks

    here is code
    import java.io.FileOutputStream;
    import java.io.PrintWriter;
    import java.net.HttpURLConnection;
    import java.util.Enumeration;
    import java.util.Properties;
    import java.util.Vector;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.maaco.server.mServlet;
    public class ProcessTransferRequest extends mServlet {
     public void service(HttpServletRequest req, HttpServletResponse res)
       throws ServletException {
      try {
     
       Vector wlogMsg = new Vector();
       String wresponse = "OK";
       try {
        System.out.println("parser count "+XmlTransferParser.parserCount);
        XmlTransferParser wrequestProcessor = new XmlTransferParser( new Properties(), wlogMsg);
        wrequestProcessor.generateDecodedXmlPages(req.getReader());
         wresponse = wrequestProcessor.getZipedAndEncryptedResponse();
        else {
         res.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);
     
     
       } catch (Throwable ex) {
     
        ex.printStackTrace();
       }
       PrintWriter out = new PrintWriter(res.getOutputStream());
       out.println(wresponse);
       out.flush();
       out.close();
      } catch (Throwable e) {
       try {
        PrintWriter out = new PrintWriter(res.getOutputStream());
        e.printStackTrace(out);
        out.flush();
        out.close();
       } catch (Exception ex) {
       }
      }
      finally {
       XmlTransferParser.parserCount--;
      }
     }
    }
    }
    Last edited by helloworld922; November 14th, 2012 at 12:43 PM. Reason: please use [code] tags


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: can any one tell me about the java code web services, what says that code , i can't understand the java code

    What happened when you ran the code yourself?
    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!

  3. #3
    Junior Member tom258's Avatar
    Join Date
    Nov 2012
    Location
    charlote, U.S
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: can any one tell me about the java code web services, what says that code , i can't understand the java code

    actually i am Asp.net C# developer and i can't understand the java code, so u can explain me what says in the java code, i have no idea, i want to create C# web services for this java code web services

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: can any one tell me about the java code web services, what says that code , i can't understand the java code

    What happened when you ran the code yourself? What don't you understand about it?
    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!

  5. #5
    Junior Member tom258's Avatar
    Join Date
    Nov 2012
    Location
    charlote, U.S
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: can any one tell me about the java code web services, what says that code , i can't understand the java code

    tell me what says the java code, or what is the output of the java code web services

    thanks sir

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: can any one tell me about the java code web services, what says that code , i can't understand the java code

    That isn't really how this works. The best way to figure out what a particular piece of code does is to run it. What happened when you did that?
    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. [SOLVED] Gotten easy code by proffessor that I don't understand, do you?
    By matitorn in forum Java Theory & Questions
    Replies: 7
    Last Post: October 9th, 2012, 01:30 PM
  2. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM
  3. problem in my code java code graph editeur
    By kisokiso in forum Java Theory & Questions
    Replies: 5
    Last Post: January 6th, 2012, 08:36 AM
  4. Java web services ws
    By Samashti in forum Web Frameworks
    Replies: 0
    Last Post: August 20th, 2011, 12:10 PM
  5. Can't seem to understand whats wrong with my code! Help!!
    By aquir in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 2nd, 2011, 12:06 PM

Tags for this Thread