Wine is a software to allow running Windows applications in Linux, MAC etc. platforms. It is available for installation from package managers like yum (RHEL, CentOS) and apt (Ubuntu). You can find more details on how it works in Wine wiki . But the default Wine package available from package manager does not have support for 32 bit Windows applications. This was the case for me. In Redhat Enterprise Linux 7.3, the wine package did not contain support for 32 bit windows applications. So the only option was to build a separate rpm of wine which will include this support. All the steps are executed on a RHEL 7.3 VM (x86_64). Step 1 Download and run shell script which will make wine 64 and 32 support for RHEL: https://github.com/zma/usefulscripts/blob/master/script/install-wine-i686-centos7.sh It accepts a version no. as CLI parameter e.g. 2.0.3 The script installs wine in /usr/local/ directory by default. We can verify the files that are being copied for wine using "...
Today I'll try to explain how easily one can build a JAX-WS web service. Web Services are very popular now-a-days. They are used every where. But I found it difficult to write my first web service with jax-ws, partly because I was trying myself and partly because I could not get a simple explanation of steps. That is why I'll try to show the simplest web service possible using jaxws.
First thing first, what do you need to build your first jax-ws web service.
First thing first, what do you need to build your first jax-ws web service.
- JDK 1.6 (I used update 23)
- Eclipse IDE (you can use some other IDE as well)
- Are you kidding? nothing else.
First you need to create a Java project in Eclipse. Then create a class called com.ws.HelloService. This will be our web service class. Have a public method in this class which will be exposed as web service. Below is the code -
The catch here is the @WebService annotation. This is the key. It tells jaxws engine that the HelloService is a web service class. By default jax-ws exposes all public methods of a class. So, in our case it will expose sayHello operation.
Now our service code is ready. It needs to be deployed to some HTTP server for testing. Fortunately, JDK 6 comes with Jakarta Commons HTTP client. We can directly deploy the service in this server. Create a separate class for this -
Run this class. Thats it. We are done with deployment. You can check the WSDL document at <ws url>?wsdl location. Invoke the service with some name. It will return Hello + name.
Now our service code is ready. It needs to be deployed to some HTTP server for testing. Fortunately, JDK 6 comes with Jakarta Commons HTTP client. We can directly deploy the service in this server. Create a separate class for this -
Run this class. Thats it. We are done with deployment. You can check the WSDL document at <ws url>
If you are putting a document for first time learners, then you have to provide detailed info.
ReplyDeleteWrite some good materials buddy :)
ReplyDelete