How to pass parameters from C#/.Net Windows Application to Java Servlet? One more thing to add here is that we cant touch the Java Servlet code.
How to pass parameters from C#/.Net Windows Application to Java Servlet? One more thing
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume that your java servlet is deployed in some container like Tomcat server. The easiest way to pass parameter to any web application is through query string.
Assuming that
The servlet is accessible via the following URL
http://mymachine:8080/myapp/myservlet
Now to pass parameter (say param1 and param2) to it you can invoke following URL
http://mymachine:8080/myapp/myservlet?parame1=value1¶m2=value2
Use the following C# code to invoke this servlet