As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to connect to a web service via ssl. I have the client cert and have created a jks. I've been reading a lot of documentation and it seems to be in bits and pieces. I'm using Java. If possible, I would like to avoid having to set up Axis2 or anything like that. Is it possible to just use wsimport to get the java classes and then call them with my own class? If not, what am I missing. Do I need to use something like httpclient-4.2.3.jar to create a request? Any info is appreciated or a link to a verbose example.
There are couple of options. For simple testing you can
1) Use SoapUI (there's a free and a paid version)
2) Use curl on the command line.
curl -L -d #myrequest.xml http://example.com/someEndPoint
Otherwise you can generate a Java client. There are many example of this on SO.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am building a mid-sized standalone console based java application and I must log various events that can take place. I am not sure about which API to use. I have looked upon Logback Project and log4j. I am concerned if these are the right one, since both of the seem to have extensive uses in the web application projects. Please help me decide if I am better using the default java.util.logging API or should I use another frameworks; if so which one.
Thanks!
I recommend slf4j.(it's written by the same guy who did log4j) You can read more from here
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to build a mass mail application to send around 20 lacs mail per day. I need some suggestions regarding the technology choice between php and java.
Please suggest.
Either would work.
Java is typically good for bigger projects because it is strongly typed and good for collaboration, but a mass mail application might be simple enough to make that unnecessary.
Most people think of it as easier to do web stuff in PHP, so if you want this to live in a website, you might want to use PHP.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to create SOAP web service without using some web server(apache, jetty, ...).
javax.jws.WebService seems best option, but I know how it work in production mode.
Someone using javax.jws.WebService? It will be work with 100 online users?
Maybe some advise about other web service options?
Thanks!
It can easily support 100 users, rather you will need to make it support 100 users ;)
You can implement the webservice without webservers but then you will end up coding all the features that the webserver's provide to you like:
-- Multiple request processing or scalability
-- Authentication, authorization, auditing.
I you could tell me why do you want to hand code the webservice platform it would be helpful.
Some WebServers can run in embedded mode (jetty for example).
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Im at the point where i would like to start playing around with some web information apis in my programs. Noting Specific but something that i can use with java or python. I tried using the google task api, but it seemed a little tough with the authentication process.Any suggestions?
Have a look at the Twitter API and the Flickr API. They're both pretty easy to work with: it's just a matter of constructing a URL, making a web request, getting the XML response and parsing that XML response. They both have methods which are public and don't need authentication.
When you are a bit more comfortable, you can start looking at using authentication for user-specific data requests. For OAuth with Java, you can have a look at the OAuth-Signpost library.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am writing code that often has to work in restricted environment. I sometimes code at home, where it works nicely and the moment I put it to test at work, McAfee or some other firewall blocks it.
Sometimes it is not possible to disable such protection.
I need a test suite for my home development environment where I can simulate all these restrictions without having to install all of them myself (for instance it is my experience that it is very hard/impossible to clean all traces of mcafee once you have installed it). I also need to simulate proxy servers.
I am writing code in Java if it helps.
[EDIT: so some Java library for this would be great]
You could use VMware (or VirtualBox) with different test-setups.
Try node.js. Also have a look at a sample proxy implementation