Here you can see how use custom URI parameters with and without a regular expression. With a calculator as example, that provides the four basic math operations as the web service methods, but using the desired math operator directly on the web service URI !
When a client request some REST web service method, usually an HTTP GET request is sent, and within the header, the content-type parameter, that specifies which kind of response is expected and accepted. Here you can see how handle this situation, returning different kind of data based on the requested content-type.
REST web services are also known as simple URL services, because they can be requested through the URL parameters with a simple GET HTTP method, which commonly gives as answer a plain-text JSON object. Like for example the Facebook and Twitter APIs. Here you can see how to do a REST web service using the Jersey RI with Eclipse, Maven and Tomcat.
If you have access to the WSDL file of a web service, that contains informations like available methods, kind of parameters and what will be returned, then you are able to use the web service. Due to this public and well formed information, it's possible to automate the client generation! And that's the point of the wsimport tool, here you can see how.
A simple example of Java SOAP web service with WSDL, using Eclipse, JAX-WS RI and Tomcat. The web service is a calculator that provides the sum, subtraction, multiply and division methods.