September 2013
Intermediate to advanced
382 pages
8h 12m
English
This recipe explains the method of exposing a web service to clients without deploying it to the application server.
In Java code, we create the web service publisher class and name it as PublisherCCGateway.
Do not forget to check the Main Method option in the Create Java Class wizard in JDeveloper.
We enter the following Java code into the newly created class:
public class PublisherCCGateway {
public static void main(String[] args) {
Endpoint.publish("http://localhost:9999/cc/gateway", new CreditCardGateway());
}
}We can now run the web service publisher as a normal Java application.
The javax.xml.ws.Endpoint class is part of Java SE 6. With the help of this class, ...
Read now
Unlock full access