-
Need advice on Web service setup (3 messages)
- Posted by: JH Goh
- Posted on: August 29 2008 06:41 EDT
Hi Guys, I have to develop a Java client to consume a JAX-WS web service through HTTPs as there is some SSL certificate involved. This web service client is to be invoked by a standalone batch job that is doing some processing and validation through a java main class. I only have the WSDL for the web service to start with. After reading through some of the articles available online, I am still not sure of how should the web service client to set up. I hope someone can help answer some of my queries: 1. Do I definitely need some kind of web server in order to make a HTTPS call to the web service? I was thinking of setting up a Tomcat 4.1 (v4.1 because our certificate authority only tested on that particular version) to handle the SSL part with AXIS2 to handle the webservice part. 2. If I need to host my web service client on a web server, then how can I invoke it from the java batch job? 3. Is it possible to package the web service client as a jar file in this case so that it can be easily imported into the batch job? Thanks for your time, ZXThreaded Messages (3)
- check wso2.org Open Source SOA Developer Portal by Ayanthi Anandagoda on August 29 2008 08:07 EDT
- Hmmm.... by Eugene Kozharinov on August 29 2008 17:12 EDT
- Re: Need advice on Web service setup by Vinod Singh on September 28 2008 17:31 EDT
-
check wso2.org Open Source SOA Developer Portal[ Go to top ]
- Posted by: Ayanthi Anandagoda
- Posted on: August 29 2008 08:07 EDT
- in response to JH Goh
http://wso2.org offers resources on SOA and Web services projects. -
Hmmm....[ Go to top ]
- Posted by: Eugene Kozharinov
- Posted on: August 29 2008 17:12 EDT
- in response to JH Goh
From WSDL you can create only two types of Web-Service components: server and client. Server component exactly is a web-service (war) you must deploy on your favorite application server. Client component is a standard java application (jar) which you can use like a library in your standalone application to make http calls to server running web-service. All you need is to create ant build.xml with the following tasks: generate-from-wsdl, build-server, build-client, create-server-war, create-client-jar :) Actually I recommend you to look at the demos in ws installation dir. Enjoy! -
Re: Need advice on Web service setup[ Go to top ]
- Posted by: Vinod Singh
- Posted on: September 28 2008 17:31 EDT
- in response to JH Goh
You do not need any web server for web service clients. They can be used in standalone applications as well, simple 'main' method can do the work. See at this post, later part of this post talks about creating client, which might be of your interest- http://blog.vinodsingh.com/2008/09/building-jax-ws-web-service.html Thanks, Vinod http://blog.vinodsingh.com/