this is java webservices code and please convert to C# webservices code, just change for me , i think you understand my probelm, and please do for me

here is a code below ,
<div>import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;</div> <div>import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;</div> <div>import com.maaco.server.mServlet;</div> <div>public class ProcessTransferRequest extends mServlet {</div> <div> public void service(HttpServletRequest req, HttpServletResponse res)
   throws ServletException {</div> <div>  try {
   //PrintWriter wlog = new PrintWriter(new FileOutputStream("C:/temp/xmlLog.txt"));
   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());
    //if (wrequestProcessor.isTransactionOK()) {
     wresponse = wrequestProcessor.getZipedAndEncryptedResponse();
    /*}
    else {
     res.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);
    }*/

   } catch (Throwable ex) {
    //ex.printStackTrace(wlog);
    ex.printStackTrace();
   }
   /*
   Enumeration wenum = wlogMsg.elements();
   if (wenum != null) {
    while (wenum.hasMoreElements()) {
     wlog.println((String) wenum.nextElement());
    }
   }
   wlog.close(); // send response back
   */
   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--;
  }
 }

}

}
its difficult to do this, If you explain the objective of your web service, we will help you out by creating the Dotnet web service. ur lines are saying that it is a small web service :). so explain us the objective of Web service to help you out from this
its difficult to do this, If you explain the objective of your web service, we will help you out by creating the Dotnet web service. ur lines are saying that it is a small web service :). so explain us the objective of Web service to help you out from this

This is something I would like to do as well in the future.

BUT

I decided against it for several reasons

1: You can copy/paste things of course, but it seems you are working with XML files. Thats different in C#
2: Java web services USUALLY go against something like Apache Tomcat. C# web services USUALLY go against IIS. Therfore you would have to change what you are going against as well.

This article has been dead for over six months. Start a new discussion instead.