O'Reilly logo

Java™ Web Services Unleashed by Mark Wutka, Joseph Weber, Arthur Ryman, K. Scott Morrison, Benoît Marchal, Matthias Kloppmann, Steven Haines, Darren Govoni, Francisco Curbera, Frank Cohen, Robert Brunner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Binding

Up until this point in the chapter you have been dealing with elements that, in UML terms, would be called unrealizable. In other words, you can't actually realize the port type by itself. The port type is like an interface. After you actually have an instance of a port type object, you have all the information you need to use it, but you can't take the port type and instantiate it directly. This is the same situation that prevents you from instantiating a new interface; you can only instantiate an Object that implements the interface. So you can't write the following:

 public interface SomeInterface(){ public submitPurchase(Address billTo, Address sendTo); } public class SomeClass{ public void myMethod(){ //This is illegal SomeInterface ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required